@intentius/chant 0.124.100 → 0.124.101
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-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 +342 -0
- package/dist/cli/handlers/release.d.ts +42 -1
- package/dist/cli/handlers/release.js +656 -31
- 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 +49 -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 +16 -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 +13 -0
- 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.d.ts +294 -9
- package/dist/config.js +100 -5
- package/dist/floor-table.data.js +15 -1
- package/dist/forge-remote.d.ts +13 -0
- package/dist/forge-remote.js +15 -0
- package/dist/lexicon.d.ts +41 -2
- package/dist/lifecycle/__fixtures__/publish-fakes.d.ts +62 -0
- package/dist/lifecycle/__fixtures__/publish-fakes.js +270 -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 +8 -0
- package/dist/lifecycle/publish-declaration.d.ts +199 -4
- package/dist/lifecycle/publish-declaration.js +200 -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-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-mcp-registry.d.ts +66 -0
- package/dist/lifecycle/publish-mcp-registry.js +306 -0
- package/dist/lifecycle/publish-npm.js +165 -2
- package/dist/lifecycle/publish-oci.d.ts +34 -1
- package/dist/lifecycle/publish-oci.js +246 -7
- package/dist/lifecycle/publish-pypi.d.ts +136 -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-signing.d.ts +147 -0
- package/dist/lifecycle/publish-signing.js +257 -0
- package/dist/lifecycle/publish-targets.d.ts +27 -1
- package/dist/lifecycle/publish-targets.js +80 -0
- package/dist/lifecycle/publish-tauri.js +43 -0
- package/dist/lifecycle/publish-train-names.d.ts +54 -0
- package/dist/lifecycle/publish-train-names.js +118 -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 +212 -0
- package/dist/lifecycle/release-artifacts.js +571 -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 +58 -3
- package/dist/lifecycle/release-cut.js +132 -34
- package/dist/lifecycle/release-doctor.d.ts +113 -0
- package/dist/lifecycle/release-doctor.js +996 -0
- package/dist/lifecycle/release-green.d.ts +86 -0
- package/dist/lifecycle/release-green.js +286 -0
- package/dist/lifecycle/release-init.d.ts +255 -0
- package/dist/lifecycle/release-init.js +859 -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 +252 -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 +246 -34
- 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 +323 -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/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/tool-pins.d.ts +38 -0
- package/dist/tool-pins.js +54 -0
- package/dist/wave-runtime.mjs +337 -334
- 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/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 +46 -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 +29 -0
- package/dist/workspace/release-train-workflow.js +85 -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 +160 -61
- package/dist/workspace/release-workflow.js +539 -193
- 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 +482 -0
- package/dist/workspace/train-prepare.d.ts +61 -0
- package/dist/workspace/train-prepare.js +267 -0
- package/dist/workspace/train-publish.d.ts +177 -0
- package/dist/workspace/train-publish.js +575 -0
- package/dist/workspace/train-range-labels.d.ts +33 -0
- package/dist/workspace/train-range-labels.js +109 -0
- 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,79 @@ 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
|
+
}>>;
|
|
153
237
|
}, z.core.$strict>], "type">>>;
|
|
154
238
|
images: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
155
239
|
name: z.ZodString;
|
|
@@ -165,11 +249,97 @@ export declare const ChantConfigSchema: z.ZodObject<{
|
|
|
165
249
|
prepare: z.ZodOptional<z.ZodString>;
|
|
166
250
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
167
251
|
}, z.core.$strict>]>>>;
|
|
252
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
253
|
+
name: z.ZodString;
|
|
254
|
+
build: z.ZodOptional<z.ZodString>;
|
|
255
|
+
builtBy: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
256
|
+
outputs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
257
|
+
platforms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
258
|
+
archive: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
|
|
259
|
+
name: z.ZodOptional<z.ZodString>;
|
|
260
|
+
dir: z.ZodOptional<z.ZodString>;
|
|
261
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
262
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
263
|
+
"tar.gz": "tar.gz";
|
|
264
|
+
zip: "zip";
|
|
265
|
+
}>>;
|
|
266
|
+
}, z.core.$strict>]>>;
|
|
267
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
268
|
+
name: z.ZodString;
|
|
269
|
+
goreleaser: z.ZodObject<{
|
|
270
|
+
config: z.ZodOptional<z.ZodString>;
|
|
271
|
+
dist: z.ZodOptional<z.ZodString>;
|
|
272
|
+
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
273
|
+
}, z.core.$strict>;
|
|
274
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
275
|
+
name: z.ZodString;
|
|
276
|
+
checksums: z.ZodString;
|
|
277
|
+
of: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
278
|
+
}, z.core.$strict>]>>>;
|
|
168
279
|
lane: z.ZodOptional<z.ZodString>;
|
|
280
|
+
green: z.ZodOptional<z.ZodEnum<{
|
|
281
|
+
chant: "chant";
|
|
282
|
+
"forge-checks": "forge-checks";
|
|
283
|
+
none: "none";
|
|
284
|
+
}>>;
|
|
285
|
+
verify: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
286
|
+
name: z.ZodOptional<z.ZodString>;
|
|
287
|
+
run: z.ZodString;
|
|
288
|
+
}, z.core.$strict>]>>>;
|
|
289
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
169
290
|
legacyTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
291
|
+
breakingOnZero: z.ZodOptional<z.ZodEnum<{
|
|
292
|
+
major: "major";
|
|
293
|
+
minor: "minor";
|
|
294
|
+
}>>;
|
|
295
|
+
tag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
296
|
+
name: z.ZodString;
|
|
297
|
+
floating: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, z.core.$strict>]>>;
|
|
299
|
+
signing: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
300
|
+
identity: z.ZodOptional<z.ZodString>;
|
|
301
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
302
|
+
}, z.core.$strict>]>>;
|
|
170
303
|
version: z.ZodOptional<z.ZodObject<{
|
|
171
|
-
packages: z.ZodArray<z.ZodString
|
|
304
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
172
305
|
lockfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
306
|
+
ranges: z.ZodOptional<z.ZodEnum<{
|
|
307
|
+
caret: "caret";
|
|
308
|
+
exact: "exact";
|
|
309
|
+
keep: "keep";
|
|
310
|
+
train: "train";
|
|
311
|
+
}>>;
|
|
312
|
+
files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
313
|
+
path: z.ZodString;
|
|
314
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
315
|
+
artifacthub: "artifacthub";
|
|
316
|
+
cargo: "cargo";
|
|
317
|
+
"cargo-lock": "cargo-lock";
|
|
318
|
+
helm: "helm";
|
|
319
|
+
krew: "krew";
|
|
320
|
+
"mcp-server": "mcp-server";
|
|
321
|
+
pyproject: "pyproject";
|
|
322
|
+
}>>;
|
|
323
|
+
appVersion: z.ZodOptional<z.ZodBoolean>;
|
|
324
|
+
crates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
325
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
326
|
+
path: z.ZodString;
|
|
327
|
+
field: z.ZodString;
|
|
328
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
329
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
330
|
+
path: z.ZodString;
|
|
331
|
+
pattern: z.ZodString;
|
|
332
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
333
|
+
}, z.core.$strict>]>>>;
|
|
334
|
+
}, z.core.$strict>>;
|
|
335
|
+
train: z.ZodOptional<z.ZodObject<{
|
|
336
|
+
env: z.ZodString;
|
|
337
|
+
first: z.ZodOptional<z.ZodEnum<{
|
|
338
|
+
each: "each";
|
|
339
|
+
together: "together";
|
|
340
|
+
}>>;
|
|
341
|
+
check: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
342
|
+
buildDependencies: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
173
343
|
}, z.core.$strict>>;
|
|
174
344
|
workflow: z.ZodOptional<z.ZodObject<{
|
|
175
345
|
trigger: z.ZodOptional<z.ZodEnum<{
|
|
@@ -180,9 +350,49 @@ export declare const ChantConfigSchema: z.ZodObject<{
|
|
|
180
350
|
head: "head";
|
|
181
351
|
"last-green": "last-green";
|
|
182
352
|
}>>;
|
|
183
|
-
install: z.ZodOptional<z.ZodString
|
|
353
|
+
install: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
184
354
|
build: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
185
355
|
chant: z.ZodOptional<z.ZodString>;
|
|
356
|
+
toolchains: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
357
|
+
go: "go";
|
|
358
|
+
java: "java";
|
|
359
|
+
node: "node";
|
|
360
|
+
python: "python";
|
|
361
|
+
rust: "rust";
|
|
362
|
+
}>, z.ZodObject<{
|
|
363
|
+
name: z.ZodEnum<{
|
|
364
|
+
go: "go";
|
|
365
|
+
java: "java";
|
|
366
|
+
node: "node";
|
|
367
|
+
python: "python";
|
|
368
|
+
rust: "rust";
|
|
369
|
+
}>;
|
|
370
|
+
version: z.ZodString;
|
|
371
|
+
}, z.core.$strict>]>>, z.ZodLiteral<false>]>>;
|
|
372
|
+
builds: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
373
|
+
name: z.ZodString;
|
|
374
|
+
runner: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
375
|
+
build: z.ZodString;
|
|
376
|
+
outputs: z.ZodArray<z.ZodString>;
|
|
377
|
+
install: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
|
|
378
|
+
toolchains: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
379
|
+
go: "go";
|
|
380
|
+
java: "java";
|
|
381
|
+
node: "node";
|
|
382
|
+
python: "python";
|
|
383
|
+
rust: "rust";
|
|
384
|
+
}>, z.ZodObject<{
|
|
385
|
+
name: z.ZodEnum<{
|
|
386
|
+
go: "go";
|
|
387
|
+
java: "java";
|
|
388
|
+
node: "node";
|
|
389
|
+
python: "python";
|
|
390
|
+
rust: "rust";
|
|
391
|
+
}>;
|
|
392
|
+
version: z.ZodString;
|
|
393
|
+
}, z.core.$strict>]>>, z.ZodLiteral<false>]>>;
|
|
394
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
395
|
+
}, z.core.$strict>>>;
|
|
186
396
|
after: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
187
397
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
188
398
|
read: "read";
|
|
@@ -198,6 +408,7 @@ export declare const ChantConfigSchema: z.ZodObject<{
|
|
|
198
408
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
199
409
|
}, z.core.$strict>]>>>;
|
|
200
410
|
file: z.ZodOptional<z.ZodString>;
|
|
411
|
+
doctor: z.ZodOptional<z.ZodBoolean>;
|
|
201
412
|
}, z.core.$strict>>;
|
|
202
413
|
}, z.core.$strip>>;
|
|
203
414
|
run: z.ZodOptional<z.ZodObject<{
|
|
@@ -526,6 +737,15 @@ export interface ChantConfig {
|
|
|
526
737
|
* ./lifecycle/release-images.ts.
|
|
527
738
|
*/
|
|
528
739
|
images?: import("./lifecycle/release-images.js").ReleaseImageDeclaration[];
|
|
740
|
+
/**
|
|
741
|
+
* Files the cut builds once (#5151): a command's outputs, per platform
|
|
742
|
+
* and packed into archives when asked, what goreleaser writes in snapshot
|
|
743
|
+
* mode, checksums files, and (#5183) files a build job on another runner
|
|
744
|
+
* wrote before the cut. The release records each file's digest, and
|
|
745
|
+
* a publish target refuses a file that differs. See
|
|
746
|
+
* ./lifecycle/release-artifacts.ts.
|
|
747
|
+
*/
|
|
748
|
+
artifacts?: import("./lifecycle/release-artifacts.js").ReleaseArtifactDeclaration[];
|
|
529
749
|
/**
|
|
530
750
|
* The green lane `chant release cut` and `chant release candidates` check
|
|
531
751
|
* when `--lane` is not given (#4692): one `ci.green.lanes` declares in
|
|
@@ -533,23 +753,88 @@ export interface ChantConfig {
|
|
|
533
753
|
* rather than `ci/green/<sha>`.
|
|
534
754
|
*/
|
|
535
755
|
lane?: string;
|
|
756
|
+
/**
|
|
757
|
+
* What says a commit may be released (#5149): `chant`, a `ci/green/<sha>`
|
|
758
|
+
* tag as `chant ci` writes it; `forge-checks`, the commit's checks on the
|
|
759
|
+
* forge passed; `none`, nothing, with a warning, refused under the
|
|
760
|
+
* `supply-chain` and `verified-releases` security groups and a release
|
|
761
|
+
* gate. Default `chant` when chant.workspace.json declares `ci.green` or
|
|
762
|
+
* the repository holds `ci/green/` tags, else `forge-checks`. See ./lifecycle/release-green.ts.
|
|
763
|
+
*/
|
|
764
|
+
green?: import("./lifecycle/release-green.js").ReleaseGreenSource;
|
|
765
|
+
/**
|
|
766
|
+
* Commands `chant release publish` and `chant workspace train publish`
|
|
767
|
+
* run after every target has staged and before any reveals (#5157), with
|
|
768
|
+
* the staged references in the environment (`CHANT_STAGED`,
|
|
769
|
+
* `CHANT_STAGED_NPM`, `CHANT_STAGED_IMAGES`, ...). One that fails stops
|
|
770
|
+
* the publish with nothing visible. See ./lifecycle/publish-verify.ts.
|
|
771
|
+
*/
|
|
772
|
+
verify?: import("./lifecycle/publish-verify.js").ReleaseVerifyDeclaration[];
|
|
773
|
+
/**
|
|
774
|
+
* Workspace members whose releases `chant workspace train publish` puts
|
|
775
|
+
* in an earlier layer than this one's (#5165), for a dependency the
|
|
776
|
+
* targets' manifests don't show, such as an image that bundles another
|
|
777
|
+
* member's package. Each is a member's name in chant.workspace.json. See
|
|
778
|
+
* ./workspace/train-publish.ts.
|
|
779
|
+
*/
|
|
780
|
+
dependsOn?: string[];
|
|
536
781
|
/**
|
|
537
782
|
* 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.
|
|
783
|
+
* `release/npm/` and `chant-v`. `chant release changed` and `chant release
|
|
784
|
+
* next` read the newest `<prefix><version>` tag as a member's last release
|
|
785
|
+
* when its ledger has no cut (#5200). Read from the member's own config and
|
|
786
|
+
* from its workspace root's.
|
|
541
787
|
*/
|
|
542
788
|
legacyTags?: string[];
|
|
789
|
+
/**
|
|
790
|
+
* What a breaking commit does to a 0.x version when `chant release next`
|
|
791
|
+
* (and `release changed`) take the bump from commits (#5191): `minor`
|
|
792
|
+
* (the default) bumps minor, and a feature then bumps patch; `major`
|
|
793
|
+
* makes it 1.0.0. An intent file or a typed level of `major` gives 1.0.0
|
|
794
|
+
* either way.
|
|
795
|
+
*/
|
|
796
|
+
breakingOnZero?: "minor" | "major";
|
|
797
|
+
/**
|
|
798
|
+
* The tag `chant release cut` makes (#5150), as a template: `v{version}`,
|
|
799
|
+
* `cli-v{version}`, `{member}/v{version}` or `{path}/v{version}`. The
|
|
800
|
+
* object form adds `floating`, such as `v{major}`, a tag `chant release
|
|
801
|
+
* publish` moves to the release once every target has revealed. Unset,
|
|
802
|
+
* the tag is `release/<label>`, or `release/<member>/<label>` in a
|
|
803
|
+
* workspace member. See ./lifecycle/release-tag.ts.
|
|
804
|
+
*/
|
|
805
|
+
tag?: import("./lifecycle/release-tag.js").ReleaseTagConfig;
|
|
543
806
|
/**
|
|
544
807
|
* The package directories whose `package.json` the release stamps with
|
|
545
808
|
* its label (#4840), so the version needs no commit: the cut stamps them
|
|
546
809
|
* before it builds the images and runs the build and puts them back, and
|
|
547
810
|
* the publish job stamps them with `chant release stamp <label>` before
|
|
548
811
|
* its build. The lockfile's entries for them follow (`lockfile`, default
|
|
549
|
-
* `package-lock.json` when there is one).
|
|
812
|
+
* `package-lock.json` when there is one). `ranges` (#5155) sets each
|
|
813
|
+
* workspace dependency's range to the label the release or a train gives
|
|
814
|
+
* that package. `files` (#5156) names other manifests the label goes
|
|
815
|
+
* into: Cargo.toml, pyproject.toml, Chart.yaml, server.json, krew and
|
|
816
|
+
* Artifact Hub manifests, a field, or a pattern. See
|
|
550
817
|
* ./lifecycle/release-version.ts.
|
|
551
818
|
*/
|
|
552
819
|
version?: import("./lifecycle/release-version.js").ReleaseVersionConfig;
|
|
820
|
+
/**
|
|
821
|
+
* Sigstore signing at publish (#5164): `true`, or `{ identity, issuer }`
|
|
822
|
+
* to name the certificate identity (a regular expression) and OIDC issuer
|
|
823
|
+
* `chant release verify --sigstore` expects, signs images and forge assets
|
|
824
|
+
* keylessly with the CI job's OIDC token and adds SLSA provenance. On by
|
|
825
|
+
* default under the `supply-chain` group; `false` turns it off there. See
|
|
826
|
+
* ./lifecycle/publish-signing.ts.
|
|
827
|
+
*/
|
|
828
|
+
signing?: import("./lifecycle/publish-signing.js").SigningConfig;
|
|
829
|
+
/**
|
|
830
|
+
* The members of this workspace root release as a train (#5154): `chant
|
|
831
|
+
* workspace train cut <env>` picks the members `chant release changed`
|
|
832
|
+
* lists, labels each past every version it already has, cuts them,
|
|
833
|
+
* records the train and pushes the tags; `chant workspace train prepare`
|
|
834
|
+
* and `train publish` publish it. With `release.workflow`, `chant release
|
|
835
|
+
* workflow` renders the whole train. See ./workspace/train-cut.ts.
|
|
836
|
+
*/
|
|
837
|
+
train?: import("./workspace/train-cut.js").ReleaseTrainConfig;
|
|
553
838
|
/**
|
|
554
839
|
* The release pipeline `chant release workflow` writes (#4656): a
|
|
555
840
|
* dispatched release with gate, cut, publish and post-release jobs, the
|
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,96 @@ 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
|
+
]))
|
|
156
|
+
.optional(),
|
|
103
157
|
lane: z.string().regex(/^[a-z0-9][a-z0-9-]*$/, "a ci.green lane name: lowercase letters, digits and dashes").optional(),
|
|
158
|
+
// #5149: what says a commit may be released.
|
|
159
|
+
green: z.enum(["chant", "forge-checks", "none"]).optional(),
|
|
160
|
+
// #5157: commands a publish runs after every target has staged and before any reveals.
|
|
161
|
+
verify: z.array(z.union([z.string().min(1), z.object({ name: z.string().min(1).optional(), run: z.string().min(1) }).strict()])).optional(),
|
|
162
|
+
// #5165: workspace members a train publish reveals before this one, beside what the targets' names say.
|
|
163
|
+
dependsOn: z.array(z.string().min(1)).optional(),
|
|
104
164
|
// #5134: tag prefixes of releases cut before members had ledgers, read as a last release by `chant release changed`.
|
|
105
165
|
legacyTags: z.array(z.string().min(1)).optional(),
|
|
166
|
+
// #5191: what a breaking change does to a 0.x version when the label comes from commits.
|
|
167
|
+
breakingOnZero: z.enum(["minor", "major"]).optional(),
|
|
168
|
+
// #5150: the tag a cut makes, as a template, and the floating tag a publish moves.
|
|
169
|
+
tag: z.union([z.string().min(1), z.object({ name: z.string().min(1), floating: z.string().min(1).optional() }).strict()]).optional(),
|
|
170
|
+
// #5164: Sigstore signatures and SLSA provenance at publish; on under the supply-chain group unless false.
|
|
171
|
+
signing: z
|
|
172
|
+
.union([
|
|
173
|
+
z.boolean(),
|
|
174
|
+
z.object({ identity: z.string().min(1).optional(), issuer: z.string().min(1).optional() }).strict(),
|
|
175
|
+
])
|
|
176
|
+
.optional(),
|
|
106
177
|
// #4840: the label stamped into these packages' package.json at the cut and the publish.
|
|
107
178
|
version: z.object({
|
|
108
|
-
packages: z.array(z.string().min(1)).min(1),
|
|
179
|
+
packages: z.array(z.string().min(1)).min(1).optional(),
|
|
109
180
|
lockfile: z.union([z.string().min(1), z.literal(false)]).optional(),
|
|
181
|
+
// #5155: what happens to the ranges of workspace dependencies.
|
|
182
|
+
ranges: z.enum(["keep", "exact", "caret", "train"]).optional(),
|
|
183
|
+
// #5156: other manifests the label goes into, by format, field or pattern.
|
|
184
|
+
files: z.array(ReleaseVersionFileSchema).min(1).optional(),
|
|
185
|
+
}).strict().refine((v) => v.packages !== undefined || v.files !== undefined, { message: "release.version names packages, files, or both" }).optional(),
|
|
186
|
+
// #5154: a workspace root's members release as a train: the environment it is recorded for, and how it is cut and built.
|
|
187
|
+
train: z.object({
|
|
188
|
+
env: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/, "an environment name: letters, digits, dots, dashes and underscores"),
|
|
189
|
+
first: z.enum(["each", "together"]).optional(),
|
|
190
|
+
check: z.array(z.string().min(1)).optional(),
|
|
191
|
+
buildDependencies: z.union([z.string().min(1), z.literal(false)]).optional(),
|
|
110
192
|
}).strict().optional(),
|
|
111
193
|
workflow: z.object({
|
|
112
194
|
trigger: z.enum(["tag", "dispatch"]).optional(),
|
|
113
195
|
gate: z.enum(["last-green", "head"]).optional(),
|
|
114
|
-
install: z.string().min(1).optional(),
|
|
196
|
+
install: z.union([z.string().min(1), z.literal(false)]).optional(),
|
|
115
197
|
build: z.union([z.string().min(1), z.literal(false)]).optional(),
|
|
116
198
|
chant: z.string().min(1).optional(),
|
|
199
|
+
// #5152: the toolchains the jobs set up, and per-platform build jobs before the cut.
|
|
200
|
+
toolchains: z.union([z.array(ReleaseToolchainSchema), z.literal(false)]).optional(),
|
|
201
|
+
builds: z.array(z.object({
|
|
202
|
+
name: z.string().regex(/^[a-z0-9][a-z0-9-]*$/, "a job name: lowercase letters, digits and dashes"),
|
|
203
|
+
runner: z.union([z.string().min(1), z.array(z.string().min(1)).min(1)]),
|
|
204
|
+
build: z.string().min(1),
|
|
205
|
+
outputs: z.array(z.string().min(1)).min(1),
|
|
206
|
+
install: z.union([z.string().min(1), z.literal(false)]).optional(),
|
|
207
|
+
toolchains: z.union([z.array(ReleaseToolchainSchema), z.literal(false)]).optional(),
|
|
208
|
+
env: z.record(z.string(), z.string()).optional(),
|
|
209
|
+
}).strict()).optional(),
|
|
117
210
|
after: z.array(z.string().min(1)).optional(),
|
|
118
211
|
permissions: z.record(z.string(), z.enum(["read", "write"])).optional(),
|
|
119
212
|
env: z.record(z.string(), z.string()).optional(),
|
|
@@ -122,6 +215,8 @@ export const ChantConfigSchema = z.object({
|
|
|
122
215
|
z.object({ run: z.string().min(1), env: z.record(z.string(), z.string()).optional() }).strict(),
|
|
123
216
|
])).optional(),
|
|
124
217
|
file: z.string().regex(/^[^/][^\0]*$/, "a path from the repository root").refine((f) => !f.split("/").includes(".."), "a path inside the repository").optional(),
|
|
218
|
+
// #5161: chant release doctor before the cut (dispatch, default on) or the publish (tag, opt in).
|
|
219
|
+
doctor: z.boolean().optional(),
|
|
125
220
|
}).strict().optional(),
|
|
126
221
|
}).optional(),
|
|
127
222
|
// Strict: a misspelt key here would leave Ops on the local runtime with
|