@intentius/chant 0.124.77 → 0.124.79

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 (228) hide show
  1. package/dist/__fixtures__/notify-messages/events.d.ts +9 -0
  2. package/dist/__fixtures__/notify-messages/events.d.ts.map +1 -0
  3. package/dist/__fixtures__/notify-messages/events.js +21 -0
  4. package/dist/__fixtures__/product-words.d.ts +14 -0
  5. package/dist/__fixtures__/product-words.d.ts.map +1 -1
  6. package/dist/__fixtures__/product-words.js +11 -0
  7. package/dist/__fixtures__/terragucci-notify.d.ts +66 -0
  8. package/dist/__fixtures__/terragucci-notify.d.ts.map +1 -0
  9. package/dist/__fixtures__/terragucci-notify.js +133 -0
  10. package/dist/action-pins.d.ts +8 -0
  11. package/dist/action-pins.d.ts.map +1 -1
  12. package/dist/action-pins.js +8 -0
  13. package/dist/agent-guard.d.ts.map +1 -1
  14. package/dist/agent-guard.js +1 -2
  15. package/dist/change-set.d.ts +10 -1
  16. package/dist/change-set.d.ts.map +1 -1
  17. package/dist/change-set.js +4 -1
  18. package/dist/ci-agent.d.ts +16 -2
  19. package/dist/ci-agent.d.ts.map +1 -1
  20. package/dist/ci-agent.js +6 -1
  21. package/dist/ci-commit.d.ts +66 -2
  22. package/dist/ci-commit.d.ts.map +1 -1
  23. package/dist/ci-commit.js +147 -19
  24. package/dist/ci-own-jobs.d.ts.map +1 -1
  25. package/dist/ci-own-jobs.js +1 -2
  26. package/dist/ci-product-words.d.ts +18 -4
  27. package/dist/ci-product-words.d.ts.map +1 -1
  28. package/dist/ci-product-words.js +26 -6
  29. package/dist/ci-product.d.ts +7 -3
  30. package/dist/ci-product.d.ts.map +1 -1
  31. package/dist/ci-product.js +8 -5
  32. package/dist/cli/handlers/release.d.ts +8 -0
  33. package/dist/cli/handlers/release.d.ts.map +1 -1
  34. package/dist/cli/handlers/release.js +68 -6
  35. package/dist/cli/handlers/run-wave.js +1 -0
  36. package/dist/cli/main.d.ts.map +1 -1
  37. package/dist/cli/main.js +7 -0
  38. package/dist/cli/mcp/product-tools.d.ts +6 -0
  39. package/dist/cli/mcp/product-tools.d.ts.map +1 -1
  40. package/dist/cli/mcp/product-tools.js +7 -0
  41. package/dist/cli/mcp/read-only.d.ts +12 -0
  42. package/dist/cli/mcp/read-only.d.ts.map +1 -1
  43. package/dist/cli/mcp/read-only.js +16 -0
  44. package/dist/cli/mcp/server.d.ts +11 -0
  45. package/dist/cli/mcp/server.d.ts.map +1 -1
  46. package/dist/cli/mcp/server.js +26 -5
  47. package/dist/cli/mcp/types.d.ts +5 -1
  48. package/dist/cli/mcp/types.d.ts.map +1 -1
  49. package/dist/components/capability.d.ts +42 -0
  50. package/dist/components/capability.d.ts.map +1 -1
  51. package/dist/components/group-digest.d.ts +17 -0
  52. package/dist/components/group-digest.d.ts.map +1 -0
  53. package/dist/components/group-digest.js +18 -0
  54. package/dist/components/groups.d.ts +2 -11
  55. package/dist/components/groups.d.ts.map +1 -1
  56. package/dist/components/groups.js +2 -12
  57. package/dist/components/index.d.ts +1 -1
  58. package/dist/components/index.d.ts.map +1 -1
  59. package/dist/components/pr-env-components.d.ts.map +1 -1
  60. package/dist/components/pr-env-components.js +1 -2
  61. package/dist/config.d.ts +28 -8
  62. package/dist/config.d.ts.map +1 -1
  63. package/dist/config.js +21 -1
  64. package/dist/lexicon.d.ts +8 -0
  65. package/dist/lexicon.d.ts.map +1 -1
  66. package/dist/lexicon.js +8 -0
  67. package/dist/lifecycle/release-cut.d.ts +7 -1
  68. package/dist/lifecycle/release-cut.d.ts.map +1 -1
  69. package/dist/lifecycle/release-cut.js +1 -0
  70. package/dist/lifecycle/release-images.d.ts +86 -3
  71. package/dist/lifecycle/release-images.d.ts.map +1 -1
  72. package/dist/lifecycle/release-images.js +131 -6
  73. package/dist/lifecycle/release-publish.d.ts +8 -1
  74. package/dist/lifecycle/release-publish.d.ts.map +1 -1
  75. package/dist/lifecycle/release-publish.js +30 -3
  76. package/dist/lifecycle/release-version.d.ts +86 -0
  77. package/dist/lifecycle/release-version.d.ts.map +1 -0
  78. package/dist/lifecycle/release-version.js +209 -0
  79. package/dist/mcp/types.d.ts +26 -0
  80. package/dist/mcp/types.d.ts.map +1 -1
  81. package/dist/notify-product.d.ts +11 -2
  82. package/dist/notify-product.d.ts.map +1 -1
  83. package/dist/notify-product.js +15 -4
  84. package/dist/notify-relay.d.ts.map +1 -1
  85. package/dist/notify-relay.js +1 -2
  86. package/dist/notify.d.ts +36 -4
  87. package/dist/notify.d.ts.map +1 -1
  88. package/dist/notify.js +31 -21
  89. package/dist/notify.schema.json +1 -0
  90. package/dist/op/activities/review-product.d.ts +111 -0
  91. package/dist/op/activities/review-product.d.ts.map +1 -0
  92. package/dist/op/activities/review-product.js +115 -0
  93. package/dist/op/gate.d.ts +17 -0
  94. package/dist/op/gate.d.ts.map +1 -1
  95. package/dist/op/gate.js +36 -0
  96. package/dist/op/index.d.ts +8 -6
  97. package/dist/op/index.d.ts.map +1 -1
  98. package/dist/op/index.js +5 -4
  99. package/dist/op/op-waves-after-plan.d.ts +76 -1
  100. package/dist/op/op-waves-after-plan.d.ts.map +1 -1
  101. package/dist/op/op-waves-after-plan.js +142 -3
  102. package/dist/op/op-waves-capability-spec.js +1 -2
  103. package/dist/op/op-waves-capability.d.ts +89 -2
  104. package/dist/op/op-waves-capability.d.ts.map +1 -1
  105. package/dist/op/op-waves-capability.js +215 -7
  106. package/dist/op/op-waves-run-hooks.d.ts +104 -0
  107. package/dist/op/op-waves-run-hooks.d.ts.map +1 -0
  108. package/dist/op/op-waves-run-hooks.js +146 -0
  109. package/dist/op/op-waves-run.d.ts +21 -0
  110. package/dist/op/op-waves-run.d.ts.map +1 -1
  111. package/dist/op/op-waves-run.js +233 -13
  112. package/dist/op/op-waves.d.ts +11 -1
  113. package/dist/op/op-waves.d.ts.map +1 -1
  114. package/dist/op/op-waves.js +7 -1
  115. package/dist/op/runtime.d.ts +2 -0
  116. package/dist/op/runtime.d.ts.map +1 -1
  117. package/dist/policy-engine.d.ts.map +1 -1
  118. package/dist/policy-engine.js +1 -2
  119. package/dist/pr-forge-reads.d.ts +124 -0
  120. package/dist/pr-forge-reads.d.ts.map +1 -0
  121. package/dist/pr-forge-reads.js +322 -0
  122. package/dist/pr-forge.d.ts +14 -0
  123. package/dist/pr-forge.d.ts.map +1 -1
  124. package/dist/pr-forge.js +21 -13
  125. package/dist/pr-plan-note.d.ts +293 -0
  126. package/dist/pr-plan-note.d.ts.map +1 -0
  127. package/dist/pr-plan-note.js +361 -0
  128. package/dist/release-floors.d.ts +13 -1
  129. package/dist/release-floors.d.ts.map +1 -1
  130. package/dist/release-floors.js +13 -1
  131. package/dist/state-export.d.ts.map +1 -1
  132. package/dist/state-export.js +1 -2
  133. package/dist/state-migration.d.ts.map +1 -1
  134. package/dist/state-migration.js +1 -2
  135. package/dist/state-unlock.d.ts.map +1 -1
  136. package/dist/state-unlock.js +1 -2
  137. package/dist/wave-runtime.mjs +314 -314
  138. package/dist/workspace/change-set.schema.json +7 -0
  139. package/dist/workspace/release-workflow.d.ts +7 -0
  140. package/dist/workspace/release-workflow.d.ts.map +1 -1
  141. package/dist/workspace/release-workflow.js +13 -2
  142. package/package.json +1 -1
  143. package/src/__fixtures__/notify-messages/events.ts +23 -0
  144. package/src/__fixtures__/notify-messages/messages.json +50 -0
  145. package/src/__fixtures__/pr-loop/terragucci-plan.note.golden.md +53 -0
  146. package/src/__fixtures__/pr-loop/terragucci-plan.note.json +83 -0
  147. package/src/__fixtures__/product-words.ts +12 -0
  148. package/src/__fixtures__/review-agent/terragucci-review.json +94 -0
  149. package/src/__fixtures__/terragucci-notify.ts +170 -0
  150. package/src/action-pins.test.ts +11 -1
  151. package/src/action-pins.ts +9 -0
  152. package/src/agent-guard.test.ts +1 -2
  153. package/src/agent-guard.ts +1 -2
  154. package/src/change-set.test.ts +20 -0
  155. package/src/change-set.ts +11 -1
  156. package/src/ci-agent.test.ts +9 -0
  157. package/src/ci-agent.ts +15 -2
  158. package/src/ci-commit.test.ts +162 -0
  159. package/src/ci-commit.ts +167 -21
  160. package/src/ci-own-jobs.test.ts +1 -2
  161. package/src/ci-own-jobs.ts +1 -2
  162. package/src/ci-product-words.ts +35 -7
  163. package/src/ci-product.ts +9 -6
  164. package/src/cli/handlers/build-pr-loop-control.test.ts +1 -2
  165. package/src/cli/handlers/build-run-group.test.ts +1 -2
  166. package/src/cli/handlers/release.ts +60 -7
  167. package/src/cli/handlers/run-wave.ts +1 -0
  168. package/src/cli/main.ts +7 -0
  169. package/src/cli/mcp/product-tools.test.ts +50 -0
  170. package/src/cli/mcp/product-tools.ts +8 -0
  171. package/src/cli/mcp/read-only.ts +19 -0
  172. package/src/cli/mcp/server.test.ts +30 -0
  173. package/src/cli/mcp/server.ts +28 -5
  174. package/src/cli/mcp/types.ts +6 -1
  175. package/src/components/capability.ts +41 -0
  176. package/src/components/group-digest.ts +20 -0
  177. package/src/components/groups.ts +3 -13
  178. package/src/components/index.ts +2 -0
  179. package/src/components/pr-env-components.test.ts +1 -2
  180. package/src/components/pr-env-components.ts +1 -2
  181. package/src/config.ts +38 -3
  182. package/src/gate-policy-bundle.test.ts +1 -1
  183. package/src/lexicon.ts +9 -0
  184. package/src/lifecycle/release-cut.ts +11 -0
  185. package/src/lifecycle/release-images-dockerfile.test.ts +229 -0
  186. package/src/lifecycle/release-images.ts +171 -8
  187. package/src/lifecycle/release-publish.ts +34 -3
  188. package/src/lifecycle/release-version.test.ts +155 -0
  189. package/src/lifecycle/release-version.ts +227 -0
  190. package/src/mcp/types.ts +27 -0
  191. package/src/notify-message-words.test.ts +185 -0
  192. package/src/notify-product.ts +16 -4
  193. package/src/notify-relay.ts +1 -2
  194. package/src/notify.schema.json +1 -0
  195. package/src/notify.ts +59 -19
  196. package/src/op/activities/review-product.test.ts +116 -0
  197. package/src/op/activities/review-product.ts +199 -0
  198. package/src/op/gate.ts +46 -0
  199. package/src/op/index.ts +10 -4
  200. package/src/op/op-waves-after-plan-wave.test.ts +226 -0
  201. package/src/op/op-waves-after-plan.ts +170 -5
  202. package/src/op/op-waves-capability-spec.ts +1 -1
  203. package/src/op/op-waves-capability.test.ts +6 -0
  204. package/src/op/op-waves-capability.ts +243 -10
  205. package/src/op/op-waves-run-hooks.test.ts +184 -0
  206. package/src/op/op-waves-run-hooks.ts +195 -0
  207. package/src/op/op-waves-run.ts +240 -16
  208. package/src/op/op-waves-step-wave.test.ts +277 -0
  209. package/src/op/op-waves.ts +15 -2
  210. package/src/op/runtime.ts +2 -0
  211. package/src/op/schedule-overdue.test.ts +26 -0
  212. package/src/policy-engine.test.ts +1 -2
  213. package/src/policy-engine.ts +1 -2
  214. package/src/pr-forge-reads.test.ts +285 -0
  215. package/src/pr-forge-reads.ts +424 -0
  216. package/src/pr-forge.ts +30 -16
  217. package/src/pr-plan-note.test.ts +105 -0
  218. package/src/pr-plan-note.ts +520 -0
  219. package/src/release-floors.ts +19 -1
  220. package/src/state-export.test.ts +1 -2
  221. package/src/state-export.ts +1 -2
  222. package/src/state-migration.test.ts +1 -2
  223. package/src/state-migration.ts +1 -2
  224. package/src/state-unlock.test.ts +1 -2
  225. package/src/state-unlock.ts +1 -2
  226. package/src/workspace/change-set.schema.json +7 -0
  227. package/src/workspace/release-workflow.test.ts +18 -0
  228. package/src/workspace/release-workflow.ts +23 -2
