@intentius/chant 0.124.99 → 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.
Files changed (245) hide show
  1. package/bin/chant +3 -3
  2. package/dist/action-pins.d.ts +2 -0
  3. package/dist/action-pins.js +3 -0
  4. package/dist/ci-detect.d.ts +13 -0
  5. package/dist/ci-detect.js +12 -0
  6. package/dist/ci-system.d.ts +66 -0
  7. package/dist/ci-system.js +61 -0
  8. package/dist/cli/commands/carve-emit.js +2 -2
  9. package/dist/cli/commands/check-lexicon-plugin.d.ts +2 -2
  10. package/dist/cli/commands/check-lexicon-plugin.js +3 -3
  11. package/dist/cli/commands/check-lexicon.js +4 -4
  12. package/dist/cli/commands/init-lexicon/templates/project.d.ts +1 -1
  13. package/dist/cli/commands/init-lexicon/templates/project.js +4 -4
  14. package/dist/cli/commands/init.d.ts +13 -0
  15. package/dist/cli/commands/init.js +30 -2
  16. package/dist/cli/handlers/build.js +27 -0
  17. package/dist/cli/handlers/release-doctor.d.ts +12 -0
  18. package/dist/cli/handlers/release-doctor.js +118 -0
  19. package/dist/cli/handlers/release-init.d.ts +10 -0
  20. package/dist/cli/handlers/release-init.js +342 -0
  21. package/dist/cli/handlers/release.d.ts +50 -1
  22. package/dist/cli/handlers/release.js +688 -30
  23. package/dist/cli/handlers/run-generate.js +11 -0
  24. package/dist/cli/main.d.ts +2 -0
  25. package/dist/cli/main.js +45 -97
  26. package/dist/cli/parse-args.js +55 -0
  27. package/dist/cli/registry.d.ts +18 -0
  28. package/dist/cli/release-commands/artifacts.d.ts +3 -0
  29. package/dist/cli/release-commands/artifacts.js +14 -0
  30. package/dist/cli/release-commands/candidates.d.ts +3 -0
  31. package/dist/cli/release-commands/candidates.js +16 -0
  32. package/dist/cli/release-commands/changed.d.ts +3 -0
  33. package/dist/cli/release-commands/changed.js +14 -0
  34. package/dist/cli/release-commands/compose.d.ts +3 -0
  35. package/dist/cli/release-commands/compose.js +16 -0
  36. package/dist/cli/release-commands/cut.d.ts +3 -0
  37. package/dist/cli/release-commands/cut.js +49 -0
  38. package/dist/cli/release-commands/doctor.d.ts +3 -0
  39. package/dist/cli/release-commands/doctor.js +14 -0
  40. package/dist/cli/release-commands/export.d.ts +3 -0
  41. package/dist/cli/release-commands/export.js +12 -0
  42. package/dist/cli/release-commands/images.d.ts +3 -0
  43. package/dist/cli/release-commands/images.js +13 -0
  44. package/dist/cli/release-commands/index.d.ts +8 -0
  45. package/dist/cli/release-commands/index.js +52 -0
  46. package/dist/cli/release-commands/init.d.ts +3 -0
  47. package/dist/cli/release-commands/init.js +16 -0
  48. package/dist/cli/release-commands/list.d.ts +3 -0
  49. package/dist/cli/release-commands/list.js +10 -0
  50. package/dist/cli/release-commands/next.d.ts +3 -0
  51. package/dist/cli/release-commands/next.js +13 -0
  52. package/dist/cli/release-commands/publish.d.ts +3 -0
  53. package/dist/cli/release-commands/publish.js +22 -0
  54. package/dist/cli/release-commands/stamp.d.ts +3 -0
  55. package/dist/cli/release-commands/stamp.js +15 -0
  56. package/dist/cli/release-commands/status.d.ts +3 -0
  57. package/dist/cli/release-commands/status.js +17 -0
  58. package/dist/cli/release-commands/tag.d.ts +3 -0
  59. package/dist/cli/release-commands/tag.js +12 -0
  60. package/dist/cli/release-commands/types.d.ts +20 -0
  61. package/dist/cli/release-commands/types.js +1 -0
  62. package/dist/cli/release-commands/verify.d.ts +3 -0
  63. package/dist/cli/release-commands/verify.js +15 -0
  64. package/dist/cli/release-commands/workflow.d.ts +3 -0
  65. package/dist/cli/release-commands/workflow.js +13 -0
  66. package/dist/codegen/pinned-upgrade.js +1 -1
  67. package/dist/components/capability-plugin.d.ts +1 -1
  68. package/dist/components/capability-plugin.js +1 -1
  69. package/dist/components/cli-support.d.ts +1 -1
  70. package/dist/components/cli-support.js +1 -1
  71. package/dist/config-environments.d.ts +8 -1
  72. package/dist/config-environments.js +2 -0
  73. package/dist/config.d.ts +299 -6
  74. package/dist/config.js +102 -5
  75. package/dist/dead-guards.d.ts +5 -1
  76. package/dist/dead-guards.js +34 -23
  77. package/dist/discovery/sandbox/driver.js +1 -1
  78. package/dist/discovery/specifier-resolve.js +1 -1
  79. package/dist/floor-table.d.ts +3 -1
  80. package/dist/floor-table.data.js +23 -3
  81. package/dist/floor-table.js +4 -3
  82. package/dist/forge-remote.d.ts +13 -0
  83. package/dist/forge-remote.js +15 -0
  84. package/dist/lexicon.d.ts +41 -2
  85. package/dist/lifecycle/__fixtures__/publish-fakes.d.ts +62 -0
  86. package/dist/lifecycle/__fixtures__/publish-fakes.js +270 -3
  87. package/dist/lifecycle/publish-attachments.d.ts +2 -1
  88. package/dist/lifecycle/publish-attachments.js +19 -2
  89. package/dist/lifecycle/publish-cargo.d.ts +99 -0
  90. package/dist/lifecycle/publish-cargo.js +412 -0
  91. package/dist/lifecycle/publish-credentials.d.ts +1 -1
  92. package/dist/lifecycle/publish-credentials.js +8 -0
  93. package/dist/lifecycle/publish-declaration.d.ts +199 -4
  94. package/dist/lifecycle/publish-declaration.js +200 -9
  95. package/dist/lifecycle/publish-forge.d.ts +45 -2
  96. package/dist/lifecycle/publish-forge.js +434 -34
  97. package/dist/lifecycle/publish-git-ssh.d.ts +15 -0
  98. package/dist/lifecycle/publish-git-ssh.js +30 -4
  99. package/dist/lifecycle/publish-github.d.ts +40 -2
  100. package/dist/lifecycle/publish-github.js +100 -3
  101. package/dist/lifecycle/publish-homebrew.d.ts +7 -9
  102. package/dist/lifecycle/publish-homebrew.js +34 -197
  103. package/dist/lifecycle/publish-index.d.ts +141 -0
  104. package/dist/lifecycle/publish-index.js +719 -0
  105. package/dist/lifecycle/publish-marketplace.js +77 -0
  106. package/dist/lifecycle/publish-mcp-registry.d.ts +66 -0
  107. package/dist/lifecycle/publish-mcp-registry.js +306 -0
  108. package/dist/lifecycle/publish-npm.js +165 -2
  109. package/dist/lifecycle/publish-oci.d.ts +34 -1
  110. package/dist/lifecycle/publish-oci.js +246 -7
  111. package/dist/lifecycle/publish-pypi.d.ts +136 -0
  112. package/dist/lifecycle/publish-pypi.js +657 -0
  113. package/dist/lifecycle/publish-record.d.ts +6 -3
  114. package/dist/lifecycle/publish-record.js +6 -3
  115. package/dist/lifecycle/publish-signing.d.ts +147 -0
  116. package/dist/lifecycle/publish-signing.js +257 -0
  117. package/dist/lifecycle/publish-targets.d.ts +27 -1
  118. package/dist/lifecycle/publish-targets.js +80 -0
  119. package/dist/lifecycle/publish-tauri.js +43 -0
  120. package/dist/lifecycle/publish-train-names.d.ts +54 -0
  121. package/dist/lifecycle/publish-train-names.js +118 -0
  122. package/dist/lifecycle/publish-verify.d.ts +121 -0
  123. package/dist/lifecycle/publish-verify.js +130 -0
  124. package/dist/lifecycle/query.js +8 -0
  125. package/dist/lifecycle/release-artifacts.d.ts +212 -0
  126. package/dist/lifecycle/release-artifacts.js +571 -0
  127. package/dist/lifecycle/release-changelog.d.ts +13 -1
  128. package/dist/lifecycle/release-changelog.js +35 -2
  129. package/dist/lifecycle/release-cut.d.ts +58 -3
  130. package/dist/lifecycle/release-cut.js +132 -34
  131. package/dist/lifecycle/release-doctor.d.ts +113 -0
  132. package/dist/lifecycle/release-doctor.js +996 -0
  133. package/dist/lifecycle/release-green.d.ts +86 -0
  134. package/dist/lifecycle/release-green.js +286 -0
  135. package/dist/lifecycle/release-init.d.ts +255 -0
  136. package/dist/lifecycle/release-init.js +859 -0
  137. package/dist/lifecycle/release-intents.d.ts +73 -0
  138. package/dist/lifecycle/release-intents.js +128 -0
  139. package/dist/lifecycle/release-next.d.ts +111 -0
  140. package/dist/lifecycle/release-next.js +252 -0
  141. package/dist/lifecycle/release-prerelease.d.ts +19 -0
  142. package/dist/lifecycle/release-prerelease.js +30 -0
  143. package/dist/lifecycle/release-publish.d.ts +256 -10
  144. package/dist/lifecycle/release-publish.js +246 -34
  145. package/dist/lifecycle/release-status-change.d.ts +226 -0
  146. package/dist/lifecycle/release-status-change.js +478 -0
  147. package/dist/lifecycle/release-status.d.ts +11 -0
  148. package/dist/lifecycle/release-status.js +1 -1
  149. package/dist/lifecycle/release-store.d.ts +73 -2
  150. package/dist/lifecycle/release-store.js +32 -1
  151. package/dist/lifecycle/release-tag.d.ts +142 -0
  152. package/dist/lifecycle/release-tag.js +323 -0
  153. package/dist/lifecycle/release-verify.d.ts +73 -1
  154. package/dist/lifecycle/release-verify.js +117 -2
  155. package/dist/lifecycle/release-version-formats.d.ts +73 -0
  156. package/dist/lifecycle/release-version-formats.js +570 -0
  157. package/dist/lifecycle/release-version.d.ts +58 -10
  158. package/dist/lifecycle/release-version.js +164 -36
  159. package/dist/lifecycle/release-workstation.d.ts +3 -2
  160. package/dist/lifecycle/release-workstation.js +3 -2
  161. package/dist/module-source.d.ts +2 -2
  162. package/dist/module-source.js +8 -8
  163. package/dist/op/generate-pipeline.js +1 -1
  164. package/dist/pr-forge-base.js +4 -2
  165. package/dist/pr-forge.d.ts +20 -2
  166. package/dist/pr-forge.js +46 -10
  167. package/dist/release-floors.d.ts +10 -1
  168. package/dist/release-floors.js +10 -1
  169. package/dist/tool-pins.d.ts +38 -0
  170. package/dist/tool-pins.js +54 -0
  171. package/dist/ts-loader.d.ts +1 -1
  172. package/dist/ts-loader.js +6 -6
  173. package/dist/wave-runtime.mjs +337 -334
  174. package/dist/workspace/ci-forge.d.ts +17 -0
  175. package/dist/workspace/ci-forge.js +17 -0
  176. package/dist/workspace/ci-init.js +1 -1
  177. package/dist/workspace/composites.schema.json +1 -0
  178. package/dist/workspace/declaration.d.ts +8 -0
  179. package/dist/workspace/declaration.js +12 -0
  180. package/dist/workspace/declaration.schema.json +8 -0
  181. package/dist/workspace/environments.d.ts +2 -0
  182. package/dist/workspace/environments.js +1 -1
  183. package/dist/workspace/identity-gate-rule.d.ts +61 -5
  184. package/dist/workspace/identity-gate-rule.js +81 -12
  185. package/dist/workspace/member-pipeline.d.ts +2 -1
  186. package/dist/workspace/member-pipeline.js +5 -2
  187. package/dist/workspace/reason-codes.d.ts +6 -0
  188. package/dist/workspace/reason-codes.js +8 -1
  189. package/dist/workspace/release-changed.d.ts +179 -0
  190. package/dist/workspace/release-changed.js +625 -0
  191. package/dist/workspace/release-changed.schema.json +206 -0
  192. package/dist/workspace/release-steps/artifacts.d.ts +7 -0
  193. package/dist/workspace/release-steps/artifacts.js +45 -0
  194. package/dist/workspace/release-steps/builds.d.ts +12 -0
  195. package/dist/workspace/release-steps/builds.js +38 -0
  196. package/dist/workspace/release-steps/doctor.d.ts +8 -0
  197. package/dist/workspace/release-steps/doctor.js +14 -0
  198. package/dist/workspace/release-steps/goreleaser.d.ts +16 -0
  199. package/dist/workspace/release-steps/goreleaser.js +36 -0
  200. package/dist/workspace/release-steps/green.d.ts +3 -0
  201. package/dist/workspace/release-steps/green.js +6 -0
  202. package/dist/workspace/release-steps/images.d.ts +22 -0
  203. package/dist/workspace/release-steps/images.js +59 -0
  204. package/dist/workspace/release-steps/index.d.ts +9 -0
  205. package/dist/workspace/release-steps/index.js +46 -0
  206. package/dist/workspace/release-steps/pypi.d.ts +15 -0
  207. package/dist/workspace/release-steps/pypi.js +21 -0
  208. package/dist/workspace/release-steps/qemu.d.ts +21 -0
  209. package/dist/workspace/release-steps/qemu.js +35 -0
  210. package/dist/workspace/release-steps/signing.d.ts +18 -0
  211. package/dist/workspace/release-steps/signing.js +30 -0
  212. package/dist/workspace/release-steps/stamp.d.ts +3 -0
  213. package/dist/workspace/release-steps/stamp.js +4 -0
  214. package/dist/workspace/release-steps/targets.d.ts +31 -0
  215. package/dist/workspace/release-steps/targets.js +40 -0
  216. package/dist/workspace/release-steps/types.d.ts +104 -0
  217. package/dist/workspace/release-steps/types.js +2 -0
  218. package/dist/workspace/release-steps/verify.d.ts +3 -0
  219. package/dist/workspace/release-steps/verify.js +4 -0
  220. package/dist/workspace/release-toolchains.d.ts +59 -0
  221. package/dist/workspace/release-toolchains.js +133 -0
  222. package/dist/workspace/release-train-workflow.d.ts +29 -0
  223. package/dist/workspace/release-train-workflow.js +85 -0
  224. package/dist/workspace/release-train.d.ts +3 -1
  225. package/dist/workspace/release-train.js +20 -3
  226. package/dist/workspace/release-workflow.d.ts +160 -61
  227. package/dist/workspace/release-workflow.js +539 -193
  228. package/dist/workspace/releases.schema.json +70 -1
  229. package/dist/workspace/search-contract.d.ts +1 -1
  230. package/dist/workspace/security.js +9 -2
  231. package/dist/workspace/train-cut.d.ts +182 -0
  232. package/dist/workspace/train-cut.js +482 -0
  233. package/dist/workspace/train-prepare.d.ts +61 -0
  234. package/dist/workspace/train-prepare.js +267 -0
  235. package/dist/workspace/train-publish.d.ts +177 -0
  236. package/dist/workspace/train-publish.js +575 -0
  237. package/dist/workspace/train-range-labels.d.ts +33 -0
  238. package/dist/workspace/train-range-labels.js +109 -0
  239. package/dist/workspace/trust/seal.d.ts +13 -3
  240. package/dist/workspace/trust/seal.js +14 -4
  241. package/dist/workspace/work-cli.d.ts +3 -2
  242. package/dist/workspace/work-cli.js +3 -2
  243. package/dist/workspace/workspace-ledger.d.ts +14 -1
  244. package/dist/workspace/workspace-ledger.js +33 -7
  245. package/package.json +26 -26
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,10 +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>>;
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>]>>;
169
303
  version: z.ZodOptional<z.ZodObject<{
170
- packages: z.ZodArray<z.ZodString>;
304
+ packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
171
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>]>>;
172
343
  }, z.core.$strict>>;
