@intentius/chant 0.124.103 → 0.124.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/audit/secrets.d.ts +6 -0
  2. package/dist/audit/secrets.js +9 -2
  3. package/dist/capabilities/templates.d.ts +66 -3
  4. package/dist/capabilities/templates.js +220 -81
  5. package/dist/cli/commands/import-index.d.ts +15 -0
  6. package/dist/cli/commands/import-index.js +37 -3
  7. package/dist/cli/handlers/lifecycle.js +6 -0
  8. package/dist/cli/handlers/release-config.d.ts +15 -0
  9. package/dist/cli/handlers/release-config.js +58 -0
  10. package/dist/cli/handlers/release-doctor.js +8 -3
  11. package/dist/cli/handlers/release-init.js +7 -4
  12. package/dist/cli/handlers/release.js +36 -3
  13. package/dist/cli/handlers/search.d.ts +1 -1
  14. package/dist/cli/handlers/search.js +24 -2
  15. package/dist/cli/main.js +12 -2
  16. package/dist/cli/parse-args.js +9 -2
  17. package/dist/cli/registry.d.ts +2 -0
  18. package/dist/cli/release-commands/cut.js +3 -0
  19. package/dist/cli/release-commands/doctor.js +5 -2
  20. package/dist/cloud-lister/aws.d.ts +9 -0
  21. package/dist/cloud-lister/aws.js +20 -0
  22. package/dist/config-import.js +26 -4
  23. package/dist/config.d.ts +24 -0
  24. package/dist/config.js +6 -0
  25. package/dist/floor-table.data.js +8 -6
  26. package/dist/floor-table.js +3 -1
  27. package/dist/graph-refs.d.ts +22 -0
  28. package/dist/graph-refs.js +20 -11
  29. package/dist/lifecycle/cloud-index.d.ts +6 -0
  30. package/dist/lifecycle/cloud-index.js +32 -5
  31. package/dist/lifecycle/derive-edges.d.ts +1 -1
  32. package/dist/lifecycle/derive-edges.js +5 -3
  33. package/dist/lifecycle/identity-match.d.ts +18 -2
  34. package/dist/lifecycle/identity-match.js +10 -5
  35. package/dist/lifecycle/index-drift.d.ts +13 -0
  36. package/dist/lifecycle/index-drift.js +21 -3
  37. package/dist/lifecycle/index-import.d.ts +24 -2
  38. package/dist/lifecycle/index-import.js +61 -9
  39. package/dist/lifecycle/index-join.d.ts +1 -1
  40. package/dist/lifecycle/index-join.js +1 -1
  41. package/dist/lifecycle/publish-declaration.d.ts +6 -0
  42. package/dist/lifecycle/publish-declaration.js +18 -1
  43. package/dist/lifecycle/publish-forge.d.ts +2 -0
  44. package/dist/lifecycle/publish-forge.js +3 -1
  45. package/dist/lifecycle/publish-oci.d.ts +27 -0
  46. package/dist/lifecycle/publish-oci.js +63 -8
  47. package/dist/lifecycle/release-artifacts.js +3 -1
  48. package/dist/lifecycle/release-at.d.ts +5 -1
  49. package/dist/lifecycle/release-at.js +69 -4
  50. package/dist/lifecycle/release-changelog.d.ts +18 -5
  51. package/dist/lifecycle/release-changelog.js +22 -10
  52. package/dist/lifecycle/release-cut.d.ts +13 -1
  53. package/dist/lifecycle/release-cut.js +3 -0
  54. package/dist/lifecycle/release-doctor.d.ts +10 -0
  55. package/dist/lifecycle/release-doctor.js +84 -14
  56. package/dist/lifecycle/release-green.d.ts +5 -2
  57. package/dist/lifecycle/release-green.js +40 -8
  58. package/dist/lifecycle/release-images.d.ts +39 -3
  59. package/dist/lifecycle/release-images.js +84 -7
  60. package/dist/lifecycle/release-init-goreleaser-images.d.ts +21 -0
  61. package/dist/lifecycle/release-init-goreleaser-images.js +160 -0
  62. package/dist/lifecycle/release-init.d.ts +38 -7
  63. package/dist/lifecycle/release-init.js +298 -52
  64. package/dist/lifecycle/release-next.d.ts +1 -1
  65. package/dist/lifecycle/release-next.js +9 -4
  66. package/dist/local-chant.d.ts +3 -0
  67. package/dist/local-chant.js +28 -2
  68. package/dist/release-floors.d.ts +10 -6
  69. package/dist/release-floors.js +10 -6
  70. package/dist/ts-loader.d.ts +12 -3
  71. package/dist/ts-loader.js +27 -11
  72. package/dist/wave-runtime.mjs +292 -291
  73. package/dist/workspace/capabilities-contract.d.ts +15 -5
  74. package/dist/workspace/capabilities-contract.js +7 -4
  75. package/dist/workspace/capabilities.schema.json +45 -1
  76. package/dist/workspace/catalog-edges.d.ts +22 -0
  77. package/dist/workspace/catalog-edges.js +23 -0
  78. package/dist/workspace/release-changed.d.ts +2 -0
  79. package/dist/workspace/release-changed.js +7 -2
  80. package/dist/workspace/release-steps/doctor.js +2 -1
  81. package/dist/workspace/release-steps/goreleaser.d.ts +6 -3
  82. package/dist/workspace/release-steps/goreleaser.js +12 -6
  83. package/dist/workspace/release-toolchains.d.ts +6 -0
  84. package/dist/workspace/release-toolchains.js +8 -0
  85. package/dist/workspace/release-train-workflow.d.ts +18 -0
  86. package/dist/workspace/release-train-workflow.js +135 -7
  87. package/dist/workspace/release-train.js +1 -1
  88. package/dist/workspace/release-workflow.d.ts +26 -0
  89. package/dist/workspace/release-workflow.js +60 -12
  90. package/dist/workspace/train-artifacts.js +3 -4
  91. package/dist/workspace/train-cut.d.ts +22 -1
  92. package/dist/workspace/train-cut.js +80 -16
  93. package/package.json +2 -2
@@ -9,7 +9,7 @@
9
9
  import { existsSync, realpathSync } from "node:fs";
10
10
  import { join, resolve } from "node:path";
11
11
  import { formatBold, formatError, formatSuccess } from "../format.js";
12
- const USAGE = "chant release doctor [--json]";
12
+ const USAGE = "chant release doctor [--from cut] [--json]";
13
13
  /** The release workflow file from the repository root: `release.workflow.file` in the workspace root's config, or the forge's default. */