@@ -41,6 +41,10 @@ export declare const CI_COMMIT_FILES_FLOOR = "0.124.73";
41
41
  * product's refusal text ({@link setCommitRefusalReply}) (#4724).
42
42
  */
43
43
  export declare const CI_COMMIT_REPLY_FLOOR = "0.124.77";
44
+ /** The first chant whose commit job takes `commentArg`, one argument after the comment's word passed into the argv (#4820). */
45
+ export declare const CI_COMMIT_ARG_FLOOR = "0.124.78";
46
+ /** The first chant whose `commit land` reads {@link COMMIT_HARNESS_BREAK_ENV} in a BREAK arm of chant's e2e harness (#4836). */
47
+ export declare const CI_COMMIT_HARNESS_BREAK_FLOOR = "0.124.78";
44
48
  /** What starts a commit run: a person's comment, or a check job's finding. */
45
49
  export type CommitTrigger = "comment" | "check";
46
50
  export declare const COMMIT_TRIGGERS: readonly CommitTrigger[];
@@ -108,6 +112,21 @@ export interface OpCommitSpec {
108
112
  * on GitLab they are the project's CI/CD variables.
109
113
  */
110
114
  commandEnv?: string[];
115
+ /**
116
+ * For `on: "comment"` (#4820): the comment may carry one argument after
117
+ * the word, `/<product> <word> <arg>`, which must match `pattern` (a
118
+ * regular expression's source, anchored with `^` and `$`) and chant's
119
+ * own plain-name check ({@link COMMIT_COMMENT_ARG}). It goes into the
120
+ * command's argv at index `position`, from 1 (after the program) to the
121
+ * argv's length (at the end). With no argument the argv is `command`. On
122
+ * GitLab the pipeline's {@link GITLAB_COMMIT_ARG_VAR} carries it.
123
+ */
124
+ commentArg?: CommitCommentArg;
125
+ }
126
+ /** Where a commit job's command takes the comment's argument (#4820). */
127
+ export interface CommitCommentArg {
128
+ pattern: string;
129
+ position: number;
111
130
  }
