@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
@@ -39,6 +39,7 @@
39
39
  * deploy of the release (`chant components promote --release`), never here.
40
40
  */
41
41
  import { execFileSync } from "node:child_process";
42
+ import { stampedChanges } from "./release-version.js";
42
43
  import { createRedactor } from "./publish-credentials.js";
43
44
  /**
44
45
  * Whether the process environment gives this run an OIDC token for
@@ -165,7 +166,10 @@ export async function preparePublish(req) {
165
166
  }
166
167
  // A target publishes files from this checkout, so they must be the release commit's (#4047).
167
168
  if (targets.length > 0) {
168
- const refused = checkCheckoutIsRelease(cwd, release.commit, name);
169
+ // #4840: the files release.version names may carry the label, as the publish job's `chant release stamp` writes them.
170
+ const { loadChantConfig } = await import("../config.js");
171
+ const version = (await loadChantConfig(cwd)).config.release?.version;
172
+ const refused = checkCheckoutIsRelease(cwd, release.commit, name, version ? { version, label } : {});
169
173
  if (refused)
170
174
  return { refusal: refused };
171
175
  }
@@ -198,8 +202,11 @@ export async function preparePublish(req) {
198
202
  * checkout is the release's commit with nothing changed, so a publish refuses
199
203
  * a `HEAD` that is another commit and a tree with changes git sees. A publish
200
204
  * with no target reads nothing and checks neither.
205
+ *
206
+ * Under `release.version` (#4840), a file it names that is exactly the
207
+ * commit's stamped with the release's label is the commit's too.
201
208
  */