14
14
  async function releaseWorkflowFile(cwd) {
15
15
  const { findWorkspaceRoot } = await import("../../project-root.js");
@@ -59,7 +59,7 @@ export function formatDoctorReport(report) {
59
59
  const e = report.environment;
60
60
  const where = e.ci === "github" ? `GitHub Actions${e.workflow ? `, ${e.workflow}` : ""}` : e.ci === "gitlab" ? "GitLab CI" : e.ci === "other" ? "CI" : "a workstation";
61
61
  const lines = [
62
- `Release doctor, from ${where}: OIDC ${e.oidc ? "yes" : "no"}; the release workflow is ${e.releaseWorkflow ?? "not known"}${e.repository ? ` in ${e.repository}` : ""}`,
62
+ `Release doctor, from ${where}${e.from === "cut" ? ", the cut job" : ""}: OIDC ${e.oidc ? "yes" : "no"}; the release workflow is ${e.releaseWorkflow ?? "not known"}${e.repository ? ` in ${e.repository}` : ""}`,
63
63
  ];
64
64
  for (const t of report.targets) {
65
65
  lines.push(formatBold(t.name));
@@ -76,6 +76,11 @@ export function formatDoctorReport(report) {
76
76
  export async function runReleaseDoctor(ctx) {
77
77
  const { args } = ctx;
78
78
  const cwd = resolve(".");
79
+ const from = ctx.args.migrateFrom;
80
+ if (from !== undefined && from !== "cut") {
81
+ console.error(formatError({ message: `--from ${from} is not a job the doctor knows: the release workflow's cut job is --from cut [doctor-from-invalid]`, hint: USAGE }));
82
+ return 1;
83
+ }
79
84
  let publish;
80
85
  let declaredGreen;
81
86
  let signing;
@@ -101,7 +106,7 @@ export async function runReleaseDoctor(ctx) {
101
106
  catch {
102
107
  groups = new Set();
103
108
  }
104
- const report = await releaseDoctor({ cwd, publish, releaseWorkflow: await releaseWorkflowFile(cwd), green: await greenGate(cwd, declaredGreen), ...(signing !== undefined ? { signing } : {}), groups });
109
+ const report = await releaseDoctor({ cwd, publish, releaseWorkflow: await releaseWorkflowFile(cwd), ...(from === "cut" ? { from } : {}), green: await greenGate(cwd, declaredGreen), ...(signing !== undefined ? { signing } : {}), groups });
105
110
  if (args.json) {
106
111
  console.log(JSON.stringify(report, null, 2));
107
112
  }
@@ -6,8 +6,8 @@
6
6
  * and `release.train` at the root, unless `--one-release`. See
7
7
  * ../../lifecycle/release-init.ts.
8
8
  */
9
- import { appendFileSync, existsSync, readdirSync, readFileSync, writeFileSync } from "node:fs";
10
- import { join, relative, resolve, sep } from "node:path";
9
+ import { appendFileSync, existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from "node:fs";
10
+ import { dirname, join, relative, resolve, sep } from "node:path";
11
11
  import { formatBold, formatError, formatSuccess, formatWarning } from "../format.js";
12
12
  const USAGE = "chant release init [--yes] [--force] [--one-release] [--forge github|gitlab|forgejo] [--json]";
13
13
  export async function runReleaseInit(ctx) {
@@ -318,7 +318,7 @@ async function runTrainInit(ctx, root, plan, fg, fail) {
318
318
  return 0;
319
319
  }
320
320
  if (!json) {
321
- console.log(formatBold(`${write ? "" : "Dry run: "}a release train of ${members.length} packages, each released at its own version`));
321
+ console.log(formatBold(`${write ? "" : "Dry run: "}a release train of ${members.length} ${members.every((m) => m.package !== null) ? "packages" : "members"}, each released at its own version`));
322
322
  console.log(formatBold(`\nchant.workspace.json${wsCreated ? " (a new file)" : added.length > 0 ? ` (adds ${added.join(", ")})` : ""}`));
323
323
  console.log(`\n${wsText.replace(/^/gm, " ").trimEnd()}\n`);
324
324
  console.log(formatBold(`${prepared.configName}${prepared.created ? " (a new file)" : ""}`));
@@ -338,8 +338,11 @@ async function runTrainInit(ctx, root, plan, fg, fail) {
338
338
  }
339
339
  if (write) {
340
340
  writeFileSync(wsPath, wsText);
341
- for (const m of members)
341
+ for (const m of members) {
342
+ // #5271: a member of its own at release/<name> is a new directory.
343
+ mkdirSync(dirname(m.path), { recursive: true });
342
344
  writeFileSync(m.path, m.text);
345
+ }
343
346
  writeFileSync(prepared.configPath, prepared.configText);
344
347
  if (!json)
345
348
  console.log(formatSuccess(`Wrote chant.workspace.json, ${prepared.configName} and ${members.length} member configs.`));
@@ -120,7 +120,10 @@ async function releaseBuildJobsOf(cwd) {
120
120
  /** The member's `release.images` (#4657), or none when the config declares none. A Dockerfile entry (#4819) keeps its form, so its prepare command runs. */
121
121
  async function releaseImagesOf(cwd) {
122
122
  const { loadChantConfig } = await import("../../config.js");
123
- return (await loadChantConfig(cwd)).config.release?.images ?? [];
123
+ const { placeReleaseImages } = await import("../../lifecycle/release-images.js");
124
+ const release = (await loadChantConfig(cwd)).config.release;
125
+ // #5269: an archive moved out of goreleaser's dist, which it empties.
126
+ return placeReleaseImages(release?.images ?? [], release?.artifacts ?? []);
124
127
  }
125
128
  /**
126
129
  * The green gate `release.green` names (#5149), or undefined for the default.
@@ -163,6 +166,11 @@ async function releaseTagOf(cwd) {
163
166
  const { loadChantConfig } = await import("../../config.js");
164
167
  return (await loadChantConfig(cwd)).config.release?.tag;
165
168
  }
169
+ /** The member's `release.check` lines (#5261), which a cut runs before it records anything. */
170
+ async function releaseChecksOf(cwd) {
171
+ const { loadChantConfig } = await import("../../config.js");
172
+ return (await loadChantConfig(cwd)).config.release?.check ?? [];
173
+ }
166
174
  async function releaseVersionOf(cwd) {
167
175
  const { loadChantConfig } = await import("../../config.js");
168
176
  return (await loadChantConfig(cwd)).config.release?.version;
@@ -650,9 +658,11 @@ export async function runReleaseCut(ctx) {
650
658
  const compiler = spawnTargetCompiler({ ...compileInputs(ctx, params, cutCwd, label), ...(digestsFile ? { releaseDigests: digestsFile } : {}) });
651
659
  const buildImages = digestsFile
652
660
  ? async (at) => {
653
- const { buildReleaseImages, writeReleaseDigests, ReleaseImageError } = await import("../../lifecycle/release-images.js");
661
+ const { buildReleaseImages, checkImagesOutsideGoreleaser, writeReleaseDigests, ReleaseImageError } = await import("../../lifecycle/release-images.js");
654
662
  const { ociArchiveDigest } = await import("../../lifecycle/publish-oci.js");
655
663
  try {
664
+ // #5269: goreleaser would empty an archive in its dist before the cut records it.
665
+ checkImagesOutsideGoreleaser(declaredImages, declaredArtifacts);
656
666
  const built = buildReleaseImages({ images: declaredImages, cwd: cutCwd, sourceDateEpoch: commitTime(cutCwd, at), label, archiveDigest: ociArchiveDigest, ...(versionConfig ? { versionArg: true } : {}) });
657
667
  writeReleaseDigests(digestsFile, Object.fromEntries(built.map((a) => [a.component, a.digest])));
658
668
  return built;
@@ -660,7 +670,7 @@ export async function runReleaseCut(ctx) {
660
670
  catch (err) {
661
671
  const code = err instanceof ReleaseImageError ? err.code : err.code;
662
672
  const fix = err instanceof ReleaseImageError ? err.fix : undefined;
663
- throw new ReleaseCutError(code === "release-image-name-taken" ? "release-image-name-taken" : "release-image-build-failed", `no release was cut: ${err.message}`, fix);
673
+ throw new ReleaseCutError(code === "release-image-name-taken" || code === "release-image-archive-in-dist" ? code : "release-image-build-failed", `no release was cut: ${err.message}`, fix);
664
674
  }
665
675
  }
666
676
  : undefined;
@@ -723,6 +733,26 @@ export async function runReleaseCut(ctx) {
723
733
  throw new ReleaseCompileError(`the build command exited ${run.status ?? "with a signal"}: ${buildCommand}`);
724
734
  }
725
735
  : undefined;
736
+ // #5261: release.check, run by the cut and its dry run alike once the label is stamped and the builds have run.
737
+ const checkLines = await releaseChecksOf(cutCwd);
738
+ const check = checkLines.length > 0
739
+ ? async (at) => {
740
+ const { runToStderr } = await import("../../workspace/train-shell.js");
741
+ const env = { ...process.env, CHANT_RELEASE_COMMIT: at };
742
+ delete env[RELEASE_LABEL_ENV];
743
+ if (label !== null)
744
+ env[RELEASE_LABEL_ENV] = label;
745
+ if (digestsFile)
746
+ env.CHANT_RELEASE_DIGESTS = digestsFile;
747
+ for (const line of checkLines) {
748
+ console.error(`check: ${line}`);
749
+ const code = await runToStderr(line, { cwd: cutCwd, env });
750
+ if (code !== 0) {
751
+ throw new ReleaseCutError("release-check-failed", `no release was cut: release.check failed (exit ${code}): ${line}`, "Nothing was recorded or tagged. Fix what the check reports, or cut another label, and run the cut again.");
752
+ }
753
+ }
754
+ }
755
+ : undefined;
726
756
  const request = {
727
757
  cwd: cutCwd,
728
758
  compiler,
@@ -740,6 +770,7 @@ export async function runReleaseCut(ctx) {
740
770
  ...(greenSource ? { green: greenSource } : {}),
741
771
  ...(publishes ? { publishes } : {}),
742
772
  ...(build ? { build } : {}),
773
+ ...(check ? { check } : {}),
743
774
  ...(intents.length > 0 ? { intents: intents.map(({ path, added, bump }) => ({ path, added, bump })) } : {}),
744
775
  };
745
776
  if (dryRun) {
@@ -801,6 +832,8 @@ export async function runReleaseCut(ctx) {
801
832
  console.log(` consumes ${i.path} (${i.bump})`);
802
833
  if (plan.green)
803
834
  console.log(` gate: ${describeGreen(plan.green)}`);
835
+ if (checkLines.length > 0)
836
+ console.log(` release.check: ${checkLines.length} line(s) passed`);
804
837
  if (plan.green?.source === "none")
805
838
  console.error(formatWarning({ message: GREEN_NONE_WARNING }));
806
839
  if (plan.publishes)
@@ -90,7 +90,7 @@ export declare function printCapabilities(args: {
90
90
  countBy?: string;
91
91
  explain?: boolean;
92
92
  show?: string;
93
- }, query: string, lexicons: string[]): Promise<number>;
93
+ }, query: string, lexicons: string[], dir?: string): Promise<number>;
94
94
  /**
95
95
  * Answer capability terms over a graph that is not this project's own (#4375):
96
96
  * `chant workspace search` composes its members' graphs and views and asks
@@ -12,6 +12,7 @@ import { replaySnapshots, hasSnapshot } from "../../lifecycle/replay.js";
12
12
  import { diffLive } from "../../lifecycle/live-diff.js";
13
13
  import { formatUnobserved } from "../../observation.js";
14
14
  import { readChantPackageVersion } from "../../package-version.js";
15
+ import { applyLiveEndpoint } from "../../live-endpoint.js";
15
16
  import { loadChantConfig, matchesDeclaredEnvironment, resolveSourceDir } from "../../config.js";
16
17
  import { collectBuildRootContributors, loadPlugins, resolveProjectLexicons } from "../plugins.js";
17
18
  import { declaredBuildRootContributors, mergeDeclaredBuildRoots, withLexiconEdges } from "./declared-graph.js";
@@ -54,6 +55,17 @@ import { countJoins, formatIndexRef, indexOnlyGraph, joinCell, joinDeclaredToInd
54
55
  * thousands.
55
56
  */
56
57
  export async function runSearch(ctx) {
58
+ // The environment's declared endpoint (#5289) lives in the process env for
59
+ // the length of a live read, and is put back on every way out.
60
+ const endpoint = { restore: () => { } };
61
+ try {
62
+ return await searchAnswer(ctx, endpoint);
63
+ }
64
+ finally {
65
+ endpoint.restore();
66
+ }
67
+ }
68
+ async function searchAnswer(ctx, endpoint) {
57
69
  const { args } = ctx;
58
70
  const query = (args.path ?? "").trim();
59
71
  // A refusal (#4367): the error on stderr as always, and under --json the
@@ -150,6 +162,12 @@ export async function runSearch(ctx) {
150
162
  return refuse({ code: "build-failed", message: "Build failed — fix errors before searching live state" });
151
163
  }
152
164
  const observing = plugins.filter((p) => p.describeResources);
165
+ // An environment can declare its own endpoint (#1166, #5289), so a read
166
+ // against an emulator needs no exported AWS_ENDPOINT_URL. Ambient wins.
167
+ const applied = applyLiveEndpoint(config.environments, environment, observing);
168
+ endpoint.restore = applied.restore;
169
+ if (applied.notice)
170
+ console.error(formatWarning({ message: applied.notice }));
153
171
  ambientKinds = observing.flatMap((p) => p.ambientKinds?.() ?? []);
154
172
  const stacks = (config.stacks ?? []).map((s) => ({ name: s.name, region: s.region, src: s.src }));
155
173
  let observations;
@@ -694,7 +712,7 @@ async function declaredGraph(ctx, projectPath, srcDir, loaded) {
694
712
  * search` and `chant workspace search`, which differ only in the lexicons
695
713
  * they report on.
696
714
  */
697
- export async function printCapabilities(args, query, lexicons) {
715
+ export async function printCapabilities(args, query, lexicons, dir = resolve(".")) {
698
716
  const { capabilitiesDocument, capabilitiesFailure, formatCapabilities } = await import("../../workspace/capabilities-contract.js");
699
717
  const extra = [
700
718
  // `args.path` is "." when no query was given.
@@ -714,7 +732,11 @@ export async function printCapabilities(args, query, lexicons) {
714
732
  console.log(JSON.stringify(await capabilitiesFailure(error)));
715
733
  return 1;
716
734
  }
717
- const doc = await capabilitiesDocument(lexicons);
735
+ const doc = await capabilitiesDocument(lexicons, undefined, dir);
736
+ // A project template left out (behold#1142) is said on stderr, so a person
737
+ // sees it under --json too.
738
+ for (const r of doc.refused)
739
+ console.error(`template refused: ${r.message}`);
718
740
  if (args.json)
719
741
  console.log(JSON.stringify(doc));
720
742
  else
package/dist/cli/main.js CHANGED
@@ -1207,7 +1207,7 @@ Workspace (level 1, #2524):
1207
1207
  instead; --continue moves on from the member's answer
1208
1208
  in _control/applied.jsonl, after applied or unchanged
1209
1209
  (#5119)
1210
- workspace train cut <env> [--at <sha>] [--levels <levels>] [--doctor] [--yes] [--no-push] [--json]
1210
+ workspace train cut <env> [--at <sha>] [--levels <levels>] [--plan-only] [--planned <member=label ...|none>] [--doctor] [--yes] [--no-push] [--json]
1211
1211
  Cut a train (release.train): the members release
1212
1212
  changed lists, each labelled past every version its
1213
1213
  ledger, tags, packages and npm hold, cut at one
@@ -1215,7 +1215,9 @@ Workspace (level 1, #2524):
1215
1215
  release-train/<env>/<id> pushed in one push. --levels
1216
1216
  types levels (auto, minor, core=major ...). --doctor
1217
1217
  runs release doctor in each member first. Without
1218
- --yes it plans (#5154)
1218
+ --yes it plans (#5154). --plan-only prints the members
1219
+ and labels with no member's dry run; --planned refuses
1220
+ a cut whose plan differs from the one given (#5237)
1219
1221
  workspace train prepare <env> [<train id|digest>] [--json]
1220
1222
  In a checkout of the train's commit: stamp each member
1221
1223
  cut here (release.version, train ranges) and build the
@@ -2192,6 +2194,14 @@ export const commandRegistry = [
2192
2194
  { name: "release", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/release.js")).runReleaseUnknown(ctx) },
2193
2195
  { name: "workspace", handler: async (ctx) => (await import("../workspace/records-cli.js")).runWorkspaceUnknown(ctx) },
2194
2196
  ];
2197
+ // #5263: every release command but init, which writes the config, refuses a chant.config it can't load
2198
+ // instead of reading it as one with no release block.
2199
+ for (const def of commandRegistry) {
2200
+ if (!def.name.startsWith("release ") || def.name === "release init")
2201
+ continue;
2202
+ const run = def.handler;
2203
+ def.handler = async (ctx) => (await (await import("./handlers/release-config.js")).refuseUnreadableReleaseConfig(resolve("."))) ?? run(ctx);
2204
+ }
2195
2205
  /**
2196
2206
  * Main entry point
2197
2207
  */
@@ -308,8 +308,8 @@ export function parseArgs(args) {
308
308
  else if (arg === "--from") {
309
309
  // Shared by `migrate --from <lexicon>`, `import --from <env>`,
310
310
  // `components promote --from <env>`, `init --from <repo>@<ref>` and
311
- // `ci last-green --from <rev>` (#4031); the commands never run
312
- // together, so one field carries all five.
311
+ // `ci last-green --from <rev>` (#4031) and `release doctor --from cut`; the commands never run
312
+ // together, so one field carries all six.
313
313
  result.migrateFrom = args[++i];
314
314
  }
315
315
  else if (arg === "--kustomize") {
@@ -1077,6 +1077,13 @@ export function parseArgs(args) {
1077
1077
  throw new Error("--levels needs the levels: --levels auto, --levels minor, or --levels \"core=minor web=patch\"");
1078
1078
  result.levels = value;
1079
1079
  }
1080
+ else if (arg === "--planned") {
1081
+ // `chant workspace train cut <env> --planned "<member>=<label> ..."` (#5237): the plan the cut must match, or `none`.
1082
+ const value = args[++i];
1083
+ if (value === undefined || value.startsWith("-"))
1084
+ throw new Error('--planned needs the members and labels a plan gave: --planned "core=1.4.0 web=2.0.1", or --planned none');
1085
+ result.planned = value;
1086
+ }
1080
1087
  else if (arg === "--bump-member") {
1081
1088
  // `chant release changed --bump-member <member>=<level>` (#5134) is repeatable.
1082
1089
  const value = args[++i];
@@ -680,6 +680,8 @@ export interface ParsedArgs {
680
680
  followSquash?: boolean;
681
681
  /** `chant workspace train cut <env> --levels <levels>` (#5154): `auto`, a level for every member, `<member>=<level>`, separated by spaces or commas. */
682
682
  levels?: string;
683
+ /** `chant workspace train cut <env> --planned <member=label ...|none>` (#5237): the members and labels a `--plan-only` run gave, which the cut must plan again. */
684
+ planned?: string;
683
685
  /** `chant release changed --bump-member <member>=<level>` (#5134) — repeatable. */
684
686
  bumpMember?: string[];
685
687
  /** `chant release candidates --forge-issues` and `chant workspace graph --intent --forge-issues` (#4649): ask the forge which issues each squash-merged pull request closes, once per pull request. */
@@ -30,6 +30,9 @@ export const cutCommand = {
30
30
  " trunk from a temporary worktree instead of HEAD, so",
31
31
  " the checkout need not be clean. The label reaches",
32
32
  " every compile and build as CHANT_RELEASE_LABEL.",
33
+ " release.check's lines run once the label is stamped",
34
+ " and before anything is recorded, in a dry run too;",
35
+ " one that fails refuses the cut.",
33
36
  " --image, repeatable, hands the cut a component's image",
34
37
  " built elsewhere, by digest: the release records it and",
35
38
  " the cut builds nothing for that component (#4694).",
@@ -3,12 +3,15 @@ export const doctorCommand = {
3
3
  name: "doctor",
4
4
  helpOrder: 70,
5
5
  help: [
6
- " release doctor [--json]",
6
+ " release doctor [--from cut] [--json]",
7
7
  " Before a cut, ask each release.publish target whether",
8
8
  " a publish from here can succeed: credentials, OIDC,",
9
9
  " npm trusted publishers and dist-tags, registry and",
10
10
  " forge access. Says what it can't observe from here.",
11
+ " --from cut: this is the release workflow's cut job,",
12
+ " which has no OIDC token; the checks that need one",
13
+ " say the publish job holds it instead of failing.",
11
14
  " Exits 1 when a check fails.",
12
15
  ],
13
- usage: { order: 40, text: "release doctor [--json]" },
16
+ usage: { order: 40, text: "release doctor [--from cut] [--json]" },
14
17
  };
@@ -32,3 +32,12 @@ export declare const DEFAULT_AWS_TYPES: readonly string[];
32
32
  export declare function isGlobalAwsType(type: string): boolean;
33
33
  export declare function cloudControlUrl(target: AwsTarget, region: string): string;
34
34
  export declare function listAws(ctx: ListerContext, target: AwsTarget, chains: CredentialChains, retryDelays?: readonly number[]): Promise<void>;
35
+ /**
36
+ * A queue's ARN (#5285). Cloud Control lists an SQS queue by its name or its
37
+ * URL and gives no ARN, while a Lambda environment value or a dead-letter
38
+ * policy names the queue by `arn:<partition>:sqs:<region>:<account>:<name>`.
39
+ * The name is the property when the model has one, else the last path segment
40
+ * of the identifier (a queue URL ends in the name). `scopeId` is the account
41
+ * the read was made in.
42
+ */
43
+ export declare function sqsQueueArn(account: string, region: string, props: Record<string, unknown>, identifier: string): string | undefined;
@@ -170,6 +170,11 @@ async function listOne(ctx, target, credentials, type, region, location, retryDe
170
170
  cloudIds.push({ kind: "arn", value: d.Identifier });
171
171
  if (typeof props.Arn === "string" && props.Arn.startsWith("arn:"))
172
172
  cloudIds.push({ kind: "arn", value: props.Arn });
173
+ if (type === "AWS::SQS::Queue" && cloudIds.length === 0) {
174
+ const queueArn = sqsQueueArn(ctx.scope.scopeId, location, props, d.Identifier);
175
+ if (queueArn)
176
+ cloudIds.push({ kind: "arn", value: queueArn });
177
+ }
173
178
  cloudIds.push({ kind: "import-id", value: d.Identifier });
174
179
  found.push({ listedType: type, location, nativeId: d.Identifier, cloudIds, tags, properties: props, observedAt, labels: false });
175
180
  }
@@ -181,6 +186,21 @@ async function listOne(ctx, target, credentials, type, region, location, retryDe
181
186
  ctx.resources.push(buildResource(ctx, r));
182
187
  ctx.coverage.push({ listedType: type, location, ...listedVerdict(ctx.scope) });
183
188
  }
189
+ /**
190
+ * A queue's ARN (#5285). Cloud Control lists an SQS queue by its name or its
191
+ * URL and gives no ARN, while a Lambda environment value or a dead-letter
192
+ * policy names the queue by `arn:<partition>:sqs:<region>:<account>:<name>`.
193
+ * The name is the property when the model has one, else the last path segment
194
+ * of the identifier (a queue URL ends in the name). `scopeId` is the account
195
+ * the read was made in.
196
+ */
197
+ export function sqsQueueArn(account, region, props, identifier) {
198
+ const name = typeof props.QueueName === "string" && props.QueueName !== "" ? props.QueueName : identifier.split("/").filter(Boolean).pop();
199
+ if (!name || !/^\d{12}$/.test(account))
200
+ return undefined;
201
+ const partition = region.startsWith("cn-") ? "aws-cn" : region.startsWith("us-gov-") ? "aws-us-gov" : "aws";
202
+ return `arn:${partition}:sqs:${region}:${account}:${name}`;
203
+ }
184
204
  function recordFailure(ctx, type, location, res) {
185
205
  const err = awsError(res);
186
206
  const detail = describeFailure(res, err.code, err.message);
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
- import { join } from "node:path";
2
+ import { dirname, join } from "node:path";
3
3
  import { pathToFileURL } from "node:url";
4
4
  let freshLoads = 0;
5
5
  import { ensureTypeScriptLoader } from "./ts-loader.js";
@@ -9,10 +9,32 @@ import { ensureTypeScriptLoader } from "./ts-loader.js";
9
9
  * evaluate the file once — the behavior `loadChantConfig` has always had.
10
10
  */
11
11
  export async function importConfigModule(configPath, fresh = false) {
12
- ensureTypeScriptLoader();
12
+ // #5263: with no tsx in chant's install or the project's, node's own type stripping (22.18+, 23.6+) may still read the file.
13
+ let noTsx = null;
14
+ try {
15
+ ensureTypeScriptLoader(dirname(configPath));
16
+ }
17
+ catch (err) {
18
+ if (!(err instanceof Error) || !err.message.startsWith("chant needs tsx") || !nativeTypeScript())
19
+ throw err;
20
+ noTsx = err;
21
+ }
13
22
  // `fresh` re-evaluates the config file itself: a query string makes the specifier a new module. Files it imports stay cached.
14
23
  const specifier = fresh ? `${pathToFileURL(configPath).href}?fresh=${++freshLoads}` : configPath;
15
- return (await import(specifier));
24
+ try {
25
+ return (await import(specifier));
26
+ }
27
+ catch (err) {
28
+ if (noTsx === null)
29
+ throw err;
30
+ const why = String(err instanceof Error ? err.message : err).split("\n")[0];
31
+ throw Object.assign(new Error(`${noTsx.message} (node's own type stripping could not read ${configPath} either: ${why})`), { cause: err });
32
+ }
33
+ }
34
+ /** Whether this node strips TypeScript types itself, so an `import()` of a `.ts` file needs no loader. */
35
+ function nativeTypeScript() {
36
+ const ts = process.features.typescript;
37
+ return ts === "strip" || ts === "transform";
16
38
  }
17
39
  /**
18
40
  * `require()` a `chant.config.ts` into THIS process from `dir`'s resolution
@@ -21,6 +43,6 @@ export async function importConfigModule(configPath, fresh = false) {
21
43
  */
22
44
  export function requireConfigModule(configPath, dir) {
23
45
  const req = createRequire(join(dir, "package.json"));
24
- ensureTypeScriptLoader();
46
+ ensureTypeScriptLoader(dir);
25
47
  return req(configPath);
26
48
  }
package/dist/config.d.ts CHANGED
@@ -91,6 +91,7 @@ export declare const ChantConfigSchema: z.ZodObject<{
91
91
  image: z.ZodString;
92
92
  repository: z.ZodString;
93
93
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
94
+ platformTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
94
95
  usernameEnv: z.ZodOptional<z.ZodString>;
95
96
  passwordEnv: z.ZodOptional<z.ZodString>;
96
97
  sbom: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
@@ -113,6 +114,8 @@ export declare const ChantConfigSchema: z.ZodObject<{
113
114
  forge: "forge";
114
115
  }>>;
115
116
  types: z.ZodOptional<z.ZodArray<z.ZodString>>;
117
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
118
+ nonConventional: z.ZodOptional<z.ZodBoolean>;
116
119
  before: z.ZodOptional<z.ZodString>;
117
120
  after: z.ZodOptional<z.ZodString>;
118
121
  }, z.core.$strict>>;
@@ -294,6 +297,7 @@ export declare const ChantConfigSchema: z.ZodObject<{
294
297
  archive: z.ZodOptional<z.ZodString>;
295
298
  prepare: z.ZodOptional<z.ZodString>;
296
299
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
300
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
297
301
  }, z.core.$strict>]>>>;
298
302
  artifacts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
299
303
  name: z.ZodString;
@@ -350,6 +354,7 @@ export declare const ChantConfigSchema: z.ZodObject<{
350
354
  "forge-checks": "forge-checks";
351
355
  none: "none";
352
356
  }>>;
357
+ check: z.ZodOptional<z.ZodArray<z.ZodString>>;
353
358
  verify: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
354
359
  name: z.ZodOptional<z.ZodString>;
355
360
  run: z.ZodString;
@@ -360,6 +365,7 @@ export declare const ChantConfigSchema: z.ZodObject<{
360
365
  major: "major";
361
366
  minor: "minor";
362
367
  }>>;
368
+ sources: z.ZodOptional<z.ZodArray<z.ZodString>>;
363
369
  tag: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
364
370
  name: z.ZodString;
365
371
  floating: z.ZodOptional<z.ZodString>;
@@ -830,6 +836,15 @@ export interface ChantConfig {
830
836
  * the repository holds `ci/green/` tags, else `forge-checks`. See ./lifecycle/release-green.ts.
831
837
  */
832
838
  green?: import("./lifecycle/release-green.js").ReleaseGreenSource;
839
+ /**
840
+ * Shell lines `chant release cut` runs (#5261), with or without `--yes`,
841
+ * once the label is stamped and the release's builds have run, and before
842
+ * any environment is compiled or anything recorded or tagged, with
843
+ * `CHANT_RELEASE_LABEL` and `CHANT_RELEASE_COMMIT` set. One that fails
844
+ * refuses the cut with `release-check-failed`. A train's checks are
845
+ * `release.train.check`.
846
+ */
847
+ check?: string[];
833
848
  /**
834
849
  * Commands `chant release publish` and `chant workspace train publish`
835
850
  * run after every target has staged and before any reveals (#5157), with
@@ -862,6 +877,15 @@ export interface ChantConfig {
862
877
  * either way.
863
878
  */
864
879
  breakingOnZero?: "minor" | "major";
880
+ /**
881
+ * Paths beside the member's own directory whose changes release it
882
+ * (#5271), relative to the member: a member at `release/web-image` that
883
+ * builds the root's Dockerfile names `["../.."]`. `chant release changed`
884
+ * takes a member whose own directory or any of these paths changed since
885
+ * its last release. A path may leave the member with `..`, inside the
886
+ * repository.
887
+ */
888
+ sources?: string[];
865
889
  /**
866
890
  * The tag `chant release cut` makes (#5150), as a template: `v{version}`,
867
891
  * `cli-v{version}`, `{member}/v{version}` or `{path}/v{version}`. The
package/dist/config.js CHANGED
@@ -113,6 +113,8 @@ export const ChantConfigSchema = z.object({
113
113
  prepare: z.string().min(1).optional(),
114
114
  // #4908: build arguments beside the two chant passes.
115
115
  args: z.record(z.string(), z.string()).optional(),
116
+ // #5269: OCI labels on the image.
117
+ labels: z.record(z.string(), z.string()).optional(),
116
118
  })
117
119
  .strict(),
118
120
  ]))
@@ -178,6 +180,8 @@ export const ChantConfigSchema = z.object({
178
180
  lane: z.string().regex(/^[a-z0-9][a-z0-9-]*$/, "a ci.green lane name: lowercase letters, digits and dashes").optional(),
179
181
  // #5149: what says a commit may be released.
180
182
  green: z.enum(["chant", "forge-checks", "none"]).optional(),
183
+ // #5261: shell lines a single release's cut runs once the label is stamped and before anything is recorded or tagged.
184
+ check: z.array(z.string().min(1)).optional(),
181
185
  // #5157: commands a publish runs after every target has staged and before any reveals.
182
186
  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
187
  // #5165: workspace members a train publish reveals before this one, beside what the targets' names say.
@@ -186,6 +190,8 @@ export const ChantConfigSchema = z.object({
186
190
  legacyTags: z.array(z.string().min(1)).optional(),
187
191
  // #5191: what a breaking change does to a 0.x version when the label comes from commits.
188
192
  breakingOnZero: z.enum(["minor", "major"]).optional(),
193
+ // #5271: paths outside a train member, relative to it, whose changes release it too.
194
+ sources: z.array(z.string().min(1)).min(1).optional(),
189
195
  // #5150: the tag a cut makes, as a template, and the floating tag a publish moves.
190
196
  tag: z.union([z.string().min(1), z.object({ name: z.string().min(1), floating: z.string().min(1).optional() }).strict()]).optional(),
191
197
  // #5164: Sigstore signatures and SLSA provenance at publish; on under the supply-chain group unless false.
@@ -1,12 +1,8 @@
1
- // Written by scripts/floor-table.ts (#4792) from the floor constants under
2
- // packages/core/src and in each lexicon's src/chant-floors.ts (#4916); run
3
- // `npx tsx scripts/floor-table.ts` after adding one.
4
- // scripts/release-floors.ts fails while this file is stale.
5
- import { NEXT_RELEASE } from "./release-floors.js";
6
1
  export const FLOOR_ROWS = [
7
2
  { name: "CACHE4_PIN_FLOOR", version: "0.124.78", gates: "The first chant whose table has the `cache4` row (#4816).", issue: "#4816", file: "action-pins.ts", modules: ["@intentius/chant/action-pins"] },
8
3
  { name: "AGENT_GUARD_FLOOR", version: "0.124.77", gates: "The first chant with the shared agent guard (#4770).", issue: "#4770", file: "agent-guard.ts", modules: ["@intentius/chant/agent-guard", "@intentius/chant/ci-product"] },
9
4
  { name: "CAPABILITY_TEMPLATES_FLOOR", version: "0.124.54", gates: "The first chant whose capabilities document carries `templates` (#4531).", issue: "#4531", file: "capabilities/templates.ts", modules: ["@intentius/chant/capabilities/templates"] },
5
+ { name: "PROJECT_TEMPLATES_FLOOR", version: "0.124.105", gates: "The first chant whose capabilities document lists a project's own templates from `.chant/templates.json`, marks each entry's `origin`, may carry `kinds`, and lists refused project entries under `refused` (behold issue 1142).", issue: "behold issue 1142", file: "capabilities/templates.ts", modules: ["@intentius/chant/capabilities/templates"] },
10
6
  { name: "CHANGE_SET_GROUP_FLOOR", version: "0.124.54", gates: "The first chant whose change set can carry a member's `group` (ws-107, #4440).", issue: "#4440", file: "change-set.ts", modules: ["@intentius/chant/change-set"] },
11
7
  { name: "CHANGE_SET_PLACEHOLDERS_FLOOR", version: "0.124.54", gates: "The first chant whose change set can carry a member's `placeholders` (#4463).", issue: "#4463", file: "change-set.ts", modules: ["@intentius/chant/change-set"] },
12
8
  { name: "CHANT_RUN_FLOOR", version: "0.124.88", gates: "The first chant with `runChant`, `lastJsonLine`, `installResolveFallback` and `fallbackImportArgs` in `@intentius/chant/chant-install` (#4889): a product runs chant and reads its `--json` document, and a file with no `node_modules` above it imports the product's packages, with no code of the product's own.", issue: "#4889", file: "chant-install.ts", modules: ["@intentius/chant/chant-install"] },
@@ -73,6 +69,7 @@ export const FLOOR_ROWS = [
73
69
  { name: "PRODUCT_MCP_HOOK_FLOOR", version: "0.124.55", gates: "Telemetry and MCP (#4555).", issue: "#4555", file: "ci-product.ts", modules: ["@intentius/chant/ci-product"] },
74
70
  { name: "FORGE_CI_FLOOR", version: "0.124.101", gates: "The first chant with `@intentius/chant/ci-system`, `ci.forge` and `ci.system` in the workspace declaration, an environment executor's `ci`, forge reads from a Prow job's environment (#5170), and `--generate prow` with `--repo` for `chant build --components` and `chant run` (#5189).", issue: "#5189", file: "ci-system.ts", modules: ["@intentius/chant/ci-system"] },
75
71
  { name: "APPROVE_CONFIRM_FLOOR", version: "0.124.55", gates: "The first chant with `confirmApproval` here, the type-the-name confirmation a product's approve word asks through (#4575).", issue: "#4575", file: "cli/handlers/approve-confirm.ts", modules: ["@intentius/chant/cli/handlers/approve-confirm"] },
72
+ { name: "RELEASE_CONFIG_UNREADABLE_FLOOR", version: "0.124.104", gates: "The first chant whose `chant release` commands refuse a config they can't load with `release-config-unreadable`, and that reads `chant.config.ts` with the project's tsx when its own install has none (#5263).", issue: "#5263", file: "cli/handlers/release-config.ts", modules: ["@intentius/chant/cli/handlers/release-config"] },
76
73
  { name: "PRODUCT_MCP_PROPOSE_FLOOR", version: "0.124.58", gates: "The first chant whose `chant serve mcp` has the `--propose` tier and serves `forgeWrite` product tools on it (chant#4655).", issue: "#4655", file: "cli/mcp/product-tools.ts", modules: ["@intentius/chant/ci-product", "@intentius/chant/cli/mcp/product-tools"] },
77
74
  { name: "MCP_TOOL_ANNOTATIONS_FLOOR", version: "0.124.79", gates: "The first chant whose `tools/list` gives MCP tool annotations: a tool's `annotations`, and `readOnlyHint`/`destructiveHint` from `readOnly: true` or `forgeWrite: true` (chant#4823).", issue: "#4823", file: "cli/mcp/product-tools.ts", modules: ["@intentius/chant/ci-product", "@intentius/chant/cli/mcp/product-tools"] },
78
75
  { name: "K8S_COMPONENTS_FLOOR", version: "0.124.102", gates: "The first chant with `inferK8sComponents`, the applications of a live Kubernetes read as a component graph (#5252).", issue: "#5252", file: "cloud-lister/kubernetes-components.ts", modules: ["@intentius/chant/cloud-lister/index", "@intentius/chant/cloud-lister/kubernetes-components"] },
@@ -104,6 +101,7 @@ export const FLOOR_ROWS = [
104
101
  { name: "PUBLISH_FORGE_LATEST_FLOOR", version: "0.124.63", gates: "The first chant that reads `latest` on a forge target and sends it as GitHub's `make_latest` (#4676).", issue: "#4676", file: "lifecycle/publish-forge.ts", modules: ["@intentius/chant/lifecycle/publish-forge"] },
105
102
  { name: "PUBLISH_FORGE_NOTES_FLOOR", version: "0.124.71", gates: "The first chant whose forge target reads `notes` and may have no assets (#4658).", issue: "#4658", file: "lifecycle/publish-forge.ts", modules: ["@intentius/chant/lifecycle/publish-forge"] },
106
103
  { name: "PUBLISH_FORGE_GENERATED_NOTES_FLOOR", version: "0.124.101", gates: "The first chant whose forge target generates notes, `notes.generate` (#5153).", issue: "#5153", file: "lifecycle/publish-forge.ts", modules: ["@intentius/chant/lifecycle/publish-forge"] },
104
+ { name: "PUBLISH_FORGE_NOTES_EXCLUDE_FLOOR", version: "0.124.104", gates: "The first chant whose forge target's notes from commits take `exclude` and `nonConventional` (#5270).", issue: "#5270", file: "lifecycle/publish-forge.ts", modules: ["@intentius/chant/lifecycle/publish-forge"] },
107
105
  { name: "PUBLISH_HELM_FLOOR", version: "0.124.102", gates: "The first chant that publishes a `helm` target (#5233).", issue: "#5233", file: "lifecycle/publish-helm.ts", modules: ["@intentius/chant/lifecycle/publish-helm"] },
108
106
  { name: "PUBLISH_HOMEBREW_FLOOR", version: "0.124.63", gates: "The first chant that publishes a `homebrew` target (#4676).", issue: "#4676", file: "lifecycle/publish-homebrew.ts", modules: ["@intentius/chant/lifecycle/publish-homebrew"] },
109
107
  { name: "PUBLISH_HOMEBREW_SSH_KEY_FLOOR", version: "0.124.64", gates: "The first chant that reads a homebrew target's `sshKeyEnv` (#4699).", issue: "#4699", file: "lifecycle/publish-homebrew.ts", modules: ["@intentius/chant/lifecycle/publish-homebrew"] },
@@ -114,6 +112,7 @@ export const FLOOR_ROWS = [
114
112
  { name: "PUBLISH_MAVEN_FLOOR", version: "0.124.102", gates: "The first chant that publishes a `maven` target (#5232).", issue: "#5232", file: "lifecycle/publish-maven.ts", modules: ["@intentius/chant/lifecycle/publish-maven"] },
115
113
  { name: "PUBLISH_MCP_REGISTRY_FLOOR", version: "0.124.101", gates: "The first chant with the `mcp-registry` publish target: a `server.json` published to the MCP Registry after the packages it names, with GitHub OIDC, and the `mcp-registry-*` checks of `chant release doctor` (#5162).", issue: "#5162", file: "lifecycle/publish-mcp-registry.ts", modules: ["@intentius/chant/lifecycle/publish-mcp-registry"] },
116
114
  { name: "PUBLISH_NUGET_FLOOR", version: "0.124.102", gates: "The first chant that publishes a `nuget` target (#5232).", issue: "#5232", file: "lifecycle/publish-nuget.ts", modules: ["@intentius/chant/lifecycle/publish-nuget"] },
115
+ { name: "OCI_PLATFORM_TAGS_FLOOR", version: "0.124.104", gates: "The first chant whose oci target takes `platformTags`, a tag for each platform's image in the index (#5269).", issue: "#5269", file: "lifecycle/publish-oci.ts", modules: ["@intentius/chant/lifecycle/publish-oci"] },
117
116
  { name: "PUBLISH_PYPI_FLOOR", version: "0.124.101", gates: "The first chant that publishes a `pypi` target (#5167).", issue: "#5167", file: "lifecycle/publish-pypi.ts", modules: ["@intentius/chant/lifecycle/publish-pypi"] },
118
117
  { name: "PUBLISH_RUBYGEMS_FLOOR", version: "0.124.102", gates: "The first chant that publishes a `rubygems` target (#5232).", issue: "#5232", file: "lifecycle/publish-rubygems.ts", modules: ["@intentius/chant/lifecycle/publish-rubygems"] },
119
118
  { name: "PUBLISH_TAURI_UPDATER_FLOOR", version: "0.124.63", gates: "The first chant that publishes a `tauri-updater` target (#4676).", issue: "#4676", file: "lifecycle/publish-tauri.ts", modules: ["@intentius/chant/lifecycle/publish-tauri"] },
@@ -128,10 +127,12 @@ export const FLOOR_ROWS = [
128
127
  { name: "RELEASE_CATALOG_FLOOR", version: "0.124.55", gates: "The first chant that writes and reads a release catalog (#4595).", issue: "#4595", file: "lifecycle/release-catalog.ts", modules: ["@intentius/chant/lifecycle/release-catalog"] },
129
128
  { name: "RELEASE_CUT_LANE_FLOOR", version: "0.124.64", gates: "The first chant that cuts from a lane's green tag and writes `lane` on the cut line (#4692).", issue: "#4692", file: "lifecycle/release-cut.ts", modules: ["@intentius/chant/lifecycle/release-cut"] },
130
129
  { name: "RELEASE_CUT_OVERRIDE_FLOOR", version: "0.124.64", gates: "The first chant that cuts a commit that is not green under an override and writes `override` on the cut line (#4693).", issue: "#4693", file: "lifecycle/release-cut.ts", modules: ["@intentius/chant/lifecycle/release-cut"] },
130
+ { name: "RELEASE_CHECK_FLOOR", version: "0.124.104", gates: "The first chant whose `chant release cut` runs `release.check`, shell lines that refuse the cut with `release-check-failed` before anything is recorded or tagged, in a dry run too (#5261).", issue: "#5261", file: "lifecycle/release-cut.ts", modules: ["@intentius/chant/lifecycle/release-cut"] },
131
131
  { name: "RELEASE_DOCTOR_FLOOR", version: "0.124.101", gates: "The first chant with `chant release doctor`, which checks each `release.publish` target before a cut, and whose `chant release workflow` runs it in a dispatched release's cut job (`release.workflow.doctor`) (#5161).", issue: "#5161", file: "lifecycle/release-doctor.ts", modules: ["@intentius/chant/lifecycle/release-doctor"] },
132
132
  { name: "RELEASE_IMAGES_FLOOR", version: "0.124.71", gates: "The first chant with `release.images`, `CHANT_RELEASE_DIGESTS`, `chant release images` and an npm target's `pins` (#4657).", issue: "#4657", file: "lifecycle/release-images.ts", modules: ["@intentius/chant/lifecycle/release-images"] },
133
133
  { name: "RELEASE_IMAGE_DOCKERFILE_FLOOR", version: "0.124.78", gates: "The first chant whose `release.images` takes a Dockerfile entry, with `releaseImagePins` and `writeReleaseImagePins` for a product's package build (#4819).", issue: "#4819", file: "lifecycle/release-images.ts", modules: ["@intentius/chant/lifecycle/release-images"] },
134
134
  { name: "RELEASE_IMAGE_ARGS_FLOOR", version: "0.124.88", gates: "The first chant whose Dockerfile entry in `release.images` takes `args`, build arguments beside the two chant passes (#4908).", issue: "#4908", file: "lifecycle/release-images.ts", modules: ["@intentius/chant/lifecycle/release-images"] },
135
+ { name: "RELEASE_IMAGE_LABELS_FLOOR", version: "0.124.104", gates: "The first chant whose Dockerfile entry takes `labels`, OCI labels on the image, and `{label}` and `{version}` in `args` and `labels` values, and whose image builds see `CHANT_RELEASE_VERSION`; and whose default archive moves out of a goreleaser entry's `dist` (#5269).", issue: "#5269", file: "lifecycle/release-images.ts", modules: ["@intentius/chant/lifecycle/release-images"] },
135
136
  { name: "RUN_ORIGIN_CHANT_FLOOR", version: "0.124.30", gates: "The first chant that writes `runOrigin.forge: \"chant\"`, for a job `chant ci run` ran (#4094).", issue: "#4094", file: "lifecycle/release-ledger.ts", modules: ["@intentius/chant", "@intentius/chant/index", "@intentius/chant/lifecycle/index", "@intentius/chant/lifecycle/release-ledger"] },
136
137
  { name: "RUN_ORIGIN_JOB_FLOOR", version: "0.124.32", gates: "The first chant that writes `runOrigin.jobId` and `runOrigin.attempt`, for a forge job that ran `chant ci run` (#4156).", issue: "#4156", file: "lifecycle/release-ledger.ts", modules: ["@intentius/chant", "@intentius/chant/index", "@intentius/chant/lifecycle/index", "@intentius/chant/lifecycle/release-ledger"] },
137
138
  { name: "RELEASE_RECORD_VERSION_FLOOR", version: "0.124.55", gates: "The first chant that writes and reads `releaseVersion` on a release record (#4595).", issue: "#4595", file: "lifecycle/release-ledger.ts", modules: ["@intentius/chant", "@intentius/chant/index", "@intentius/chant/lifecycle/index", "@intentius/chant/lifecycle/release-ledger"] },
@@ -292,7 +293,8 @@ export const FLOOR_ROWS = [
292
293
  { name: "RELEASE_CANDIDATES_CLOSES_FLOOR", version: "0.124.63", gates: "The first chant whose candidates carry `changes[].closes` and `groups[].issue` (#4649).", issue: "#4649", file: "workspace/release-candidates.ts", modules: ["@intentius/chant/workspace/release-candidates"] },
293
294
  { name: "RELEASE_CANDIDATES_LANE_FLOOR", version: "0.124.64", gates: "The first chant whose candidates document carries `lane` and reads a lane's tags (#4692).", issue: "#4692", file: "workspace/release-candidates.ts", modules: ["@intentius/chant/workspace/release-candidates"] },
294
295
  { name: "TRAIN_PROMOTE_FLOOR", version: "0.124.98", gates: "The first chant that writes ReleaseTrainRecord.trainDigest and has `chant workspace train promote` (#4037).", issue: "#4037", file: "workspace/release-train.ts", modules: ["@intentius/chant/workspace/release-train"] },
295
- { name: "TRAIN_ARTIFACTS_FLOOR", version: NEXT_RELEASE, gates: "The first chant with `chant workspace train artifacts`, `train verify` and `train cut --doctor`, and a train publish that gives a member with images its digests in `CHANT_RELEASE_DIGESTS` (#5216): what the train workflow's cut and publish jobs run.", issue: "#5216", file: "workspace/train-artifacts.ts", modules: ["@intentius/chant/workspace/train-artifacts"] },
296
+ { name: "TRAIN_ARTIFACTS_FLOOR", version: "0.124.103", gates: "The first chant with `chant workspace train artifacts`, `train verify` and `train cut --doctor`, and a train publish that gives a member with images its digests in `CHANT_RELEASE_DIGESTS` (#5216): what the train workflow's cut and publish jobs run.", issue: "#5216", file: "workspace/train-artifacts.ts", modules: ["@intentius/chant/workspace/train-artifacts"] },
297
+ { name: "TRAIN_BUILDS_FLOOR", version: "0.124.104", gates: "The first chant with `chant workspace train cut --plan-only` and `--planned` (#5237): what the train workflow's gate and cut jobs run when a member declares `release.workflow.builds`.", issue: "#5237", file: "workspace/train-cut.ts", modules: ["@intentius/chant/workspace/train-cut"] },
296
298
  { name: "TRAIN_PUBLISH_TARGETS_FLOOR", version: "0.124.101", gates: "The first chant whose `chant workspace train publish` orders and resumes members of every target kind (#5165): the oci, forge, homebrew, index, marketplace, pypi, cargo, mcp-registry and tauri-updater targets name what they publish and need, say whether a pinned release is published, and wait until a reveal is served before the next layer; a member's `release.dependsOn` names members a manifest doesn't show.", issue: "#5165", file: "workspace/train-publish.ts", modules: ["@intentius/chant/workspace/train-publish"] },
297
299
  { name: "PROW_LEXICON_FLOOR", version: "0.124.101", package: "@intentius/chant-lexicon-prow", gates: "The first prow lexicon release: `Presubmit`, `Postsubmit`, `Periodic` and `JobConfig`, `emitJobConfig` for plain job data, `forgeJobConfig` for one repository's jobs keyed by its owner/name (#5170), the generators behind `chant build --components --generate prow` and `chant run --generate prow` (#5189), `chant import` of a job config, and the PROW rules (#5169).", issue: "#5169", file: "lexicons/prow/src/chant-floors.ts", modules: ["@intentius/chant-lexicon-prow", "@intentius/chant-lexicon-prow/chant-floors", "@intentius/chant-lexicon-prow/index"] },
298
300
  { name: "MODULE_CONSUMERS_FLOOR", version: "0.124.55", package: "@intentius/chant-lexicon-terraform", gates: "The first terraform lexicon release that has `moduleConsumers`, the scan of every registry module call a root makes, with `readRegistryCatalog` and `deprecatedPins` beside it on `./registry` (#4599).", issue: "#4599", file: "lexicons/terraform/src/chant-floors.ts", modules: ["@intentius/chant-lexicon-terraform/chant-floors", "@intentius/chant-lexicon-terraform/registry", "@intentius/chant-lexicon-terraform/registry/index"] },