173
344
  workflow: z.ZodOptional<z.ZodObject<{
174
345
  trigger: z.ZodOptional<z.ZodEnum<{
@@ -179,9 +350,49 @@ export declare const ChantConfigSchema: z.ZodObject<{
179
350
  head: "head";
180
351
  "last-green": "last-green";
181
352
  }>>;
182
- install: z.ZodOptional<z.ZodString>;
353
+ install: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
183
354
  build: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<false>]>>;
184
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>>>;
185
396
  after: z.ZodOptional<z.ZodArray<z.ZodString>>;
186
397
  permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
187
398
  read: "read";
@@ -197,6 +408,7 @@ export declare const ChantConfigSchema: z.ZodObject<{
197
408
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
198
409
  }, z.core.$strict>]>>>;
199
410
  file: z.ZodOptional<z.ZodString>;
411
+ doctor: z.ZodOptional<z.ZodBoolean>;
200
412
  }, z.core.$strict>>;
201
413
  }, z.core.$strip>>;
202
414
  run: z.ZodOptional<z.ZodObject<{
@@ -525,6 +737,15 @@ export interface ChantConfig {
525
737
  * ./lifecycle/release-images.ts.
526
738
  */
527
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[];
528
749
  /**
529
750
  * The green lane `chant release cut` and `chant release candidates` check
530
751
  * when `--lane` is not given (#4692): one `ci.green.lanes` declares in
@@ -532,16 +753,88 @@ export interface ChantConfig {
532
753
  * rather than `ci/green/<sha>`.
533
754
  */
534
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[];
781
+ /**
782
+ * Tag prefixes of releases cut before members had ledgers (#5134), such as
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.
787
+ */
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;
535
806
  /**
536
807
  * The package directories whose `package.json` the release stamps with
537
808
  * its label (#4840), so the version needs no commit: the cut stamps them
538
809
  * before it builds the images and runs the build and puts them back, and
539
810
  * the publish job stamps them with `chant release stamp <label>` before
540
811
  * its build. The lockfile's entries for them follow (`lockfile`, default
541
- * `package-lock.json` when there is one). See
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
542
817
  * ./lifecycle/release-version.ts.
543
818
  */
544
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;
545
838
  /**
546
839
  * The release pipeline `chant release workflow` writes (#4656): a
547
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 { EXECUTOR_FORGES, isOwnershipParamRef, resolveOwnershipStack } from "./config-environments.js";
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().optional(),
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,18 +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(),
164
+ // #5134: tag prefixes of releases cut before members had ledgers, read as a last release by `chant release changed`.
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(),
104
177
  // #4840: the label stamped into these packages' package.json at the cut and the publish.
105
178
  version: z.object({
106
- packages: z.array(z.string().min(1)).min(1),
179
+ packages: z.array(z.string().min(1)).min(1).optional(),
107
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(),
108
192
  }).strict().optional(),
109
193
  workflow: z.object({
110
194
  trigger: z.enum(["tag", "dispatch"]).optional(),
111
195
  gate: z.enum(["last-green", "head"]).optional(),
112
- install: z.string().min(1).optional(),
196
+ install: z.union([z.string().min(1), z.literal(false)]).optional(),
113
197
  build: z.union([z.string().min(1), z.literal(false)]).optional(),
114
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(),
115
210
  after: z.array(z.string().min(1)).optional(),
116
211
  permissions: z.record(z.string(), z.enum(["read", "write"])).optional(),
117
212
  env: z.record(z.string(), z.string()).optional(),
@@ -120,6 +215,8 @@ export const ChantConfigSchema = z.object({
120
215
  z.object({ run: z.string().min(1), env: z.record(z.string(), z.string()).optional() }).strict(),
121
216
  ])).optional(),
122
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(),
123
220
  }).strict().optional(),
124
221
  }).optional(),
125
222
  // Strict: a misspelt key here would leave Ops on the local runtime with
@@ -10,8 +10,10 @@ export interface DeadGuard {
10
10
  floor: string;
11
11
  /** The floor's version. */
12
12
  version: string;
13
- /** The chant pin that meets it. */
13
+ /** The pin that meets it: the product's range on `package`, or on `@intentius/chant` when there is none. */
14
14
  pin: string;
15
+ /** The lexicon package the floor's version belongs to, when it is not `@intentius/chant`. */
16
+ package?: string;
15
17
  /** The line's text, trimmed. */
16
18
  text: string;
17
19
  }
@@ -66,6 +68,8 @@ export interface Guard {
66
68
  kind: DeadGuard["kind"];
67
69
  floor: string;
68
70
  version: string;
71
+ /** The lexicon package the version belongs to; absent for chant core. */
72
+ package?: string;
69
73
  }
70
74
  /**
71
75
  * The feature-detects on a floor in one source file. `table` gives each