202
- export function checkCheckoutIsRelease(cwd, commit, name) {
209
+ export function checkCheckoutIsRelease(cwd, commit, name, o = {}) {
203
210
  const head = tryGit(cwd, ["rev-parse", "HEAD"]);
204
211
  if (head !== commit) {
205
212
  return {
@@ -208,7 +215,9 @@ export function checkCheckoutIsRelease(cwd, commit, name) {
208
215
  fix: `Check out the release's commit, as a CI job on its tag does: git checkout ${commit}`,
209
216
  };
210
217
  }
211
- const status = tryGit(cwd, ["status", "--porcelain", "--untracked-files=normal"]);
218
+ let status = tryGit(cwd, ["status", "--porcelain", "--untracked-files=normal"]);
219
+ if (status && o.version)
220
+ status = withoutStamps(cwd, commit, o.version, o.label ?? null, status);
212
221
  if (status) {
213
222
  const n = status.split("\n").length;
214
223
  return {
@@ -219,6 +228,24 @@ export function checkCheckoutIsRelease(cwd, commit, name) {
219
228
  }
220
229
  return null;
221
230
  }
231
+ /** The porcelain status without the files {@link stampedChanges} takes as the commit's stamped with the label. */
232
+ function withoutStamps(cwd, commit, version, label, status) {
233
+ let raw;
234
+ let top;
235
+ try {
236
+ raw = execFileSync("git", ["status", "--porcelain", "--untracked-files=normal"], { cwd, encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] });
237
+ top = execFileSync("git", ["rev-parse", "--show-toplevel"], { cwd, encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] }).trim();
238
+ }
239
+ catch {
240
+ return status;
241
+ }
242
+ const stamped = stampedChanges({ cwd, top, commit, config: version, label, status: raw });
243
+ return raw
244
+ .split("\n")
245
+ .filter((l) => l.length > 0 && !stamped.has(l.slice(3)))
246
+ .join("\n")
247
+ .trim();
248
+ }
222
249
  function tryGit(cwd, args) {
223
250
  try {
224
251
  return execFileSync("git", args, { cwd, encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] }).trim();
@@ -0,0 +1,86 @@
1
+ /**
2
+ * The release's label as the package version (#4840).
3
+ *
4
+ * A product released with `chant release cut <label>` used to set its
5
+ * version with a commit first, because the npm target publishes the
6
+ * package directory's `package.json`, the bundle imports the version from
7
+ * it, and `releaseImagePins` refuses a label that is not the version.
8
+ * `release.version` in `chant.config.ts` names the package directories
9
+ * whose `package.json` the release stamps with the label instead, and the
10
+ * lockfile whose entries for them follow:
11
+ *
12
+ * ```ts
13
+ * release: { version: { packages: ["packages/terragucci"] } },
14
+ * ```
15
+ *
16
+ * The cut stamps them after its clean-tree check and before it builds the
17
+ * images and runs the build, and puts the files back when it is done. The
18
+ * publish job runs `chant release stamp <label>` before its build, and
19
+ * `chant release publish` accepts a tree whose only changes are those files
20
+ * as the commit's own stamped with the release's label
21
+ * ({@link stampedChanges}). Only `version` changes: dependency ranges and
22
+ * every other field are left as committed. scripts/release-pack.sh does the
23
+ * same for chant itself, and more (the `@intentius/` ranges, the floors, the
24
+ * packing in dependency layers), so chant's own release keeps it.
25
+ *
26
+ * This module reaches only Node's built-ins and git.
27
+ */
28
+ /** The first chant with `release.version` and `chant release stamp` (#4840). Products feature-detect on it. */
29
+ export declare const RELEASE_VERSION_FLOOR = "0.124.79";
30
+ /** `release.version` in `chant.config.ts`. */
31
+ export interface ReleaseVersionConfig {
32
+ /** The package directories, relative to the member, whose `package.json` takes the label as its `version`: `"."` for the member's own. */
33
+ packages: string[];
34
+ /** The lockfile whose entries for those packages take it too. Default `package-lock.json` when the member has one; `false` for none. */
35
+ lockfile?: string | false;
36
+ }
37
+ export declare class ReleaseVersionError extends Error {
38
+ readonly code: string;
39
+ readonly fix?: string | undefined;
40
+ constructor(code: string, message: string, fix?: string | undefined);
41
+ }
42
+ /** Refuse a label `package.json` can't carry as its version. */
43
+ export declare function checkVersionLabel(label: string | null): asserts label is string;
44
+ /** Check the declaration's paths: at least one package, every path inside the member. */
45
+ export declare function checkReleaseVersion(config: ReleaseVersionConfig): void;
46
+ /** The files the release stamps, relative to the member: each package's `package.json`, then the lockfile. */
47
+ export declare function releaseVersionFiles(cwd: string, config: ReleaseVersionConfig): string[];
48
+ /**
49
+ * One file's text stamped with `label`: a `package.json`'s `version`, or a
50
+ * lockfile's entries for `packageDirs` (relative to the lockfile's
51
+ * directory), with the root entry's `version` beside it for `"."`. A
52
+ * lockfile entry that is not there is not added.
53
+ */
54
+ export declare function stampText(text: string, label: string, kind: "package" | "lockfile", packageDirs?: readonly string[]): string;
55
+ export interface Stamped {
56
+ /** The files stamped, relative to the member. */
57
+ files: string[];
58
+ /** Put every stamped file back as it was. */
59
+ restore(): void;
60
+ }
61
+ /**
62
+ * Stamp the label into each file {@link releaseVersionFiles} names, and
63
+ * return how to put them back. Refuses a label that is not a version and a
64
+ * package directory with no `package.json`, before anything is written.
65
+ */
66
+ export declare function stampReleaseVersion(i: {
67
+ cwd: string;
68
+ config: ReleaseVersionConfig;
69
+ label: string | null;
70
+ }): Stamped;
71
+ /**
72
+ * Of `git status --porcelain` lines, the paths (relative to the member)
73
+ * that are a stamped file whose text is exactly the commit's stamped with
74
+ * `label`. A publish takes those as the commit's (#4840); every other
75
+ * change still makes the tree dirty. `top` is the repository root the
76
+ * porcelain paths are relative to.
77
+ */
78
+ export declare function stampedChanges(i: {
79
+ cwd: string;
80
+ top: string;
81
+ commit: string;
82
+ config: ReleaseVersionConfig;
83
+ label: string | null;
84
+ status: string;
85
+ }): Set<string>;
86
+ //# sourceMappingURL=release-version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"release-version.d.ts","sourceRoot":"","sources":["../../src/lifecycle/release-version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;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AAA;CAAE,GAAG,OAAO,CA8BnH;AAUD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,oBAAoB,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAyB/J"}
@@ -0,0 +1,209 @@
1
+ /**
2
+ * The release's label as the package version (#4840).
3
+ *
4
+ * A product released with `chant release cut <label>` used to set its
5
+ * version with a commit first, because the npm target publishes the
6
+ * package directory's `package.json`, the bundle imports the version from
7
+ * it, and `releaseImagePins` refuses a label that is not the version.
8
+ * `release.version` in `chant.config.ts` names the package directories
9
+ * whose `package.json` the release stamps with the label instead, and the
10
+ * lockfile whose entries for them follow:
11
+ *
12
+ * ```ts
13
+ * release: { version: { packages: ["packages/terragucci"] } },
14
+ * ```
15
+ *
16
+ * The cut stamps them after its clean-tree check and before it builds the
17
+ * images and runs the build, and puts the files back when it is done. The
18
+ * publish job runs `chant release stamp <label>` before its build, and
19
+ * `chant release publish` accepts a tree whose only changes are those files
20
+ * as the commit's own stamped with the release's label
21
+ * ({@link stampedChanges}). Only `version` changes: dependency ranges and
22
+ * every other field are left as committed. scripts/release-pack.sh does the
23
+ * same for chant itself, and more (the `@intentius/` ranges, the floors, the
24
+ * packing in dependency layers), so chant's own release keeps it.
25
+ *
26
+ * This module reaches only Node's built-ins and git.
27
+ */
28
+ import { execFileSync } from "node:child_process";
29
+ import { existsSync, readFileSync, realpathSync, writeFileSync } from "node:fs";
30
+ import { isAbsolute, posix, relative, resolve } from "node:path";
31
+ import { NEXT_RELEASE } from "../release-floors.js";
32
+ /** The first chant with `release.version` and `chant release stamp` (#4840). Products feature-detect on it. */
33
+ export const RELEASE_VERSION_FLOOR = NEXT_RELEASE;
34
+ export class ReleaseVersionError extends Error {
35
+ constructor(code, message, fix) {
36
+ super(message);
37
+ this.code = code;
38
+ this.fix = fix;
39
+ this.name = "ReleaseVersionError";
40
+ }
41
+ }
42
+ /** A version npm takes: MAJOR.MINOR.PATCH with an optional prerelease and build. */
43
+ const SEMVER = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/;
44
+ /** Refuse a label `package.json` can't carry as its version. */
45
+ export function checkVersionLabel(label) {
46
+ if (label === null) {
47
+ throw new ReleaseVersionError("release-version-no-label", "release.version stamps the release's label into package.json, and this release has no label", "Cut it with a label: chant release cut <version>.");
48
+ }
49
+ if (!SEMVER.test(label)) {
50
+ throw new ReleaseVersionError("release-version-label-invalid", `release.version stamps the label into package.json, and "${label}" is not a version npm takes`, `Label the release MAJOR.MINOR.PATCH, such as ${SEMVER.test(label.replace(/^v/, "")) ? label.replace(/^v/, "") : "1.4.0"}${/^v\d/.test(label) ? ", with no v" : ""}.`);
51
+ }
52
+ }
53
+ const norm = (p) => posix.normalize(p.split("\\").join("/")).replace(/\/$/, "") || ".";
54
+ const outside = (p) => isAbsolute(p) || norm(p).split("/").includes("..");
55
+ /** Check the declaration's paths: at least one package, every path inside the member. */
56
+ export function checkReleaseVersion(config) {
57
+ if (config.packages.length === 0)
58
+ throw new ReleaseVersionError("release-version-invalid", "release.version.packages names no package directory");
59
+ for (const p of [...config.packages, ...(typeof config.lockfile === "string" ? [config.lockfile] : [])]) {
60
+ if (outside(p))
61
+ throw new ReleaseVersionError("release-version-invalid", `release.version: ${p} is not a path inside the member`);
62
+ }
63
+ }
64
+ /** The lockfile the declaration names, relative to the member, or null. */
65
+ function lockfileOf(cwd, config) {
66
+ if (config.lockfile === false)
67
+ return null;
68
+ if (typeof config.lockfile === "string")
69
+ return norm(config.lockfile);
70
+ return existsSync(resolve(cwd, "package-lock.json")) ? "package-lock.json" : null;
71
+ }
72
+ /** The files the release stamps, relative to the member: each package's `package.json`, then the lockfile. */
73
+ export function releaseVersionFiles(cwd, config) {
74
+ const files = config.packages.map((p) => (norm(p) === "." ? "package.json" : `${norm(p)}/package.json`));
75
+ const lock = lockfileOf(cwd, config);
76
+ return lock ? [...files, lock] : files;
77
+ }
78
+ /** The indent a JSON file was written with, so the stamped file differs from it in the version alone. */
79
+ function indentOf(text) {
80
+ return /^\{\r?\n([ \t]+)"/.exec(text)?.[1] ?? " ";
81
+ }
82
+ function rewrite(text, edit) {
83
+ const doc = JSON.parse(text);
84
+ edit(doc);
85
+ const out = JSON.stringify(doc, null, indentOf(text));
86
+ return text.endsWith("\n") ? `${out}\n` : out;
87
+ }
88
+ /**
89
+ * One file's text stamped with `label`: a `package.json`'s `version`, or a
90
+ * lockfile's entries for `packageDirs` (relative to the lockfile's
91
+ * directory), with the root entry's `version` beside it for `"."`. A
92
+ * lockfile entry that is not there is not added.
93
+ */
94
+ export function stampText(text, label, kind, packageDirs = []) {
95
+ if (kind === "package") {
96
+ return rewrite(text, (doc) => {
97
+ if (typeof doc.version !== "string")
98
+ throw new ReleaseVersionError("release-version-no-package", "package.json has no version to stamp");
99
+ doc.version = label;
100
+ });
101
+ }
102
+ return rewrite(text, (doc) => {
103
+ const packages = (doc.packages ?? {});
104
+ for (const dir of packageDirs) {
105
+ const key = dir === "." ? "" : dir;
106
+ const entry = packages[key];
107
+ if (entry && typeof entry === "object" && typeof entry.version === "string")
108
+ entry.version = label;
109
+ if (key === "" && typeof doc.version === "string")
110
+ doc.version = label;
111
+ }
112
+ });
113
+ }
114
+ /** Each stamped file's text, given its committed text. */
115
+ function stamper(cwd, config, label) {
116
+ const lock = lockfileOf(cwd, config);
117
+ const lockDir = lock ? posix.dirname(lock) : ".";
118
+ const dirs = config.packages.map((p) => norm(posix.relative(lockDir, norm(p))) || ".");
119
+ return (file, text) => (file === lock ? stampText(text, label, "lockfile", dirs) : stampText(text, label, "package"));
120
+ }
121
+ /**
122
+ * Stamp the label into each file {@link releaseVersionFiles} names, and
123
+ * return how to put them back. Refuses a label that is not a version and a
124
+ * package directory with no `package.json`, before anything is written.
125
+ */
126
+ export function stampReleaseVersion(i) {
127
+ checkReleaseVersion(i.config);
128
+ checkVersionLabel(i.label);
129
+ const stamp = stamper(i.cwd, i.config, i.label);
130
+ const files = releaseVersionFiles(i.cwd, i.config);
131
+ const before = new Map();
132
+ for (const f of files) {
133
+ const abs = resolve(i.cwd, f);
134
+ if (!existsSync(abs))
135
+ throw new ReleaseVersionError("release-version-no-package", `release.version names ${f}, which does not exist`, "Name the directory that holds the package.json, as the npm target does.");
136
+ before.set(f, readFileSync(abs, "utf-8"));
137
+ }
138
+ const after = new Map();
139
+ for (const [f, text] of before) {
140
+ try {
141
+ after.set(f, stamp(f, text));
142
+ }
143
+ catch (err) {
144
+ if (err instanceof ReleaseVersionError)
145
+ throw new ReleaseVersionError(err.code, `${f}: ${err.message}`);
146
+ throw new ReleaseVersionError("release-version-invalid", `${f} is not JSON: ${err.message}`);
147
+ }
148
+ }
149
+ for (const [f, text] of after)
150
+ writeFileSync(resolve(i.cwd, f), text);
151
+ let restored = false;
152
+ return {
153
+ files,
154
+ restore() {
155
+ if (restored)
156
+ return;
157
+ restored = true;
158
+ for (const [f, text] of before)
159
+ writeFileSync(resolve(i.cwd, f), text);
160
+ },
161
+ };
162
+ }
163
+ function gitShow(cwd, commit, file) {
164
+ try {
165
+ return execFileSync("git", ["show", `${commit}:./${file}`], { cwd, encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"], maxBuffer: 256 * 1024 * 1024 });
166
+ }
167
+ catch {
168
+ return null;
169
+ }
170
+ }
171
+ /**
172
+ * Of `git status --porcelain` lines, the paths (relative to the member)
173
+ * that are a stamped file whose text is exactly the commit's stamped with
174
+ * `label`. A publish takes those as the commit's (#4840); every other
175
+ * change still makes the tree dirty. `top` is the repository root the
176
+ * porcelain paths are relative to.
177
+ */
178
+ export function stampedChanges(i) {
179
+ const out = new Set();
180
+ if (i.label === null || !SEMVER.test(i.label))
181
+ return out;
182
+ const stamp = stamper(i.cwd, i.config, i.label);
183
+ const files = new Set(releaseVersionFiles(i.cwd, i.config));
184
+ // git prints the top as its real path (macOS's /private/var for /var).
185
+ const cwd = realpathSync(i.cwd);
186
+ const top = realpathSync(i.top);
187
+ for (const line of i.status.split("\n")) {
188
+ // Only a modified tracked file, " M" or "M ", can be a stamp.
189
+ if (!/^(?: M|M |MM) /.test(line))
190
+ continue;
191
+ const path = line.slice(3);
192
+ const rel = relative(cwd, resolve(top, path)).split("\\").join("/");
193
+ if (!files.has(rel))
194
+ continue;
195
+ const committed = gitShow(i.cwd, i.commit, rel);
196
+ if (committed === null)
197
+ continue;
198
+ let expected;
199
+ try {
200
+ expected = stamp(rel, committed);
201
+ }
202
+ catch {
203
+ continue;
204
+ }
205
+ if (readFileSync(resolve(i.cwd, rel), "utf-8") === expected)
206
+ out.add(path);
207
+ }
208
+ return out;
209
+ }
@@ -1,6 +1,23 @@
1
1
  /**
2
2
  * MCP contribution types for lexicon plugins.
3
3
  */
4
+ /**
5
+ * MCP's tool annotations (schema 2025-06-18 on), hints a client reads off
6
+ * `tools/list`. A client that gets none treats a tool as one that may change
7
+ * things and may destroy them.
8
+ */
9
+ export interface ToolAnnotations {
10
+ /** A human-readable title. */
11
+ title?: string;
12
+ /** The tool changes nothing. */
13
+ readOnlyHint?: boolean;
14
+ /** The tool may destroy what it changes, when not read-only. MCP's default is true. */
15
+ destructiveHint?: boolean;
16
+ /** Calling the tool again with the same arguments changes nothing more. */
17
+ idempotentHint?: boolean;
18
+ /** The tool reaches entities outside a closed domain, such as the web. */
19
+ openWorldHint?: boolean;
20
+ }
4
21
  export interface McpToolContribution {
5
22
  name: string;
6
23
  description: string;
@@ -26,6 +43,15 @@ export interface McpToolContribution {
26
43
  * serves it as any other tool. Lexicon tools do not use it.
27
44
  */
28
45
  forgeWrite?: true;
46
+ /**
47
+ * The tool's MCP annotations, listed in `tools/list` (chant#4823). chant
48
+ * sets `readOnlyHint` and `destructiveHint` from the declaration above,
49
+ * over what this says: `readOnly: true` lists `readOnlyHint: true,
50
+ * destructiveHint: false`, and `forgeWrite: true` lists `readOnlyHint:
51
+ * false, destructiveHint: false`. The other hints, and both on a tool that
52
+ * declares neither, are listed as given.
53
+ */
54
+ annotations?: ToolAnnotations;
29
55
  }
30
56
  export interface McpResourceContribution {
31
57
  uri: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/mcp/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ,CAAC;QACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;IACF,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/D;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CAChC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/mcp/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uFAAuF;IACvF,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,2EAA2E;IAC3E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,0EAA0E;IAC1E,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ,CAAC;QACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;IACF,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/D;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CAChC"}
@@ -13,13 +13,22 @@
13
13
  */
14
14
  import { type CiProductNotifyWords, type CiProductWords } from "./ci-product-words.js";
15
15
  import type { NotifyFields, SendNotifyOptions } from "./notify.js";
16
+ /**
17
+ * The first chant whose Slack and Teams messages take a product's words, a
18
+ * drift event's `rerunUrl` and the relay's name (#4818): `notify.message` in
19
+ * the words, `message` in sendNotify's options, and the third argument of
20
+ * `slackMessage` and `teamsMessage`.
21
+ */
22
+ export declare const NOTIFY_MESSAGE_WORDS_FLOOR = "0.124.78";
16
23
  /** The notify slots of `words`, chant's when a caller built words before #4610. */
17
24
  export declare function productNotifyWords(words: CiProductWords): CiProductNotifyWords;
18
25
  /** The event's `source` under `words`: `notify.source`, else the product's name. */
19
26
  export declare function productNotifySource(words: CiProductWords): string;
20
27
  /**
21
- * `options` with the product's header prefix, unless the caller names one.
22
- * chant's own words leave `options` as they are, so chant sends `x-chant`.
28
+ * `options` with the product's header prefix, unless the caller names one,
29
+ * and its message words (`notify.message`, #4818) under the caller's
30
+ * `message`. chant's own words with no message words leave `options` as they
31
+ * are, so chant sends `x-chant`.
23
32
  */
24
33
  export declare function productSendOptions(words: CiProductWords, options?: SendNotifyOptions): SendNotifyOptions;
25
34
  /** What a drift notice concerns. */
@@ -1 +1 @@
1
- {"version":3,"file":"notify-product.d.ts","sourceRoot":"","sources":["../src/notify-product.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAA6B,KAAK,oBAAoB,EAAE,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC/G,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEhE,mFAAmF;AACnF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,GAAG,oBAAoB,CAE9E;AAED,oFAAoF;AACpF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAEjE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,GAAE,iBAAsB,GAAG,iBAAiB,CAG5G;AAED,oCAAoC;AACpC,MAAM,WAAW,gBAAgB;IAC/B,6CAA6C;IAC7C,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,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K,EAAE,gBAAgB,GAAG,YAAY,CAqB9F"}
@@ -12,6 +12,13 @@
12
12
  * ```
13
13
  */
14
14
  import { CHANT_WORDS, isChantWords } from "./ci-product-words.js";
15
+ /**
16
+ * The first chant whose Slack and Teams messages take a product's words, a
17
+ * drift event's `rerunUrl` and the relay's name (#4818): `notify.message` in
18
+ * the words, `message` in sendNotify's options, and the third argument of
19
+ * `slackMessage` and `teamsMessage`.
20
+ */
21
+ export const NOTIFY_MESSAGE_WORDS_FLOOR = "0.124.78";
15
22
  /** The notify slots of `words`, chant's when a caller built words before #4610. */
16
23
  export function productNotifyWords(words) {
17
24
  return words.notify ?? CHANT_WORDS.notify;
@@ -21,13 +28,17 @@ export function productNotifySource(words) {
21
28
  return productNotifyWords(words).source;
22
29
  }
23
30
  /**
24
- * `options` with the product's header prefix, unless the caller names one.
25
- * chant's own words leave `options` as they are, so chant sends `x-chant`.
31
+ * `options` with the product's header prefix, unless the caller names one,
32
+ * and its message words (`notify.message`, #4818) under the caller's
33
+ * `message`. chant's own words with no message words leave `options` as they
34
+ * are, so chant sends `x-chant`.
26
35
  */
27
36
  export function productSendOptions(words, options = {}) {
37
+ const own = productNotifyWords(words);
38
+ const out = own.message ? { ...options, message: { ...own.message, ...options.message } } : options;
28
39
  if (options.prefix !== undefined || isChantWords(words))
29
- return options;
30
- return { ...options, prefix: productNotifyWords(words).headers };
40
+ return out;
41
+ return { ...out, prefix: own.headers };
31
42
  }
32
43
  /**
33
44
  * A `drift` event under `words`: `2 stacks drifted: shop-dev, shop-prod` for
@@ -1 +1 @@
1
- {"version":3,"file":"notify-relay.d.ts","sourceRoot":"","sources":["../src/notify-relay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAGH,OAAO,EAAsC,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,K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GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAAC;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAK5J;;;;GAIG;AACH,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,YAAY,EACjB,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,SAAS,EACf,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,UAAU,CAAC;IAAC,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAO,GAC9E,OAAO,CAAC,aAAa,CAAC,CAwCxB;AAqBD,wGAAwG;AACxG,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,SAAS,EACf,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,UAAU,CAAC;IAAC,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAAO,GAC9F,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,CAAC,CA4BtE"}
@@ -44,7 +44,6 @@
44
44
  import { createHmac, timingSafeEqual } from "node:crypto";
45
45
  import { createServer } from "node:http";
46
46
  import { readRelayToken, RELAY_APPROVE_ACTION, RELAY_DECLINE_ACTION } from "./notify.js";
47
- import { NEXT_RELEASE } from "./release-floors.js";
48
47
  /**
49
48
  * The first chant whose relay answers a gate's decision point and whose
50
49
  * `sendNotify` hands a product's own render the signed buttons
@@ -60,7 +59,7 @@ export const NOTIFY_RELAY_POINTS_FLOOR = "0.124.72";
60
59
  * (#4759). A product whose relay container ran its own entrypoint for these
61
60
  * feature-detects on it.
62
61
  */
63
- export const NOTIFY_RELAY_CLONE_FLOOR = NEXT_RELEASE;
62
+ export const NOTIFY_RELAY_CLONE_FLOOR = "0.124.77";
64
63
  /** The relay's settings, by environment variable. */
65
64
  export const RELAY_ENV = {
66
65
  /** The key the notify buttons are signed with: the variable `notify.relay` names on the sending side. */
package/dist/notify.d.ts CHANGED
@@ -106,6 +106,8 @@ export interface NotifyEvent {
106
106
  run?: NotifyRun;
107
107
  /** A report page for the run. */
108
108
  reportUrl?: string;
109
+ /** On `drift` (#4818): the page where a person runs the check again, which the chat messages open from a button. */
110
+ rerunUrl?: string;
109
111
  /** The product's own record of the outcome, carried whole for programs that know it. */
110
112
  detail?: Record<string, unknown>;
111
113
  }
@@ -167,6 +169,34 @@ export declare function makeNotifyEvent(fields: NotifyFields, options?: {
167
169
  }): NotifyEvent;
168
170
  /** The first line of every chat message: `<source>: <summary>`, or what happened to what when there is no summary. */
169
171
  export declare function notifyHeadline(e: NotifyEvent): string;
172
+ /**
173
+ * A product's words in the Slack and Teams messages (#4818). Each slot left
174
+ * out keeps chant's, so a message given none is as before.
175
+ */
176
+ export interface NotifyMessageWords {
177
+ /** The targets' label. Default `Targets`. */
178
+ targets?: string;
179
+ /** The targets' value when the event names none. Default: no line. */
180
+ noTargets?: string;
181
+ /** The reason's label. Default `Reason`. */
182
+ reason?: string;
183
+ /** What a person does after the review: `run it again`. */
184
+ again?: string;
185
+ /** The label of a Teams fact giving the wave's number. Default: no fact. */
186
+ wave?: string;
187
+ /** `false` leaves the report link out of the Teams card. */
188
+ teamsReport?: boolean;
189
+ /** The re-run button: its label (`Run again`), and the Slack action id (`chant-rerun`) and block id (none). */
190
+ rerun?: {
191
+ label?: string;
192
+ action?: string;
193
+ block?: string;
194
+ };
195
+ }
196
+ /** The words, and the relay's name: a Teams outgoing webhook reads only a message that mentions it, so with the name the card says the whole reply (#4818). */
197
+ export interface NotifyMessageOptions extends NotifyMessageWords {
198
+ relayName?: string;
199
+ }
170
200
  /** The Slack buttons' action ids, which `chant notify relay` reads. */
171
201
  export declare const RELAY_APPROVE_ACTION = "chant-approve";
172
202
  export declare const RELAY_DECLINE_ACTION = "chant-decline";
@@ -200,8 +230,8 @@ export declare const DEFAULT_RELAY_MAX_AGE_SECONDS: number;
200
230
  export interface RelayButtons {
201
231
  token: string;
202
232
  }
203
- /** A Slack incoming webhook's body: one mrkdwn text, with the approve command as code and the links as links. With `relay`, Approve and Decline buttons (#4611). */
204
- export declare function slackMessage(e: NotifyEvent, relay?: RelayButtons): {
233
+ /** A Slack incoming webhook's body: one mrkdwn text, with the approve command as code and the links as links. With `relay`, Approve and Decline buttons (#4611); with `rerunUrl`, a button that opens it (#4818). */
234
+ export declare function slackMessage(e: NotifyEvent, relay?: RelayButtons, w?: NotifyMessageOptions): {
205
235
  text: string;
206
236
  blocks?: unknown[];
207
237
  };
@@ -213,8 +243,8 @@ export declare function slackMessage(e: NotifyEvent, relay?: RelayButtons): {
213
243
  export declare function slackRelayActions(relay: RelayButtons): Record<string, unknown>;
214
244
  /** The Teams reply that approves through the relay's outgoing webhook (#4611): `approve <token>`, after a mention of the relay. */
215
245
  export declare function teamsRelayReply(relay: RelayButtons, action?: "approve" | "decline"): string;
216
- /** A Teams incoming webhook's body (a Workflows webhook): one Adaptive Card, with buttons that open the review page and the run. With `relay`, the reply that approves through the relay (#4611). */
217
- export declare function teamsMessage(e: NotifyEvent, relay?: RelayButtons): Record<string, unknown>;
246
+ /** A Teams incoming webhook's body (a Workflows webhook): one Adaptive Card, with buttons that open the review page, the re-run page (#4818) and the run. With `relay`, the reply that approves through the relay (#4611), in full when `w.relayName` names it. */
247
+ export declare function teamsMessage(e: NotifyEvent, relay?: RelayButtons, w?: NotifyMessageOptions): Record<string, unknown>;
218
248
  /** Where events go. Each value is the NAME of an environment variable; the configuration never holds a URL or a key. */
219
249
  export interface NotifyConfig {
220
250
  /** The variable holding the generic webhook's URL. */
@@ -285,6 +315,8 @@ export interface SendNotifyOptions {
285
315
  slack?: (e: NotifyEvent, relay?: RelayButtons) => unknown;
286
316
  teams?: (e: NotifyEvent, relay?: RelayButtons) => unknown;
287
317
  };
318
+ /** The product's words and the relay's name for chant's own Slack and Teams bodies (#4818). */
319
+ message?: NotifyMessageOptions;
288
320
  /** Seconds since the epoch, for the signature's timestamp. Default: the clock. */
289
321
  now?: number;
290
322
  }
@@ -1 +1 @@
1
- {"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["../src/notify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAKH,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACnI,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/F,+EAA+E;AAC/E,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,+BAA+B;AAC/B,eAAO,MAAM,gBAAgB,oEAAoE,CAAC;AAElG;;;;GAIG;AACH,eAAO,MAAM,aAAa,YAAI,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,sBAAsB,EAAE,UAAU,CAAU,CAAC;AACxJ,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,iFAAiF;AACjF,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACxC,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,M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