112
131
  /** A commit job's settings, every default filled and checked. */
113
132
  export interface CommitSettings {
@@ -129,6 +148,8 @@ export interface CommitSettings {
129
148
  after: string[];
130
149
  /** The job variables the command sees (#4724). */
131
150
  commandEnv: string[];
151
+ /** The comment's argument and where it goes in the argv (#4820). */
152
+ commentArg?: CommitCommentArg;
132
153
  }
133
154
  export declare const COMMIT_MAX_RUNS = 3;
134
155
  export declare const COMMIT_TIMEOUT_MINUTES = 10;
@@ -151,12 +172,15 @@ export declare const COMMIT_ENV: {
151
172
  readonly env: "CHANT_COMMIT_ENV";
152
173
  readonly mergeBase: "CHANT_COMMIT_MERGE_BASE";
153
174
  readonly commandEnv: "CHANT_COMMIT_COMMAND_ENV";
175
+ readonly commentArg: "CHANT_COMMIT_COMMENT_ARG";
154
176
  };
155
177
  /** The variable the command reads the pull request's number from (#4724), such as for a default name. */
156
178
  export declare const COMMIT_PR_ENV = "CHANT_COMMIT_PR";
157
179
  /** GitLab starts no pipeline on a note: a pipeline of the default branch started with these runs a comment commit job. */
158
180
  export declare const GITLAB_COMMIT_PR_VAR = "CHANT_COMMIT_PR";
159
181
  export declare const GITLAB_COMMIT_WORD_VAR = "CHANT_COMMIT";
182
+ /** With `commentArg` (#4820): the argument, as the comment would give it after the word. */
183
+ export declare const GITLAB_COMMIT_ARG_VAR = "CHANT_COMMIT_ARG";
160
184
  /** Where the jobs keep the decision, the exit code and the patch, from the job's directory. */
161
185
  export declare const COMMIT_DIR = ".chant/commit";
162
186
  /** The local ref the checkout fetches a pull request's head into. */
@@ -185,6 +209,12 @@ export declare const COMMIT_GIT_NAME = "chant commit";
185
209
  export declare const COMMIT_GIT_EMAIL = "chant-commit@localhost";
186
210
  /** The settings of commit job `name` from a spec's `commit`, checked. */
187
211
  export declare function resolveCommitSpec(name: string, spec: OpCommitSpec, product?: string): CommitSettings;
212
+ /**
213
+ * The argv the command runs (#4820): `command`, with the comment's argument
214
+ * at `commentArg.position` when there is one. An argument the settings do
215
+ * not take, or one off its pattern, throws.
216
+ */
217
+ export declare function commitArgv(s: Pick<CommitSettings, "command"> & Partial<Pick<CommitSettings, "commentArg">>, arg: string | undefined): string[];
188
218
  /** The settings as the generated jobs' variables. */
189
219
  export declare function commitSettingsEnv(s: CommitSettings): Record<string, string>;
190
220
  /** The settings back from the job's variables, checked as {@link resolveCommitSpec} checks a spec. */
@@ -199,6 +229,8 @@ export interface CommitRequest {
199
229
  pr: number;
200
230
  /** The commenter, or the person who started the GitLab pipeline. Absent on the `check` trigger. */
201
231
  user?: string;
232
+ /** The comment's argument (#4820), checked against `commentArg`. */
233
+ arg?: string;
202
234
  }
203
235
  /**
204
236
  * The request from the run. `comment`: the event's comment on GitHub and
@@ -208,7 +240,7 @@ export interface CommitRequest {
208
240
  * pull request the check ran for, from the `pull_request` event or the
209
241
  * merge request pipeline.
210
242
  */
211
- export declare function commitRequestFromRun(words: CiProductWords, s: Pick<CommitSettings, "on" | "comment">, env: Record<string, string | undefined>, event: unknown): CommitRequest | {
243
+ export declare function commitRequestFromRun(words: CiProductWords, s: Pick<CommitSettings, "on" | "comment"> & Partial<Pick<CommitSettings, "commentArg">>, env: Record<string, string | undefined>, event: unknown): CommitRequest | {
212
244
  refused: string;
213
245
  };
214
246
  /**
@@ -217,7 +249,7 @@ export declare function commitRequestFromRun(words: CiProductWords, s: Pick<Comm
217
249
  * the pushed branch, asked of the forge on GitHub and Forgejo. A branch with
218
250
  * no open pull request is refused as before, which the check trigger skips.
219
251
  */
220
- export declare function resolveCommitRequest(words: CiProductWords, s: Pick<CommitSettings, "on" | "comment">, env: Record<string, string | undefined>, event: unknown, forge?: Partial<Pick<PrForge, "findPullRequest">>): Promise<CommitRequest | {
252
+ export declare function resolveCommitRequest(words: CiProductWords, s: Pick<CommitSettings, "on" | "comment"> & Partial<Pick<CommitSettings, "commentArg">>, env: Record<string, string | undefined>, event: unknown, forge?: Partial<Pick<PrForge, "findPullRequest">>): Promise<CommitRequest | {
221
253
  refused: string;
222
254
  }>;
223
255
  /** How a run ended, as its record says. `skipped` is a run with nothing to do, which says nothing and is not recorded. */
@@ -235,6 +267,8 @@ export interface CommitDecision {
235
267
  pr?: number;
236
268
  branch?: string;
237
269
  user?: string;
270
+ /** The comment's argument (#4820), which `commit run` puts in the argv. */
271
+ arg?: string;
238
272
  /** With `mergeBase`: the base branch and the tip the command ran on. */
239
273
  base?: string;
240
274
  baseSha?: string;
@@ -322,6 +356,36 @@ export declare function runCommit(i: CommitRunInput): Promise<{
322
356
  rc: string;
323
357
  changed: boolean;
324
358
  }>;
359
+ /**
360
+ * The push job's variable that turns one of land's checks off, for a BREAK
361
+ * arm of a product's e2e harness scenario: a comma list of
362
+ * {@link COMMIT_HARNESS_CHECKS}. It proves the check matters: with it off,
363
+ * the scenario's expectations must fail. Read only by `chant commit land`,
364
+ * and refused anywhere but chant's harness ({@link commitHarnessBreaks}).
365
+ * The command never sees it: `commandEnv` refuses every `CHANT_COMMIT_*`.
366
+ */
367
+ export declare const COMMIT_HARNESS_BREAK_ENV = "CHANT_COMMIT_HARNESS_BREAK";
368
+ /**
369
+ * The checks the switch may turn off. `paths`: a change outside `allowed`
370
+ * and `allowedFiles` lands (a guarded path is still refused). `moved-base`:
371
+ * with `mergeBase`, a base that moved while the command ran lands the merge
372
+ * of the tip the command ran on.
373
+ */
374
+ export declare const COMMIT_HARNESS_CHECKS: readonly ["paths", "moved-base"];
375
+ export type CommitHarnessCheck = (typeof COMMIT_HARNESS_CHECKS)[number];
376
+ /** The forge a job of chant's e2e harness reaches, `HARNESS_HOSTS.forgejo` (./e2e-harness/stack.ts). */
377
+ export declare const COMMIT_HARNESS_FORGE = "http://forgejo:3000";
378
+ /**
379
+ * The checks {@link COMMIT_HARNESS_BREAK_ENV} turns off, or why it is
380
+ * refused. It is read only in a BREAK arm of chant's e2e harness: `BREAK=1`,
381
+ * not GitLab, and a job whose `GITHUB_SERVER_URL` is the harness's Forgejo,
382
+ * {@link COMMIT_HARNESS_FORGE}. Unset or empty, no check is off.
383
+ */
384
+ export declare function commitHarnessBreaks(env: Record<string, string | undefined>): {
385
+ checks: CommitHarnessCheck[];
386
+ } | {
387
+ refused: string;
388
+ };
325
389
  /**
326
390
  * A product's reply to a command that exited non-zero (#4724): the text that
327
391
  * says why, from the command's exit code and the tail of its standard error,
@@ -1 +1 @@
1
- {"version":3,"file":"ci-commit.d.ts","sourceRoot":"","sources":["../src/ci-commit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAQH,OAAO,EAA6E,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtH,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,uHAAuH;AACvH,eAAO,MAAM,eAAe,aAAa,CAAC;AAE1C,wIAAw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Sync, statSync, writeFileSync } from "no
29
29
  import { join } from "node:path";
30
30
  import { CHANT_EXIT } from "./exit-codes.js";
31
31
  import { FORGE_TOKEN_VARS } from "./ci-handover.js";
32
- import { NEXT_RELEASE } from "./release-floors.js";
33
32
  import { agentForbiddenPaths, AgentError, branchOk, errText, LOGIN, readSmall, SHA } from "./ci-agent.js";
34
- import { parseProductComment } from "./ci-product-words.js";
33
+ import { COMMIT_COMMENT_ARG, parseProductComment } from "./ci-product-words.js";
35
34
  /** The first chant with the commit job and the scheduled Op spec's `commit` (#4722). Products feature-detect on it. */
36
35
  export const CI_COMMIT_FLOOR = "0.124.71";
37
36
  /** The first chant with a commit job after a check that runs on push, `jobToken` and `after` (#4749). Products feature-detect on it. */
@@ -43,7 +42,11 @@ export const CI_COMMIT_FILES_FLOOR = "0.124.73";
43
42
  * `CHANT_COMMIT_PR`, keeps the tail of its standard error and replies with a
44
43
  * product's refusal text ({@link setCommitRefusalReply}) (#4724).
45
44
  */
46
- export const CI_COMMIT_REPLY_FLOOR = NEXT_RELEASE;
45
+ export const CI_COMMIT_REPLY_FLOOR = "0.124.77";
46
+ /** The first chant whose commit job takes `commentArg`, one argument after the comment's word passed into the argv (#4820). */
47
+ export const CI_COMMIT_ARG_FLOOR = "0.124.78";
48
+ /** The first chant whose `commit land` reads {@link COMMIT_HARNESS_BREAK_ENV} in a BREAK arm of chant's e2e harness (#4836). */
49
+ export const CI_COMMIT_HARNESS_BREAK_FLOOR = "0.124.78";
47
50
  export const COMMIT_TRIGGERS = ["comment", "check"];
48
51
  export const COMMIT_MAX_RUNS = 3;
49
52
  export const COMMIT_TIMEOUT_MINUTES = 10;
@@ -66,12 +69,15 @@ export const COMMIT_ENV = {
66
69
  env: "CHANT_COMMIT_ENV",
67
70
  mergeBase: "CHANT_COMMIT_MERGE_BASE",
68
71
  commandEnv: "CHANT_COMMIT_COMMAND_ENV",
72
+ commentArg: "CHANT_COMMIT_COMMENT_ARG",
69
73
  };
70
74
  /** The variable the command reads the pull request's number from (#4724), such as for a default name. */
71
75
  export const COMMIT_PR_ENV = "CHANT_COMMIT_PR";
72
76
  /** GitLab starts no pipeline on a note: a pipeline of the default branch started with these runs a comment commit job. */
73
77
  export const GITLAB_COMMIT_PR_VAR = "CHANT_COMMIT_PR";
74
78
  export const GITLAB_COMMIT_WORD_VAR = "CHANT_COMMIT";
79
+ /** With `commentArg` (#4820): the argument, as the comment would give it after the word. */
80
+ export const GITLAB_COMMIT_ARG_VAR = "CHANT_COMMIT_ARG";
75
81
  /** Where the jobs keep the decision, the exit code and the patch, from the job's directory. */
76
82
  export const COMMIT_DIR = ".chant/commit";
77
83
  /** The local ref the checkout fetches a pull request's head into. */
@@ -165,6 +171,22 @@ export function resolveCommitSpec(name, spec, product = "chant") {
165
171
  const tokens = commandEnv.filter((v) => FORGE_TOKEN_VARS.includes(v) || v === spec.tokenEnv || v.startsWith("CHANT_COMMIT_"));
166
172
  if (tokens.length > 0)
167
173
  throw new AgentError(`${where}: commandEnv may not pass ${tokens.join(", ")}: the command never sees a forge token or the job's own settings`);
174
+ let commentArg;
175
+ if (spec.commentArg !== undefined) {
176
+ const a = spec.commentArg;
177
+ if (spec.on !== "comment")
178
+ throw new AgentError(`${where}: commentArg is for the comment trigger, which has a comment to read it from`);
179
+ if (typeof a.pattern !== "string" || !a.pattern.startsWith("^") || !a.pattern.endsWith("$") || a.pattern.length > 200) {
180
+ throw new AgentError(`${where}: commentArg's pattern is a regular expression's source anchored with ^ and $, such as "^[a-z0-9]+(?:[-_][a-z0-9]+)*$"`);
181
+ }
182
+ try {
183
+ new RegExp(a.pattern);
184
+ }
185
+ catch (e) {
186
+ throw new AgentError(`${where}: commentArg's pattern is not a regular expression (${e.message})`);
187
+ }
188
+ commentArg = { pattern: a.pattern, position: intIn(`${where}: commentArg's position`, a.position, 1, spec.command.length) };
189
+ }
168
190
  return {
169
191
  name,
170
192
  on: spec.on,
@@ -181,8 +203,28 @@ export function resolveCommitSpec(name, spec, product = "chant") {
181
203
  jobToken: spec.jobToken === true,
182
204
  after: [...after],
183
205
  commandEnv: [...new Set(commandEnv)],
206
+ ...(commentArg ? { commentArg } : {}),
184
207
  };
185
208
  }
209
+ /** The words that take an argument, for {@link parseProductComment}: this job's word, when it has `commentArg`. */
210
+ function commentArgPatterns(s) {
211
+ const word = s.comment?.split(" ")[1];
212
+ return word && s.commentArg ? { [word]: new RegExp(s.commentArg.pattern) } : {};
213
+ }
214
+ /**
215
+ * The argv the command runs (#4820): `command`, with the comment's argument
216
+ * at `commentArg.position` when there is one. An argument the settings do
217
+ * not take, or one off its pattern, throws.
218
+ */
219
+ export function commitArgv(s, arg) {
220
+ if (arg === undefined)
221
+ return [...s.command];
222
+ if (!s.commentArg)
223
+ throw new AgentError("this commit job takes no argument after its word");
224
+ if (!COMMIT_COMMENT_ARG.test(arg) || !new RegExp(s.commentArg.pattern).test(arg))
225
+ throw new AgentError(`${JSON.stringify(arg)} is not a name this commit job takes`);
226
+ return [...s.command.slice(0, s.commentArg.position), arg, ...s.command.slice(s.commentArg.position)];
227
+ }
186
228
  /** The settings as the generated jobs' variables. */
187
229
  export function commitSettingsEnv(s) {
188
230
  return {
@@ -199,6 +241,7 @@ export function commitSettingsEnv(s) {
199
241
  [COMMIT_ENV.env]: s.env,
200
242
  ...(s.mergeBase ? { [COMMIT_ENV.mergeBase]: "1" } : {}),
201
243
  ...(s.commandEnv.length > 0 ? { [COMMIT_ENV.commandEnv]: JSON.stringify(s.commandEnv) } : {}),
244
+ ...(s.commentArg ? { [COMMIT_ENV.commentArg]: JSON.stringify(s.commentArg) } : {}),
202
245
  };
203
246
  }
204
247
  /** The settings back from the job's variables, checked as {@link resolveCommitSpec} checks a spec. */
@@ -234,6 +277,19 @@ export function commitSettingsFromEnv(env, product = "chant") {
234
277
  const maxRuns = num(COMMIT_ENV.maxRuns);
235
278
  const timeout = num(COMMIT_ENV.timeout);
236
279
  const guarded = list(COMMIT_ENV.guarded);
280
+ let commentArg;
281
+ const argText = env[COMMIT_ENV.commentArg];
282
+ if (argText) {
283
+ try {
284
+ const parsed = JSON.parse(argText);
285
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed))
286
+ throw new Error("not an object");
287
+ commentArg = parsed;
288
+ }
289
+ catch (e) {
290
+ throw new AgentError(`${COMMIT_ENV.commentArg} is a JSON object with pattern and position (${e.message})`);
291
+ }
292
+ }
237
293
  const spec = {
238
294
  on: env[COMMIT_ENV.on],
239
295
  ...(env[COMMIT_ENV.comment] ? { comment: env[COMMIT_ENV.comment] } : {}),
@@ -247,6 +303,7 @@ export function commitSettingsFromEnv(env, product = "chant") {
247
303
  ...(env[COMMIT_ENV.env] ? { env: env[COMMIT_ENV.env] } : {}),
248
304
  ...(env[COMMIT_ENV.mergeBase] === "1" ? { mergeBase: true } : {}),
249
305
  ...(list(COMMIT_ENV.commandEnv) ? { commandEnv: list(COMMIT_ENV.commandEnv) } : {}),
306
+ ...(commentArg ? { commentArg } : {}),
250
307
  };
251
308
  return resolveCommitSpec(name, spec, product);
252
309
  }
@@ -288,7 +345,8 @@ export function commitRequestFromRun(words, s, env, event) {
288
345
  const word = s.comment?.split(" ")[1];
289
346
  if (gitlab) {
290
347
  pr = Number(env[GITLAB_COMMIT_PR_VAR]);
291
- body = env[GITLAB_COMMIT_WORD_VAR] === word ? s.comment : `/${words.product} ${env[GITLAB_COMMIT_WORD_VAR] ?? ""}`;
348
+ const arg = env[GITLAB_COMMIT_ARG_VAR];
349
+ body = env[GITLAB_COMMIT_WORD_VAR] === word ? `${s.comment}${arg ? ` ${arg}` : ""}` : `/${words.product} ${env[GITLAB_COMMIT_WORD_VAR] ?? ""}`;
292
350
  user = env.GITLAB_USER_LOGIN;
293
351
  }
294
352
  else {
@@ -301,12 +359,12 @@ export function commitRequestFromRun(words, s, env, event) {
301
359
  return { refused: "the run names no pull request" };
302
360
  if (typeof user !== "string" || !LOGIN.test(user))
303
361
  return { refused: "the run names nobody who asked" };
304
- const parsed = parseProductComment(words, body, env);
362
+ const parsed = parseProductComment(words, body, env, commentArgPatterns(s));
305
363
  if (parsed?.kind === "refused")
306
364
  return { refused: parsed.reason };
307
365
  if (parsed?.kind !== "commit" || parsed.word !== word)
308
366
  return { refused: `the comment is not ${s.comment}` };
309
- return { pr, user };
367
+ return { pr, user, ...(parsed.arg !== undefined ? { arg: parsed.arg } : {}) };
310
368
  }
311
369
  /**
312
370
  * GitLab, a branch pipeline (a check that runs on push): the merge request
@@ -366,6 +424,8 @@ export function readCommitDecision(dir) {
366
424
  return undefined;
367
425
  if (d.baseSha !== undefined && !SHA.test(d.baseSha))
368
426
  return undefined;
427
+ if (d.arg !== undefined && !(typeof d.arg === "string" && COMMIT_COMMENT_ARG.test(d.arg)))
428
+ return undefined;
369
429
  return d;
370
430
  }
371
431
  catch {
@@ -456,7 +516,7 @@ export async function prepareCommitRun(i) {
456
516
  const req = await resolveCommitRequest(i.words, s, i.env, i.event, i.forge);
457
517
  if ("refused" in req)
458
518
  return no(req.refused, s.on === "check" ? "skipped" : "refused");
459
- const who = { pr: req.pr, ...(req.user ? { user: req.user } : {}) };
519
+ const who = { pr: req.pr, ...(req.user ? { user: req.user } : {}), ...(req.arg !== undefined ? { arg: req.arg } : {}) };
460
520
  if (req.user && i.forge?.userCanWrite && !(await i.forge.userCanWrite(req.user)))
461
521
  return no(`${req.user} cannot write to the repository, so ${s.name} does not run for them`, "refused", who);
462
522
  let sha;
@@ -576,6 +636,14 @@ export async function runCommit(i) {
576
636
  writeFileSync(rcFile, "refused\n");
577
637
  return { rc: "refused", changed: false };
578
638
  }
639
+ let argv;
640
+ try {
641
+ argv = commitArgv(i.settings, decision.arg);
642
+ }
643
+ catch {
644
+ writeFileSync(rcFile, "refused\n");
645
+ return { rc: "refused", changed: false };
646
+ }
579
647
  i.git(["worktree", "add", "--detach", "--force", i.workDir, decision.sha]);
580
648
  if (i.settings.mergeBase) {
581
649
  if (!decision.baseSha) {
@@ -592,7 +660,7 @@ export async function runCommit(i) {
592
660
  }
593
661
  }
594
662
  const env = commitCommandEnv(i.env, i.checkout, { names: i.settings.commandEnv, ...(decision.pr !== undefined ? { pr: decision.pr } : {}) });
595
- const out = await i.runCommand(i.settings.command, { cwd: i.workDir, env, timeoutMs: i.settings.timeout * 60000 });
663
+ const out = await i.runCommand(argv, { cwd: i.workDir, env, timeoutMs: i.settings.timeout * 60000 });
596
664
  const rc = out.timedOut ? "timeout" : out.exitCode === null ? "no-exit" : String(out.exitCode);
597
665
  writeFileSync(rcFile, `${rc}\n`);
598
666
  if (out.output)
@@ -602,6 +670,46 @@ export async function runCommit(i) {
602
670
  writeFileSync(join(i.dir, COMMIT_PATCH_FILE), patch);
603
671
  return { rc, changed: patch.length > 0 };
604
672
  }
673
+ // ── the harness's BREAK switch (#4836) ─────────────────────────────────────
674
+ /**
675
+ * The push job's variable that turns one of land's checks off, for a BREAK
676
+ * arm of a product's e2e harness scenario: a comma list of
677
+ * {@link COMMIT_HARNESS_CHECKS}. It proves the check matters: with it off,
678
+ * the scenario's expectations must fail. Read only by `chant commit land`,
679
+ * and refused anywhere but chant's harness ({@link commitHarnessBreaks}).
680
+ * The command never sees it: `commandEnv` refuses every `CHANT_COMMIT_*`.
681
+ */
682
+ export const COMMIT_HARNESS_BREAK_ENV = "CHANT_COMMIT_HARNESS_BREAK";
683
+ /**
684
+ * The checks the switch may turn off. `paths`: a change outside `allowed`
685
+ * and `allowedFiles` lands (a guarded path is still refused). `moved-base`:
686
+ * with `mergeBase`, a base that moved while the command ran lands the merge
687
+ * of the tip the command ran on.
688
+ */
689
+ export const COMMIT_HARNESS_CHECKS = ["paths", "moved-base"];
690
+ /** The forge a job of chant's e2e harness reaches, `HARNESS_HOSTS.forgejo` (./e2e-harness/stack.ts). */
691
+ export const COMMIT_HARNESS_FORGE = "http://forgejo:3000";
692
+ const HARNESS_WORDS = { paths: "the path check", "moved-base": "the moved-base check" };
693
+ /**
694
+ * The checks {@link COMMIT_HARNESS_BREAK_ENV} turns off, or why it is
695
+ * refused. It is read only in a BREAK arm of chant's e2e harness: `BREAK=1`,
696
+ * not GitLab, and a job whose `GITHUB_SERVER_URL` is the harness's Forgejo,
697
+ * {@link COMMIT_HARNESS_FORGE}. Unset or empty, no check is off.
698
+ */
699
+ export function commitHarnessBreaks(env) {
700
+ const raw = env[COMMIT_HARNESS_BREAK_ENV]?.trim() ?? "";
701
+ if (raw === "")
702
+ return { checks: [] };
703
+ const server = env.GITHUB_SERVER_URL?.replace(/\/+$/, "");
704
+ if (env.BREAK !== "1" || env.GITLAB_CI === "true" || server !== COMMIT_HARNESS_FORGE) {
705
+ return { refused: `${COMMIT_HARNESS_BREAK_ENV} is read only in a BREAK arm of chant's e2e harness (BREAK=1 on the harness's Forgejo, ${COMMIT_HARNESS_FORGE}), and this job is not one` };
706
+ }
707
+ const named = raw.split(",").map((c) => c.trim()).filter((c) => c !== "");
708
+ const bad = named.filter((c) => !COMMIT_HARNESS_CHECKS.includes(c));
709
+ if (bad.length > 0)
710
+ return { refused: `${COMMIT_HARNESS_BREAK_ENV} names ${bad.join(", ")}; the checks it turns off are ${COMMIT_HARNESS_CHECKS.join(" and ")}` };
711
+ return { checks: [...new Set(named)] };
712
+ }
605
713
  let activeRefusalReply;
606
714
  /** Set the refusal reply for this process (a product's bin, once, as it sets its words). Returns the one it replaced. */
607
715
  export function setCommitRefusalReply(reply) {
@@ -672,18 +780,31 @@ export async function landCommitChange(i) {
672
780
  if ("refused" in req)
673
781
  return finish({ result: s.on === "check" ? "skipped" : "refused", reason: req.refused });
674
782
  ({ pr, user } = req);
783
+ // #4836: a BREAK arm of the harness may turn a check off; anywhere else the switch fails the land.
784
+ const harness = commitHarnessBreaks(i.env);
785
+ if ("refused" in harness)
786
+ return finish({ result: "failed", reason: harness.refused }, `${harness.refused}, so nothing was pushed.`);
787
+ const off = new Set(harness.checks);
675
788
  const decision = readCommitDecision(i.dir);
676
- if (!decision || decision.name !== s.name || decision.on !== s.on || (decision.pr !== undefined && decision.pr !== pr)) {
789
+ if (!decision || decision.name !== s.name || decision.on !== s.on || (decision.pr !== undefined && decision.pr !== pr) || (decision.go && decision.arg !== req.arg)) {
677
790
  return finish({ result: "failed", reason: "the commit job left no decision this job can read" }, "the commit job left nothing to land, so nothing was pushed.");
678
791
  }
679
792
  if (!decision.go)
680
793
  return finish({ result: decision.stop ?? "refused", reason: decision.reason ?? "refused" }, `${decision.reason ?? `${s.name} did not run`}, so nothing was pushed.`);
794
+ // What ran, as the replies and the commit name it: the command with the comment's argument (#4820).
795
+ let ranArgv;
796
+ try {
797
+ ranArgv = commitArgv(s, req.arg).join(" ");
798
+ }
799
+ catch (e) {
800
+ return finish({ result: "refused", reason: errText(e) }, `${errText(e)}, so nothing was pushed.`);
801
+ }
681
802
  const rc = readSmall(join(i.dir, COMMIT_RC_FILE))?.trim() ?? "";
682
803
  if (rc === "conflict") {
683
804
  return finish({ result: "refused", reason: `merging ${decision.base ?? "the base"} into the head conflicts` }, `merging ${code(decision.base ?? "the base")} into the ${what} conflicts, so ${s.name} did not run and nothing was pushed. Resolve the conflict on the branch.`);
684
805
  }
685
806
  if (rc === "timeout")
686
- return finish({ result: "stopped", reason: `the command passed its ${s.timeout} minute limit` }, `${code(s.command.join(" "))} was stopped at its ${s.timeout} minute limit, so nothing was pushed.`);
807
+ return finish({ result: "stopped", reason: `the command passed its ${s.timeout} minute limit` }, `${code(ranArgv)} was stopped at its ${s.timeout} minute limit, so nothing was pushed.`);
687
808
  if (rc !== "0" && /^[0-9]+$/.test(rc) && i.refusalReply) {
688
809
  let said;
689
810
  try {
@@ -696,7 +817,7 @@ export async function landCommitChange(i) {
696
817
  return finish({ result: "refused", reason: `the command refused, exiting ${rc}` }, `${said.trim()} Nothing was pushed.`);
697
818
  }
698
819
  if (rc !== "0")
699
- return finish({ result: "failed", reason: `the command exited ${rc || "with no code"}` }, `${code(s.command.join(" "))} stopped with ${rc ? `exit code ${rc}` : "no exit code"}, so nothing was pushed. The commit job's log has its output.`);
820
+ return finish({ result: "failed", reason: `the command exited ${rc || "with no code"}` }, `${code(ranArgv)} stopped with ${rc ? `exit code ${rc}` : "no exit code"}, so nothing was pushed. The commit job's log has its output.`);
700
821
  const head = await i.forge.pullRequestHead?.(pr).catch(() => undefined);
701
822
  if (!head || !head.open || !head.sameRepo || !branchOk(head.branch))
702
823
  return finish({ result: "refused", reason: `#${pr} is not an open ${what} from this repository` }, `#${pr} is not an open ${what} from this repository, so nothing was pushed.`);
@@ -721,8 +842,12 @@ export async function landCommitChange(i) {
721
842
  catch (e) {
722
843
  return finish({ result: "failed", reason: `could not fetch ${target} (${errText(e)})` });
723
844
  }
724
- if (baseSha !== decision.baseSha)
725
- return finish({ result: s.on === "check" ? "skipped" : "refused", reason: "the base moved" }, `${code(target)} moved while ${s.name} ran, so nothing was pushed. Ask again.`);
845
+ if (baseSha !== decision.baseSha) {
846
+ if (!off.has("moved-base"))
847
+ return finish({ result: s.on === "check" ? "skipped" : "refused", reason: "the base moved" }, `${code(target)} moved while ${s.name} ran, so nothing was pushed. Ask again.`);
848
+ // BREAK: land the merge of the tip the command ran on, which the check exists to stop.
849
+ baseSha = decision.baseSha;
850
+ }
726
851
  }
727
852
  // The limit and the approval again, on this job's own read.
728
853
  const earlier = (await i.readRuns().catch(() => [])).filter((r) => Date.parse(r.started) < Date.parse(started));
@@ -739,7 +864,7 @@ export async function landCommitChange(i) {
739
864
  if (approved && s.on === "check")
740
865
  return finish({ result: "refused", reason: `the plan of ${sha.slice(0, 8)} is approved by ${approved}, and a commit would void that approval` });
741
866
  const patch = join(i.dir, COMMIT_PATCH_FILE);
742
- const nothing = () => finish({ result: s.on === "check" ? "skipped" : "refused", reason: "the command changed nothing" }, `${code(s.command.join(" "))} changed nothing, so nothing was pushed.`);
867
+ const nothing = () => finish({ result: s.on === "check" ? "skipped" : "refused", reason: "the command changed nothing" }, `${code(ranArgv)} changed nothing, so nothing was pushed.`);
743
868
  if (!existsSync(patch) || statSync(patch).size === 0)
744
869
  return nothing();
745
870
  let paths;
@@ -764,13 +889,15 @@ export async function landCommitChange(i) {
764
889
  }
765
890
  if (paths.length === 0)
766
891
  return nothing();
767
- const { forbidden, outside } = commitRefusedPaths(paths, s);
892
+ const refusedPaths = commitRefusedPaths(paths, s);
893
+ const forbidden = refusedPaths.forbidden;
894
+ const outside = off.has("paths") ? [] : refusedPaths.outside;
768
895
  if (forbidden.length > 0 || outside.length > 0) {
769
896
  const bad = [...new Set([...forbidden, ...outside])];
770
- return finish({ result: "refused", reason: `the change touches ${bad.join(", ")}`, paths }, `${code(s.command.join(" "))} changed ${bad.map(code).join(", ")}, which ${s.name} may not change (it may change ${[...s.allowed, ...s.allowedFiles].map(code).join(", ")}, and never CI, chant's settings and state, code owners, agent instructions or git settings), so nothing was pushed.`);
897
+ return finish({ result: "refused", reason: `the change touches ${bad.join(", ")}`, paths }, `${code(ranArgv)} changed ${bad.map(code).join(", ")}, which ${s.name} may not change (it may change ${[...s.allowed, ...s.allowedFiles].map(code).join(", ")}, and never CI, chant's settings and state, code owners, agent instructions or git settings), so nothing was pushed.`);
771
898
  }
772
- const title = s.on === "comment" ? `${s.comment} asked for by ${user} on ${what} #${pr}` : `${s.name} after the check found something at ${sha.slice(0, 8)}`;
773
- const ran = baseSha ? `Merged ${decision.base} at ${baseSha.slice(0, 12)} into ${sha.slice(0, 12)}, then ran ${s.command.join(" ")}.` : `Ran ${s.command.join(" ")} on ${sha.slice(0, 12)}.`;
899
+ const title = s.on === "comment" ? `${s.comment}${req.arg !== undefined ? ` ${req.arg}` : ""} asked for by ${user} on ${what} #${pr}` : `${s.name} after the check found something at ${sha.slice(0, 8)}`;
900
+ const ran = baseSha ? `Merged ${decision.base} at ${baseSha.slice(0, 12)} into ${sha.slice(0, 12)}, then ran ${ranArgv}.` : `Ran ${ranArgv} on ${sha.slice(0, 12)}.`;
774
901
  const message = [title, "", ran, "", ...(user ? [`Requested-by: ${user}`] : []), `${COMMIT_TRAILER}: ${s.name}`, ""].join("\n");
775
902
  let commitSha;
776
903
  try {
@@ -787,8 +914,9 @@ export async function landCommitChange(i) {
787
914
  catch (e) {
788
915
  return finish({ result: "failed", reason: `could not push to ${head.branch} (${errText(e)})`, commit: commitSha }, `could not push to ${code(head.branch)} (${errText(e)}), so nothing was pushed.`);
789
916
  }
917
+ const breakNote = off.size > 0 ? ` (BREAK: ${[...off].map((c) => HARNESS_WORDS[c]).join(" and ")} ${off.size === 1 ? "was" : "were"} off)` : "";
790
918
  const voided = approved ? ` The plan of ${code(sha.slice(0, 8))} was approved by ${approved}; the new commit is planned again and needs approval again.` : "";
791
- return finish({ result: "pushed", reason: `pushed ${commitSha} to ${head.branch}`, commit: commitSha, paths, ...(approved ? { approvalVoided: approved } : {}) }, `pushed ${code(commitSha.slice(0, 8))} to ${code(head.branch)}${user ? ` for ${user}` : ""}, from ${baseSha ? `a merge of ${code(decision.base)} and ` : ""}${code(s.command.join(" "))}, changing ${paths.map(code).join(", ")}.${voided} Nothing was applied, approved or merged.`);
919
+ return finish({ result: "pushed", reason: `pushed ${commitSha} to ${head.branch}${breakNote}`, commit: commitSha, paths, ...(approved ? { approvalVoided: approved } : {}) }, `pushed ${code(commitSha.slice(0, 8))} to ${code(head.branch)}${user ? ` for ${user}` : ""}, from ${baseSha ? `a merge of ${code(decision.base)} and ` : ""}${code(ranArgv)}, changing ${paths.map(code).join(", ")}.${voided} Nothing was applied, approved or merged.${breakNote}`);
792
920
  }
793
921
  // ── what the generated jobs run ────────────────────────────────────────────
794
922
  /** The three commands of the commit jobs, through the product's bin. */
@@ -1 +1 @@
1
- {"version":3,"file":"ci-own-jobs.d.ts","sourceRoot":"","sources":["../src/ci-own-jobs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAMH,kJAAkJ;AAClJ,eAAO,MAAM,cAAc,aAAe,CAAC;AAE3C,qDAAqD;AACrD,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC3D,eAAO,MAAM,eAAe,EAAE,SAAS,YAAY,EAAoC,CAAC;A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E,IAAI,CAAC,mBAAmB,EAAE,eAAe,CAAM,GAAG,MAAM,CAWpL;AAED,wGAAwG;AACxG,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAAE,OAAO,GAAE,mBAAwB,GAAG,MAAM,CAOxJ;AAeD,0FAA0F;AAC1F,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,SAAS,MAAM,EAAO,GAAG,OAAO,CAEnF;AAED,MAAM,WAAW,kBAAkB;IACjC,qHAAqH;IACrH,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,sGAAsG;AACtG,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,GAAE,SAAS,MAAM,EAAO,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAQrI;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,GAAE,kBAAuB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAIpK"}
@@ -21,9 +21,8 @@
21
21
  */
22
22
  import { readFileSync } from "node:fs";
23
23
  import { emitYAMLEntry, parseYAMLDocument } from "./yaml.js";
24
- import { NEXT_RELEASE } from "./release-floors.js";
25
24
  /** The first chant with `mergeOwnJobs`, `keepOwnJobs` and `chant build --own-jobs` / `--keep-own-jobs` (#4769). Products feature-detect on it. */
26
- export const OWN_JOBS_FLOOR = NEXT_RELEASE;
25
+ export const OWN_JOBS_FLOOR = "0.124.77";
27
26
  export const OWN_JOBS_FORGES = ["github", "gitlab", "forgejo"];
28
27
  /** The default line above the own jobs. A product passes its own as `line`. */
29
28
  export const OWN_JOBS_LINE = "# Your own jobs, kept as they are when chant writes this file again.";
@@ -19,9 +19,10 @@
19
19
  * command's lifetime. Every renderer here reads {@link activeProductWords}
20
20
  * when it is given none.
21
21
  *
22
- * This module imports nothing: the pull request loop bundle (pr-loop.ts,
23
- * pr-loop-bundle.test.ts) carries it.
22
+ * This module imports nothing at run time (the one import is a type): the
23
+ * pull request loop bundle (pr-loop.ts, pr-loop-bundle.test.ts) carries it.
24
24
  */
25
+ import type { NotifyMessageWords } from "./notify.js";
25
26
  /** The stages a product names: the status context after the prefix, and the word in the note. */
26
27
  export type CiProductStage = "plan" | "apply" | "record" | "check" | "drift" | "lock" | "approval" | "control";
27
28
  /** Every stage slot, in the order {@link assertProductWords} reports them. */
@@ -132,12 +133,15 @@ export interface CiProductNotifyWordsInput {
132
133
  wave?: string;
133
134
  /** The signed webhook's header prefix. Default `x-<product>`, so chant's stays `x-chant`. */
134
135
  headers?: string;
136
+ /** The labels, re-run button and other words of chant's Slack and Teams messages (#4818). Default: chant's. */
137
+ message?: NotifyMessageWords;
135
138
  }
136
139
  /** The notify slots, filled. */
137
140
  export interface CiProductNotifyWords {
138
141
  source: string;
139
142
  wave: string;
140
143
  headers: string;
144
+ message?: NotifyMessageWords;
141
145
  }
142
146
  /** chant's own wave label in a notify summary. */
143
147
  export declare const CHANT_NOTIFY_WAVE_TEMPLATE = "wave {k} ({name}) of {spec}";
@@ -295,10 +299,17 @@ export type ParsedProductComment =
295
299
  | {
296
300
  kind: "commit";
297
301
  word: string;
302
+ arg?: string;
298
303
  } | {
299
304
  kind: "refused";
300
305
  reason: string;
301
306
  };
307
+ /**
308
+ * The one argument a commit word may take after it (#4820), on top of the
309
+ * product's own pattern: a plain name, no leading dash, no path or shell
310
+ * syntax, at most 100 characters.
311
+ */
312
+ export declare const COMMIT_COMMENT_ARG: RegExp;
302
313
  /** The longest ask an agent comment may carry. */
303
314
  export declare const PRODUCT_COMMENT_ASK_MAX = 2000;
304
315
  /**
@@ -309,9 +320,12 @@ export declare const PRODUCT_COMMENT_ASK_MAX = 2000;
309
320
  * comment is untrusted input: only a member path checked against a pattern
310
321
  * with no shell syntax, and a wave number, leave this function.
311
322
  *
312
- * `env` turns on an alias whose `when` variable is `1` there.
323
+ * `env` turns on an alias whose `when` variable is `1` there. `commitArgs`
324
+ * names the commit words that take one argument after them (#4820), each
325
+ * with the pattern it must match; it must also match
326
+ * {@link COMMIT_COMMENT_ARG}. Any other commit word takes nothing.
313
327
  */
314
- export declare function parseProductComment(words: CiProductWords, body: unknown, env?: Record<string, string | undefined>): ParsedProductComment | undefined;
328
+ export declare function parseProductComment(words: CiProductWords, body: unknown, env?: Record<string, string | undefined>, commitArgs?: Readonly<Record<string, RegExp>>): ParsedProductComment | undefined;
315
329
  /**
316
330
  * The variables the generated action job (#4654) hands the product's action
317
331
  * verb: the comment that started it, on a comment, and the dispatch's two