@intentius/chant 0.124.61 → 0.124.63

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 (234) hide show
  1. package/dist/cli/handlers/approve.d.ts +18 -0
  2. package/dist/cli/handlers/approve.d.ts.map +1 -1
  3. package/dist/cli/handlers/approve.js +142 -16
  4. package/dist/cli/handlers/plan.d.ts +10 -0
  5. package/dist/cli/handlers/plan.d.ts.map +1 -0
  6. package/dist/cli/handlers/plan.js +71 -0
  7. package/dist/cli/handlers/release.d.ts +6 -4
  8. package/dist/cli/handlers/release.d.ts.map +1 -1
  9. package/dist/cli/handlers/release.js +13 -7
  10. package/dist/cli/main.d.ts.map +1 -1
  11. package/dist/cli/main.js +34 -5
  12. package/dist/cli/mcp/workspace-tools.d.ts.map +1 -1
  13. package/dist/cli/mcp/workspace-tools.js +2 -1
  14. package/dist/cli/parse-args.d.ts.map +1 -1
  15. package/dist/cli/parse-args.js +31 -0
  16. package/dist/cli/registry.d.ts +13 -1
  17. package/dist/cli/registry.d.ts.map +1 -1
  18. package/dist/config.d.ts +32 -0
  19. package/dist/config.d.ts.map +1 -1
  20. package/dist/gate-decision.d.ts +1 -1
  21. package/dist/gate-decision.d.ts.map +1 -1
  22. package/dist/gate-decision.js +4 -2
  23. package/dist/gate-statement.schema.json +44 -0
  24. package/dist/lifecycle/__fixtures__/publish-fakes.d.ts +20 -0
  25. package/dist/lifecycle/__fixtures__/publish-fakes.d.ts.map +1 -1
  26. package/dist/lifecycle/__fixtures__/publish-fakes.js +119 -3
  27. package/dist/lifecycle/gate-ledger.d.ts +17 -3
  28. package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
  29. package/dist/lifecycle/gate-seal.d.ts +39 -3
  30. package/dist/lifecycle/gate-seal.d.ts.map +1 -1
  31. package/dist/lifecycle/gate-seal.js +50 -10
  32. package/dist/lifecycle/gate-statement.d.ts +70 -0
  33. package/dist/lifecycle/gate-statement.d.ts.map +1 -0
  34. package/dist/lifecycle/gate-statement.js +74 -0
  35. package/dist/lifecycle/gate-webauthn.d.ts +79 -0
  36. package/dist/lifecycle/gate-webauthn.d.ts.map +1 -0
  37. package/dist/lifecycle/gate-webauthn.js +105 -0
  38. package/dist/lifecycle/git.d.ts +1 -1
  39. package/dist/lifecycle/git.d.ts.map +1 -1
  40. package/dist/lifecycle/git.js +24 -19
  41. package/dist/lifecycle/ledger-remote.d.ts +37 -0
  42. package/dist/lifecycle/ledger-remote.d.ts.map +1 -0
  43. package/dist/lifecycle/ledger-remote.js +42 -0
  44. package/dist/lifecycle/plan-stale.d.ts +76 -0
  45. package/dist/lifecycle/plan-stale.d.ts.map +1 -0
  46. package/dist/lifecycle/plan-stale.js +121 -0
  47. package/dist/lifecycle/publish-credentials.d.ts +1 -1
  48. package/dist/lifecycle/publish-credentials.d.ts.map +1 -1
  49. package/dist/lifecycle/publish-credentials.js +2 -0
  50. package/dist/lifecycle/publish-declaration.d.ts +87 -0
  51. package/dist/lifecycle/publish-declaration.d.ts.map +1 -1
  52. package/dist/lifecycle/publish-declaration.js +87 -1
  53. package/dist/lifecycle/publish-forge.d.ts +5 -1
  54. package/dist/lifecycle/publish-forge.d.ts.map +1 -1
  55. package/dist/lifecycle/publish-forge.js +14 -4
  56. package/dist/lifecycle/publish-github.d.ts +69 -0
  57. package/dist/lifecycle/publish-github.d.ts.map +1 -0
  58. package/dist/lifecycle/publish-github.js +153 -0
  59. package/dist/lifecycle/publish-homebrew.d.ts +66 -0
  60. package/dist/lifecycle/publish-homebrew.d.ts.map +1 -0
  61. package/dist/lifecycle/publish-homebrew.js +173 -0
  62. package/dist/lifecycle/publish-marketplace.d.ts +51 -0
  63. package/dist/lifecycle/publish-marketplace.d.ts.map +1 -0
  64. package/dist/lifecycle/publish-marketplace.js +254 -0
  65. package/dist/lifecycle/publish-targets.d.ts +6 -0
  66. package/dist/lifecycle/publish-targets.d.ts.map +1 -1
  67. package/dist/lifecycle/publish-targets.js +15 -0
  68. package/dist/lifecycle/publish-tauri.d.ts +61 -0
  69. package/dist/lifecycle/publish-tauri.d.ts.map +1 -0
  70. package/dist/lifecycle/publish-tauri.js +182 -0
  71. package/dist/lifecycle/release-publish.d.ts +5 -2
  72. package/dist/lifecycle/release-publish.d.ts.map +1 -1
  73. package/dist/lifecycle/snapshot-store.d.ts.map +1 -1
  74. package/dist/lifecycle/snapshot-store.js +17 -9
  75. package/dist/lifecycle/test-passkey.d.ts +25 -0
  76. package/dist/lifecycle/test-passkey.d.ts.map +1 -0
  77. package/dist/lifecycle/test-passkey.js +39 -0
  78. package/dist/notify.d.ts +23 -3
  79. package/dist/notify.d.ts.map +1 -1
  80. package/dist/notify.js +8 -2
  81. package/dist/notify.schema.json +12 -3
  82. package/dist/op/activities/activity-contracts.d.ts +4 -4
  83. package/dist/pr-forge.d.ts +20 -0
  84. package/dist/pr-forge.d.ts.map +1 -1
  85. package/dist/pr-forge.js +61 -2
  86. package/dist/release-floors.d.ts +1 -1
  87. package/dist/release-floors.js +1 -1
  88. package/dist/wave-runtime.mjs +331 -330
  89. package/dist/workspace/ci-builds.d.ts +21 -0
  90. package/dist/workspace/ci-builds.d.ts.map +1 -1
  91. package/dist/workspace/ci-builds.js +14 -0
  92. package/dist/workspace/ci-green-workflow.d.ts +2 -0
  93. package/dist/workspace/ci-green-workflow.d.ts.map +1 -1
  94. package/dist/workspace/ci-green-workflow.js +9 -0
  95. package/dist/workspace/ci-green.d.ts +45 -2
  96. package/dist/workspace/ci-green.d.ts.map +1 -1
  97. package/dist/workspace/ci-green.js +127 -9
  98. package/dist/workspace/ci-quarantine-report.d.ts +80 -0
  99. package/dist/workspace/ci-quarantine-report.d.ts.map +1 -0
  100. package/dist/workspace/ci-quarantine-report.js +205 -0
  101. package/dist/workspace/ci-quarantine.d.ts +73 -0
  102. package/dist/workspace/ci-quarantine.d.ts.map +1 -0
  103. package/dist/workspace/ci-quarantine.js +171 -0
  104. package/dist/workspace/ci-serve.d.ts.map +1 -1
  105. package/dist/workspace/ci-serve.js +7 -4
  106. package/dist/workspace/class-data.d.ts +3 -1
  107. package/dist/workspace/class-data.d.ts.map +1 -1
  108. package/dist/workspace/class-data.js +4 -1
  109. package/dist/workspace/declaration.d.ts +45 -2
  110. package/dist/workspace/declaration.d.ts.map +1 -1
  111. package/dist/workspace/declaration.js +45 -2
  112. package/dist/workspace/declaration.schema.json +51 -3
  113. package/dist/workspace/forge-work.d.ts +76 -0
  114. package/dist/workspace/forge-work.d.ts.map +1 -0
  115. package/dist/workspace/forge-work.js +160 -0
  116. package/dist/workspace/identity-gate-rule.d.ts +3 -2
  117. package/dist/workspace/identity-gate-rule.d.ts.map +1 -1
  118. package/dist/workspace/identity-gate-rule.js +5 -7
  119. package/dist/workspace/identity.d.ts +3 -2
  120. package/dist/workspace/identity.d.ts.map +1 -1
  121. package/dist/workspace/identity.js +6 -3
  122. package/dist/workspace/intent-cli.d.ts +3 -2
  123. package/dist/workspace/intent-cli.d.ts.map +1 -1
  124. package/dist/workspace/intent-cli.js +26 -5
  125. package/dist/workspace/intent-record.d.ts +3 -0
  126. package/dist/workspace/intent-record.d.ts.map +1 -1
  127. package/dist/workspace/intent-record.schema.json +32 -0
  128. package/dist/workspace/intent.d.ts +9 -0
  129. package/dist/workspace/intent.d.ts.map +1 -1
  130. package/dist/workspace/intent.js +3 -0
  131. package/dist/workspace/intent.schema.json +32 -0
  132. package/dist/workspace/kind-readers.d.ts.map +1 -1
  133. package/dist/workspace/kind-readers.js +2 -1
  134. package/dist/workspace/kinds.d.ts +6 -1
  135. package/dist/workspace/kinds.d.ts.map +1 -1
  136. package/dist/workspace/kinds.js +8 -3
  137. package/dist/workspace/plan-stale.schema.json +286 -0
  138. package/dist/workspace/release-candidates.d.ts +33 -6
  139. package/dist/workspace/release-candidates.d.ts.map +1 -1
  140. package/dist/workspace/release-candidates.js +49 -20
  141. package/dist/workspace/release-candidates.schema.json +48 -2
  142. package/dist/workspace/trust/policy.d.ts +10 -0
  143. package/dist/workspace/trust/policy.d.ts.map +1 -1
  144. package/dist/workspace/trust/policy.js +19 -1
  145. package/dist/workspace/trust/run-commits.d.ts.map +1 -1
  146. package/dist/workspace/trust/run-commits.js +2 -1
  147. package/dist/workspace/trust/seal.d.ts.map +1 -1
  148. package/dist/workspace/trust/seal.js +34 -3
  149. package/dist/workspace/trust/trust-files.d.ts.map +1 -1
  150. package/dist/workspace/trust/trust-files.js +6 -1
  151. package/package.json +2 -1
  152. package/src/cli/handlers/approve-external-signature.test.ts +226 -0
  153. package/src/cli/handlers/approve.ts +174 -16
  154. package/src/cli/handlers/plan.ts +74 -0
  155. package/src/cli/handlers/release.ts +12 -7
  156. package/src/cli/main.ts +34 -5
  157. package/src/cli/mcp/workspace-tools.ts +2 -1
  158. package/src/cli/parse-args.ts +24 -0
  159. package/src/cli/registry.ts +13 -1
  160. package/src/gate-decision-bundle.test.ts +4 -2
  161. package/src/gate-decision.ts +11 -2
  162. package/src/gate-statement.schema.json +44 -0
  163. package/src/lifecycle/__fixtures__/publish-fakes.ts +125 -5
  164. package/src/lifecycle/gate-ledger.ts +17 -3
  165. package/src/lifecycle/gate-seal.ts +62 -9
  166. package/src/lifecycle/gate-statement.ts +107 -0
  167. package/src/lifecycle/gate-webauthn.test.ts +77 -0
  168. package/src/lifecycle/gate-webauthn.ts +133 -0
  169. package/src/lifecycle/git.ts +23 -19
  170. package/src/lifecycle/ledger-remote.test.ts +183 -0
  171. package/src/lifecycle/ledger-remote.ts +46 -0
  172. package/src/lifecycle/plan-stale.test.ts +150 -0
  173. package/src/lifecycle/plan-stale.ts +173 -0
  174. package/src/lifecycle/publish-credentials.ts +2 -0
  175. package/src/lifecycle/publish-declaration.ts +93 -1
  176. package/src/lifecycle/publish-forge.ts +15 -4
  177. package/src/lifecycle/publish-github.ts +174 -0
  178. package/src/lifecycle/publish-homebrew.test.ts +179 -0
  179. package/src/lifecycle/publish-homebrew.ts +187 -0
  180. package/src/lifecycle/publish-marketplace.test.ts +254 -0
  181. package/src/lifecycle/publish-marketplace.ts +259 -0
  182. package/src/lifecycle/publish-target-context.test.ts +2 -2
  183. package/src/lifecycle/publish-targets.test.ts +23 -0
  184. package/src/lifecycle/publish-targets.ts +15 -0
  185. package/src/lifecycle/publish-tauri.test.ts +163 -0
  186. package/src/lifecycle/publish-tauri.ts +199 -0
  187. package/src/lifecycle/release-publish.ts +5 -3
  188. package/src/lifecycle/snapshot-store.ts +16 -9
  189. package/src/lifecycle/test-passkey.ts +55 -0
  190. package/src/notify-bundle.test.ts +3 -1
  191. package/src/notify.schema.json +12 -3
  192. package/src/notify.ts +20 -3
  193. package/src/override-gate-bundle.test.ts +2 -0
  194. package/src/pr-forge-bundle.test.ts +2 -2
  195. package/src/pr-forge.test.ts +38 -0
  196. package/src/pr-forge.ts +68 -5
  197. package/src/release-floors.ts +1 -1
  198. package/src/stage-hooks-bundle.test.ts +2 -0
  199. package/src/wave-runtime-bundle.test.ts +3 -2
  200. package/src/workspace/ci-builds.ts +27 -0
  201. package/src/workspace/ci-green-stale.test.ts +193 -0
  202. package/src/workspace/ci-green-workflow.test.ts +9 -0
  203. package/src/workspace/ci-green-workflow.ts +9 -0
  204. package/src/workspace/ci-green.ts +141 -10
  205. package/src/workspace/ci-quarantine-report.test.ts +146 -0
  206. package/src/workspace/ci-quarantine-report.ts +235 -0
  207. package/src/workspace/ci-quarantine.test.ts +161 -0
  208. package/src/workspace/ci-quarantine.ts +189 -0
  209. package/src/workspace/ci-serve.ts +7 -4
  210. package/src/workspace/class-data.ts +5 -1
  211. package/src/workspace/declaration.schema.json +51 -3
  212. package/src/workspace/declaration.test.ts +1 -0
  213. package/src/workspace/declaration.ts +88 -5
  214. package/src/workspace/forge-work.test.ts +143 -0
  215. package/src/workspace/forge-work.ts +195 -0
  216. package/src/workspace/identity-gate-rule.ts +6 -8
  217. package/src/workspace/identity.ts +6 -3
  218. package/src/workspace/intent-cli.ts +24 -5
  219. package/src/workspace/intent-record.schema.json +32 -0
  220. package/src/workspace/intent-record.ts +3 -0
  221. package/src/workspace/intent.schema.json +32 -0
  222. package/src/workspace/intent.ts +10 -0
  223. package/src/workspace/kind-readers.ts +2 -1
  224. package/src/workspace/kinds.test.ts +13 -0
  225. package/src/workspace/kinds.ts +12 -3
  226. package/src/workspace/plan-stale.schema.json +286 -0
  227. package/src/workspace/release-candidates.schema.json +48 -2
  228. package/src/workspace/release-candidates.test.ts +77 -4
  229. package/src/workspace/release-candidates.ts +62 -20
  230. package/src/workspace/trust/policy.ts +24 -1
  231. package/src/workspace/trust/run-commits.ts +2 -1
  232. package/src/workspace/trust/seal.ts +35 -3
  233. package/src/workspace/trust/trust-files.test.ts +5 -0
  234. package/src/workspace/trust/trust-files.ts +15 -1
@@ -2,6 +2,7 @@ import type { GateResolutionRecord, PendingGateRecord } from "../../lifecycle/ga
2
2
  import { type GateOrigin } from "../../lifecycle/gate-origin.js";
3
3
  import { type GatePolicyEvaluator, type ResolvedGateApproval } from "../../op/gate-approval.js";
4
4
  import { type GateQuorumJudge } from "../../op/gate-quorum.js";
5
+ import { type GateStatement } from "../../lifecycle/gate-statement.js";
5
6
  import type { CommandContext } from "../registry.js";
6
7
  export declare function runApprove(ctx: CommandContext): Promise<number>;
7
8
  /** What a caller supplies alongside the op and gate names. */
@@ -61,6 +62,15 @@ export interface GateApprovalOptions {
61
62
  * the declaration's `identity.gates` names counts only sealed approvals.
62
63
  */
63
64
  sign?: string | true;
65
+ /**
66
+ * `--signature <file>` (#4646): a signature made outside chant over the
67
+ * approval's statement (`--statement`), an armored ssh signature or a
68
+ * WebAuthn assertion in JSON; `-` reads it from stdin. Checked against the
69
+ * keys and passkeys listed at base for the approver, and kept as the seal.
70
+ */
71
+ signature?: string;
72
+ /** `--at <timestamp>` (#4646): the statement's time, which `--statement` fixes and `--signature` records. */
73
+ at?: string;
64
74
  /** Where the workspace and the key file are looked up from. Defaults to the process's directory. */
65
75
  cwd?: string;
66
76
  /** Replaces the lexicon evaluator a gate policy is loaded from. For tests. */
@@ -89,6 +99,14 @@ export type GateApprovalOutcome = {
89
99
  * approval mean "the next run" instead of "this plan".
90
100
  */
91
101
  export declare function recordGateApproval(opName: string, gate: string, opts: GateApprovalOptions): Promise<GateApprovalOutcome>;
102
+ /**
103
+ * The statement an approval of this gate would sign (#4646), for a signature
104
+ * made outside chant: what `chant approve <op> <gate> --statement` prints.
105
+ * It runs every check {@link recordGateApproval} runs before signing, with
106
+ * the same options, and writes nothing. Null when a check refuses, which it
107
+ * prints.
108
+ */
109
+ export declare function gateApprovalStatement(opName: string, gate: string, opts: GateApprovalOptions): Promise<GateStatement | null>;
92
110
  /**
93
111
  * What a just-recorded approval did to a gate with an `approval` block
94
112
  * (#2508): the policy's decision and whether it binds, then the quorum count
@@ -1 +1 @@
1
- {"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/approve.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,OAAO,EACuE,KAAK,UAAU,EAC5F,MAAM,6BAA6B,CAAC;AAOrC,OAAO,EAEuC,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAChG,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAiE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAO3H,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAkDlD,wBAAsB,UAAU,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkIrE;AAED,8DAA8D;AAC9D,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wEAAwE;IACxE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oGAAoG;IACpG,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,SAAS,CAAC,EAAE,mBAAmB,CAAC;CACjC;AAED,MAAM,MAAM,mBAAmB,GAC3B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,oBAAoB,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAC3D;IAAE,EAAE,EAAE,KAAK,CAAA;CAAE,CAAC;AA0ClB;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,mBAAmB,CAAC,CA8Y9B;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,oBAAoB,EAC9B,MAAM,EAAE,oBAAoB,EAC5B,KAAK,EAAE,oBAAoB,EAAE,EAC7B,QAAQ,EAAE,iBAAiB,GAAG,SAAS,EACvC,OAAO,GAAE,SAAS,iBAAiB,EAA+B,EAClE,KAAK,GAAE,eAAgC,GACtC,MAAM,EAAE,CAuCV"}
1
+ {"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/approve.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,OAAO,EACuE,KAAK,UAAU,EAC5F,MAAM,6BAA6B,CAAC;AAOrC,OAAO,EAEuC,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAChG,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAiE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAO3H,OAAO,EAAwC,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAM1G,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAkDlD,wBAAsB,UAAU,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiKrE;AAED,8DAA8D;AAC9D,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wEAAwE;IACxE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6GAA6G;IAC7G,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,oGAAoG;IACpG,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,SAAS,CAAC,EAAE,mBAAmB,CAAC;CACjC;AAED,MAAM,MAAM,mBAAmB,GAC3B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,oBAAoB,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAC3D;IAAE,EAAE,EAAE,KAAK,CAAA;CAAE,CAAC;AA0ClB;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,mBAAmB,CAAC,CAG9B;AAED;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAGlI;AAifD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,oBAAoB,EAC9B,MAAM,EAAE,oBAAoB,EAC5B,KAAK,EAAE,oBAAoB,EAAE,EAC7B,QAAQ,EAAE,iBAAiB,GAAG,SAAS,EACvC,OAAO,GAAE,SAAS,iBAAiB,EAA+B,EAClE,KAAK,GAAE,eAAgC,GACtC,MAAM,EAAE,CAuCV"}
@@ -17,6 +17,10 @@ import { PR_GATE_OP } from "../../pr-loop.js";
17
17
  import { pushLifecycleReport, requireLifecycleLedger } from "../../lifecycle/git.js";
18
18
  import { LIFECYCLE_LOCAL_NOTE, isLifecycleLocalNote } from "../../lifecycle/local-note.js";
19
19
  import { ledgerRecordingOff, NO_RECORD_ENV } from "../../lifecycle/no-record.js";
20
+ import { checkGateSignature, gateSealPayload, gateSealVersion, WEBAUTHN_SEAL_KIND } from "../../lifecycle/gate-seal.js";
21
+ import { gateStatement, readExternalSignature } from "../../lifecycle/gate-statement.js";
22
+ import { readFileSync } from "node:fs";
23
+ import { resolve as resolvePath } from "node:path";
20
24
  import { formatError, formatWarning, formatSuccess, formatInfo } from "../format.js";
21
25
  // ── chant approve <op> <gate> ───────────────────────────────────────────────
22
26
  /**
@@ -137,12 +141,39 @@ export async function runApprove(ctx) {
137
141
  // has applied since #2126 (`../handlers/run.ts`'s `runOpApprove`). Reading
138
142
  // only `--actor` here meant every README that teaches `--approver you`
139
143
  // recorded the shell user instead (#2192).
144
+ // #4646: the statement for a signature made elsewhere, on stdout, with nothing recorded.
145
+ if (ctx.args.statement) {
146
+ if (ctx.args.sign !== undefined || ctx.args.signature !== undefined) {
147
+ console.error(formatError({ message: "--statement prints what to sign and records nothing, so it takes neither --sign nor --signature" }));
148
+ return 1;
149
+ }
150
+ const shared = {
151
+ actor: ctx.args.approver ?? ctx.args.actor,
152
+ ...(ctx.args.plan !== undefined ? { plan: ctx.args.plan } : {}),
153
+ ...(ctx.args.env !== undefined ? { environment: ctx.args.env } : {}),
154
+ ...(ctx.args.relayedBy !== undefined ? { relayedBy: ctx.args.relayedBy } : {}),
155
+ ...(ctx.args.at !== undefined ? { at: ctx.args.at } : {}),
156
+ allowSameOrigin: ctx.args.allowSameOrigin,
157
+ };
158
+ const statement = await gateApprovalStatement(opName, gate, shared);
159
+ if (!statement)
160
+ return 1;
161
+ console.log(JSON.stringify(statement, null, 2));
162
+ console.error(formatInfo(`Have ${statement.resolvedBy} sign these bytes (an ssh key in the ${statement.namespace} namespace, or a passkey with challenge ${statement.challenge}), ` +
163
+ `then record it: chant approve ${opName} ${gate} --actor ${statement.resolvedBy}` +
164
+ (statement.relayedBy !== null ? ` --relayed-by ${statement.relayedBy}` : "") +
165
+ (statement.planDigest !== null ? ` --plan ${statement.planDigest}` : "") +
166
+ (statement.environment !== null ? ` --env ${statement.environment}` : "") +
167
+ ` --at ${statement.timestamp} --signature <file>`));
168
+ return 0;
169
+ }
140
170
  // #4575: a person at a terminal sees the plan and types the target's name
141
171
  // first, and the approval binds the digest they were shown. --yes, --json,
142
172
  // CI and no terminal record as before.
143
173
  let plan = ctx.args.plan;
144
174
  const confirm = await import("./approve-confirm.js");
145
- if (await confirm.interactiveApproval(ctx.args)) {
175
+ // #4646: an approval signed elsewhere was confirmed where it was signed.
176
+ if (ctx.args.signature === undefined && (await confirm.interactiveApproval(ctx.args))) {
146
177
  const answered = await confirm.confirmApproval(opName, gate, {
147
178
  ...(plan !== undefined ? { plan } : {}),
148
179
  ...(ctx.args.env !== undefined ? { environment: ctx.args.env } : {}),
@@ -162,6 +193,8 @@ export async function runApprove(ctx) {
162
193
  ...(ctx.args.roles ? { roles: ctx.args.roles } : {}),
163
194
  ...(ctx.args.agent ? { agent: true } : {}),
164
195
  ...(ctx.args.sign !== undefined ? { sign: ctx.args.sign } : {}),
196
+ ...(ctx.args.signature !== undefined ? { signature: ctx.args.signature } : {}),
197
+ ...(ctx.args.at !== undefined ? { at: ctx.args.at } : {}),
165
198
  ...(ctx.args.relayedBy !== undefined ? { relayedBy: ctx.args.relayedBy } : {}),
166
199
  });
167
200
  if (!outcome.ok)
@@ -240,8 +273,23 @@ async function refuseRevokedRelease(opName, gate, releaseDigest, cwd) {
240
273
  * approval mean "the next run" instead of "this plan".
241
274
  */
242
275
  export async function recordGateApproval(opName, gate, opts) {
276
+ const r = await approveGate(opName, gate, opts, false);
277
+ return "statement" in r ? { ok: false } : r;
278
+ }
279
+ /**
280
+ * The statement an approval of this gate would sign (#4646), for a signature
281
+ * made outside chant: what `chant approve <op> <gate> --statement` prints.
282
+ * It runs every check {@link recordGateApproval} runs before signing, with
283
+ * the same options, and writes nothing. Null when a check refuses, which it
284
+ * prints.
285
+ */
286
+ export async function gateApprovalStatement(opName, gate, opts) {
287
+ const r = await approveGate(opName, gate, opts, true);
288
+ return "statement" in r ? r.statement : null;
289
+ }
290
+ async function approveGate(opName, gate, opts, statementOnly) {
243
291
  // #3955: with recording off the approval would be dropped with the process.
244
- if (ledgerRecordingOff()) {
292
+ if (!statementOnly && ledgerRecordingOff()) {
245
293
  console.error(formatError({
246
294
  message: `Cannot record the approval of "${gate}": ${NO_RECORD_ENV} is set, so nothing is written to chant/lifecycle`,
247
295
  hint: `Unset ${NO_RECORD_ENV} to approve the gate.`,
@@ -446,33 +494,71 @@ export async function recordGateApproval(opName, gate, opts) {
446
494
  }));
447
495
  return { ok: false };
448
496
  }
497
+ // #4646: --statement prints the bytes a signature made elsewhere signs, at
498
+ // a time it fixes; --signature records that signature with the same time.
499
+ const refuse = (message, hint) => {
500
+ console.error(formatError({ message: `Gate "${gate}" on "${opName}" was not approved: ${message}`, ...(hint ? { hint } : {}) }));
501
+ return { ok: false };
502
+ };
503
+ if (opts.signature !== undefined && opts.sign !== undefined) {
504
+ return refuse("--sign signs here and --signature brings a signature made elsewhere; pass one of them");
505
+ }
506
+ if (opts.at !== undefined && !statementOnly && opts.signature === undefined) {
507
+ return refuse("--at sets the time of a statement signed elsewhere, so it goes with --statement or --signature");
508
+ }
509
+ if (opts.signature !== undefined && opts.at === undefined) {
510
+ return refuse("--signature needs --at <timestamp>, the statement's time, since the signature covers it", `Pass the timestamp \`chant approve ${opName} ${gate} --statement\` printed.`);
511
+ }
512
+ let timestamp = new Date().toISOString();
513
+ if (opts.at !== undefined) {
514
+ const at = Date.parse(opts.at);
515
+ if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(opts.at) || Number.isNaN(at) || new Date(at).toISOString() !== opts.at) {
516
+ return refuse(`--at takes a UTC time as chant writes one, such as ${timestamp}, not ${JSON.stringify(opts.at)}`);
517
+ }
518
+ if (at > Date.now() + AT_SKEW_MS)
519
+ return refuse(`--at ${opts.at} is in the future`);
520
+ if (standing && opts.at < standing.timestamp) {
521
+ return refuse(`--at ${opts.at} is before the pending fact it answers (${standing.timestamp}), and a run counts only approvals newer than that`, `Take a fresh statement: chant approve ${opName} ${gate} --statement.`);
522
+ }
523
+ timestamp = opts.at;
524
+ }
525
+ const sealed = {
526
+ op: opName,
527
+ gate,
528
+ ...(environment !== undefined ? { environment } : {}),
529
+ ...(planDigest !== undefined ? { planDigest } : {}),
530
+ resolvedBy,
531
+ ...(relayedBy ? { relayedBy } : {}),
532
+ timestamp,
533
+ ...(checkpointDigest !== undefined ? { checkpointDigest } : {}),
534
+ };
535
+ if (statementOnly) {
536
+ const { CHANT_VERSION } = await import("../../chant-version.js");
537
+ return { statement: gateStatement(sealed, CHANT_VERSION) };
538
+ }
449
539
  const rule = identity.gateAdmissionFrom(scope, gate);
450
- if (rule && opts.sign === undefined) {
540
+ if (rule && opts.sign === undefined && opts.signature === undefined) {
451
541
  console.error(formatError({
452
542
  message: `Gate "${gate}" needs a signed approval: chant.workspace.json at base names it in identity.gates` +
453
543
  (rule.requirement.class !== null ? `, from the class ${rule.requirement.class}` : "") +
454
544
  `, and this approval is not signed`,
455
- hint: `chant approve ${opName} ${gate} --actor <principal> --sign [<key file>], with a key ${scope.policy.signersPath} at base lists for that principal.`,
545
+ hint: `chant approve ${opName} ${gate} --actor <principal> --sign [<key file>], with a key ${scope.policy.signersPath} at base lists for that principal, ` +
546
+ `or --signature <file> --at <timestamp> with a signature made elsewhere over the statement --statement prints.`,
456
547
  }));
457
548
  return { ok: false };
458
549
  }
459
- const timestamp = new Date().toISOString();
460
550
  let seal;
551
+ if (opts.signature !== undefined) {
552
+ const made = externalSeal(opts.signature, sealed, scope.policy, cwd);
553
+ if ("refused" in made)
554
+ return refuse(made.refused);
555
+ seal = made.seal;
556
+ }
461
557
  if (opts.sign !== undefined) {
462
558
  const { resolveSigningKey, sealGateApproval, gateSealVersion, SealError } = await import("../../workspace/trust/seal.js");
463
559
  try {
464
560
  const key = resolveSigningKey(opts.sign, cwd);
465
561
  try {
466
- const sealed = {
467
- op: opName,
468
- gate,
469
- ...(environment !== undefined ? { environment } : {}),
470
- ...(planDigest !== undefined ? { planDigest } : {}),
471
- resolvedBy,
472
- ...(relayedBy ? { relayedBy } : {}),
473
- timestamp,
474
- ...(checkpointDigest !== undefined ? { checkpointDigest } : {}),
475
- };
476
562
  // #3947: a seal over a checkpoint digest is seal version 2.
477
563
  seal = { ...sealGateApproval(key.file, sealed), ...(gateSealVersion(sealed) === 2 ? { version: 2 } : {}) };
478
564
  }
@@ -587,7 +673,7 @@ export async function recordGateApproval(opName, gate, opts) {
587
673
  (record.relayedBy ? `, relayed by ${record.relayedBy},` : "") +
588
674
  ` at ${record.timestamp}` +
589
675
  (record.url ? ` (${record.url})` : "") +
590
- (record.seal ? `, signed with ${record.seal.key}` : "") +
676
+ (record.seal ? `, signed with ${record.seal.kind === WEBAUTHN_SEAL_KIND ? "passkey " : ""}${record.seal.key}` : "") +
591
677
  push.suffix));
592
678
  if (record.planDigest) {
593
679
  console.error(formatInfo(`This approves the plan ${record.planDigest}` +
@@ -611,6 +697,46 @@ export async function recordGateApproval(opName, gate, opts) {
611
697
  }
612
698
  return { ok: true, record, pushed: push.pushed };
613
699
  }
700
+ /** How far in the future `--at` may be (#4646), for a clock that runs a little ahead of this one. */
701
+ const AT_SKEW_MS = 5 * 60 * 1000;
702
+ /**
703
+ * The seal for a signature made outside chant (#4646): the file `--signature`
704
+ * names (`-` for stdin), read as an armored ssh signature or a WebAuthn
705
+ * assertion, and checked over `sealed`'s statement against the keys and
706
+ * passkeys listed at base for the approver. A signature nothing at base
707
+ * vouches for is refused rather than recorded.
708
+ */
709
+ function externalSeal(from, sealed, policy, cwd) {
710
+ let text;
711
+ try {
712
+ text = from === "-" ? readFileSync(0, "utf-8") : readFileSync(resolvePath(cwd, from), "utf-8");
713
+ }
714
+ catch (err) {
715
+ return { refused: `--signature ${from} can't be read: ${err instanceof Error ? err.message : String(err)}` };
716
+ }
717
+ const sig = readExternalSignature(text);
718
+ if ("problem" in sig)
719
+ return { refused: `--signature ${from}: ${sig.problem}` };
720
+ const candidate = sig.kind === "ssh"
721
+ ? { signer: sealed.resolvedBy, key: "", signature: sig.signature }
722
+ : {
723
+ kind: WEBAUTHN_SEAL_KIND,
724
+ signer: sealed.resolvedBy,
725
+ key: sig.assertion.id,
726
+ signature: sig.assertion.signature,
727
+ clientDataJSON: sig.assertion.clientDataJSON,
728
+ authenticatorData: sig.assertion.authenticatorData,
729
+ };
730
+ const r = checkGateSignature(policy, sealed.resolvedBy, candidate, gateSealPayload(sealed));
731
+ if (!r.ok) {
732
+ return {
733
+ refused: r.unlisted
734
+ ? `${sealed.resolvedBy} has no ${sig.kind === "ssh" ? `key in ${policy.signersPath}` : "passkey in .chant/trust.json"} at base, so a signature made elsewhere can't be checked`
735
+ : `the ${sig.kind === "ssh" ? "ssh signature" : "passkey's assertion"} does not verify for ${sealed.resolvedBy} over this approval's statement: ${r.reason}`,
736
+ };
737
+ }
738
+ return { seal: { ...candidate, key: r.key, ...(gateSealVersion(sealed) === 2 ? { version: 2 } : {}) } };
739
+ }
614
740
  /**
615
741
  * What a just-recorded approval did to a gate with an `approval` block
616
742
  * (#2508): the policy's decision and whether it binds, then the quorum count
@@ -0,0 +1,10 @@
1
+ import type { CommandContext } from "../registry.js";
2
+ import type { PlanStaleDocument } from "../../lifecycle/plan-stale.js";
3
+ /** The `plan-stale` document for `digest`, read from the ledgers at `cwd`: every member's, or the ones `members` names. */
4
+ export declare function planStaleDocument(req: {
5
+ cwd: string;
6
+ digest: string;
7
+ members?: readonly string[];
8
+ }): Promise<PlanStaleDocument>;
9
+ export declare function runPlanStale(ctx: CommandContext): Promise<number>;
10
+ //# sourceMappingURL=plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/plan.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAKpE,2HAA2H;AAC3H,wBAAsB,iBAAiB,CAAC,GAAG,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAkBrI;AAED,wBAAsB,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiCvE"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * `chant plan stale <digest> [--member <name>] [--json]` (#4648): whether
3
+ * anything applied to a plan's targets after the plan was recorded, and
4
+ * which applies. The rule is `../../lifecycle/plan-stale.ts`; the ledgers
5
+ * are read as `chant ledger` reads them (`./query.ts` {@link queryLedgers}),
6
+ * from the local `chant/lifecycle` branch. It never fetches and never writes,
7
+ * so a platform can call it before it asks a person to approve. Exit 0 when
8
+ * the plan is current, 2 when it is stale, 1 when no pending gate fact
9
+ * records the digest or the ledger can't be read.
10
+ */
11
+ import { execFileSync } from "node:child_process";
12
+ import { resolve } from "node:path";
13
+ import { formatError } from "../format.js";
14
+ import { queryLedgers } from "./query.js";
15
+ const USAGE = "chant plan stale <digest> [--member <name>] [--json]";
16
+ /** The `plan-stale` document for `digest`, read from the ledgers at `cwd`: every member's, or the ones `members` names. */
17
+ export async function planStaleDocument(req) {
18
+ const { planStaleness, planStaleHead } = await import("../../lifecycle/plan-stale.js");
19
+ const { readerVersion } = await import("../../workspace/declaration.js");
20
+ const head = planStaleHead(readerVersion());
21
+ try {
22
+ execFileSync("git", ["rev-parse", "--git-dir"], { cwd: req.cwd, stdio: "ignore" });
23
+ }
24
+ catch {
25
+ return { ...head, error: { code: "not-a-git-repository", message: "plans are read from the chant/lifecycle branch, and this directory is not in a git repository" } };
26
+ }
27
+ const { loadQueryData } = await import("../../lifecycle/query.js");
28
+ try {
29
+ // No snapshot is read: an empty snapshot port stands in, so the snapshot files on the branch are skipped too.
30
+ const none = { read: async () => null, list: async () => [], trees: async () => [] };
31
+ const ledgers = (await queryLedgers(req.cwd, req.members)).map((l) => ({ ...l, snapshots: none }));
32
+ return planStaleness((await loadQueryData(ledgers)).data, req.digest, readerVersion());
33
+ }
34
+ catch (err) {
35
+ return { ...head, error: { code: "ledger-unreadable", message: `reading the ledger failed: ${err instanceof Error ? err.message : String(err)}` } };
36
+ }
37
+ }
38
+ export async function runPlanStale(ctx) {
39
+ const { args } = ctx;
40
+ const digest = args.extraPositional;
41
+ if (!digest || digest.startsWith("-")) {
42
+ console.error(formatError({ message: "plan stale needs the plan digest a gate's pending fact records", hint: USAGE }));
43
+ return 1;
44
+ }
45
+ const doc = await planStaleDocument({ cwd: resolve("."), digest, members: args.members });
46
+ if (args.json) {
47
+ console.log(JSON.stringify(doc, null, 2));
48
+ return "error" in doc || doc.plan === null ? 1 : doc.stale ? 2 : 0;
49
+ }
50
+ if ("error" in doc) {
51
+ console.error(formatError({ message: `${doc.error.code}: ${doc.error.message}`, hint: USAGE }));
52
+ return 1;
53
+ }
54
+ if (doc.plan === null) {
55
+ console.error(formatError({ message: `no pending gate fact records the plan ${digest}`, hint: "Fetch chant/lifecycle first if the run that made the plan ran elsewhere: git fetch origin chant/lifecycle:chant/lifecycle" }));
56
+ return 1;
57
+ }
58
+ const where = doc.plan.targets.map((t) => `${t.member ? `${t.member}/` : ""}${t.op} at ${t.gate}${t.environment ? ` in ${t.environment}` : ""}`).join(", ");
59
+ console.log(`Plan ${digest}, recorded ${doc.plan.recordedAt} for ${where}.`);
60
+ if (!doc.stale) {
61
+ console.log("Nothing has applied to its targets since.");
62
+ return 0;
63
+ }
64
+ console.log(`Stale: ${doc.applies.length} ${doc.applies.length === 1 ? "apply" : "applies"} since.`);
65
+ for (const a of doc.applies) {
66
+ const what = a.source === "deploys" ? `deploy of ${a.component} to ${a.environment}` : `apply under ${a.op}/${a.gate} of ${a.planDigest}`;
67
+ const who = [a.actor ? `by ${a.actor}` : null, a.approvedBy ? `approved by ${a.approvedBy}` : null, a.runId ? `run ${a.runId}` : null].filter(Boolean).join(", ");
68
+ console.log(` ${a.at} ${what}${who ? ` (${who})` : ""}${a.result ? `: ${a.result}` : ""}`);
69
+ }
70
+ return 2;
71
+ }
@@ -17,7 +17,7 @@
17
17
  * release verify <label|digest> [--json]
18
18
  * check the release's signature offline against .chant/allowed_signers
19
19
  * at the release's commit (#4049)
20
- * release candidates [--env <env>] [--json]
20
+ * release candidates [--env <env>] [--forge-issues] [--json]
21
21
  * the green commits of trunk a release can be cut from, each with what it
22
22
  * would ship, and what each environment runs (#4168 4.2)
23
23
  * release compose <name> [--base <label|sha>] (--pr <n> | --work <id>)... [--yes] [--json]
@@ -90,9 +90,11 @@ export declare function runReleasePublish(ctx: CommandContext): Promise<number>;
90
90
  */
91
91
  export declare function runReleaseVerify(ctx: CommandContext): Promise<number>;
92
92
  /**
93
- * `release candidates [--env <env>] [--json]` (#4168 4.2): the green commits
94
- * of trunk a release can be cut from, newest first, each with what it would
95
- * ship since the previous one, and what each environment runs. `--json`
93
+ * `release candidates [--env <env>] [--forge-issues] [--json]` (#4168 4.2):
94
+ * the green commits of trunk a release can be cut from, newest first, each
95
+ * with what it would ship since the previous one, and what each environment
96
+ * runs. `--forge-issues` (#4649) asks the forge which issues each pull
97
+ * request closes and groups the changes no work id names by them. `--json`
96
98
  * prints the read contract's `release-candidates` document.
97
99
  */
98
100
  export declare function runReleaseCandidates(ctx: CommandContext): Promise<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/release.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAyBlD,0HAA0H;AAC1H,wBAAgB,YAAY,CAAC,GAAG,EAAE;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,uFAAuF;IACvF,YAAY,EAAE,OAAO,CAAC;CACvB,GAAG,MAAM,EAAE,CASX;AAED,wGAAwG;AACxG,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAG3D;AAiBD;;;;;;;;;;;;GAYG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA0PxE;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA4G5E;AAQD;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkC3E;AAED;;;;;GAKG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsC/E;AAED,wBAAsB,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BzE;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAyC3E;AAED,gHAAgH;AAChH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsB5E;AAED,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAG5E;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsD5E"}
1
+ {"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/release.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAyBlD,0HAA0H;AAC1H,wBAAgB,YAAY,CAAC,GAAG,EAAE;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,uFAAuF;IACvF,YAAY,EAAE,OAAO,CAAC;CACvB,GAAG,MAAM,EAAE,CASX;AAED,wGAAwG;AACxG,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAG3D;AAiBD;;;;;;;;;;;;GAYG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA0PxE;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA4G5E;AAQD;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkC3E;AAED;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAyC/E;AAED,wBAAsB,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BzE;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAyC3E;AAED,gHAAgH;AAChH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsB5E;AAED,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAG5E;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsD5E"}
@@ -17,7 +17,7 @@
17
17
  * release verify <label|digest> [--json]
18
18
  * check the release's signature offline against .chant/allowed_signers
19
19
  * at the release's commit (#4049)
20
- * release candidates [--env <env>] [--json]
20
+ * release candidates [--env <env>] [--forge-issues] [--json]
21
21
  * the green commits of trunk a release can be cut from, each with what it
22
22
  * would ship, and what each environment runs (#4168 4.2)
23
23
  * release compose <name> [--base <label|sha>] (--pr <n> | --work <id>)... [--yes] [--json]
@@ -43,7 +43,7 @@ import { existsSync } from "node:fs";
43
43
  import { resolve } from "node:path";
44
44
  import { formatBold, formatError, formatSuccess, formatWarning } from "../format.js";
45
45
  import { parseParamFlags } from "../build-params-cli.js";
46
- const USAGE = "chant release cut [<label>] [--at <sha>] [--yes] [--build <command>] [--param <k=v>] [--params-file <file>] [--src <dir>] [-o <file>] [--lexicon <name>] [--actor <name>] [--sign [<key file>]] [--channel <tag>] [--json] | release publish <label|digest> [--yes] [--allow-unsigned] [--require-provenance] [--json] | release verify <label|digest> [--json] | release candidates [--env <env>] [--json] | release compose <name> [--base <label|sha>] (--pr <n> | --work <id>)... [--yes] [--json] | release list [--json] | release export <label|digest> --env <env> [-o <dir>] [--json]";
46
+ const USAGE = "chant release cut [<label>] [--at <sha>] [--yes] [--build <command>] [--param <k=v>] [--params-file <file>] [--src <dir>] [-o <file>] [--lexicon <name>] [--actor <name>] [--sign [<key file>]] [--channel <tag>] [--json] | release publish <label|digest> [--yes] [--allow-unsigned] [--require-provenance] [--json] | release verify <label|digest> [--json] | release candidates [--env <env>] [--forge-issues] [--json] | release compose <name> [--base <label|sha>] (--pr <n> | --work <id>)... [--yes] [--json] | release list [--json] | release export <label|digest> --env <env> [-o <dir>] [--json]";
47
47
  /** The build inputs `release cut` and `release compile` share. */
48
48
  function compileInputs(ctx, params, projectDir = resolve("."), releaseLabel) {
49
49
  const { args } = ctx;
@@ -552,14 +552,16 @@ export async function runReleaseVerify(ctx) {
552
552
  return 0;
553
553
  }
554
554
  /**
555
- * `release candidates [--env <env>] [--json]` (#4168 4.2): the green commits
556
- * of trunk a release can be cut from, newest first, each with what it would
557
- * ship since the previous one, and what each environment runs. `--json`
555
+ * `release candidates [--env <env>] [--forge-issues] [--json]` (#4168 4.2):
556
+ * the green commits of trunk a release can be cut from, newest first, each
557
+ * with what it would ship since the previous one, and what each environment
558
+ * runs. `--forge-issues` (#4649) asks the forge which issues each pull
559
+ * request closes and groups the changes no work id names by them. `--json`
558
560
  * prints the read contract's `release-candidates` document.
559
561
  */
560
562
  export async function runReleaseCandidates(ctx) {
561
563
  const { releaseCandidatesDocument } = await import("../../workspace/release-candidates.js");
562
- const doc = await releaseCandidatesDocument({ cwd: resolve("."), ...(ctx.args.env ? { env: ctx.args.env } : {}), ...(ctx.args.branch ? { branch: ctx.args.branch } : {}) });
564
+ const doc = await releaseCandidatesDocument({ cwd: resolve("."), ...(ctx.args.env ? { env: ctx.args.env } : {}), ...(ctx.args.branch ? { branch: ctx.args.branch } : {}), ...(ctx.args.forgeIssues ? { forgeIssues: {} } : {}) });
563
565
  if (ctx.args.json) {
564
566
  console.log(JSON.stringify(doc, null, 2));
565
567
  return "error" in doc ? 1 : 0;
@@ -586,7 +588,7 @@ export async function runReleaseCandidates(ctx) {
586
588
  // #4168 4.4: by work item, then pull request, then commit.
587
589
  const subjectOf = new Map(c.changes.map((ch) => [ch.commit, ch.subject]));
588
590
  for (const g of c.groups) {
589
- console.log(` ${g.work !== null ? `work:${g.work}` : "no work item"}`);
591
+ console.log(` ${g.work !== null ? `work:${g.work}` : g.issue !== null ? `issue #${g.issue}` : "no work item"}`);
590
592
  for (const p of g.pullRequests) {
591
593
  console.log(` ${p.pr !== null ? `#${p.pr}` : "no pull request"}`);
592
594
  for (const sha of p.commits)
@@ -598,6 +600,10 @@ export async function runReleaseCandidates(ctx) {
598
600
  }
599
601
  for (const sk of doc.skipped)
600
602
  console.log(`skipped ${sk.commit.slice(0, 12)} ${sk.subject} (revoked)`);
603
+ // --forge-issues: why a pull request's issues were not read, once per reason.
604
+ const unread = new Set([...doc.candidates.flatMap((c) => c.changes), ...doc.pending].map((ch) => ch.closes?.reason).filter((r) => typeof r === "string"));
605
+ for (const r of unread)
606
+ console.error(`Issues not read from the forge: ${r}`);
601
607
  if (doc.candidates.length > 0)
602
608
  console.error(`Cut one: chant release cut <label> --at <sha>`);
603
609
  return 0;
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAEA,OAAO,EAAoB,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAItG,OAAO,EAAkB,KAAK,UAAU,EAAmB,MAAM,YAAY,CAAC;AAa9E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG3D,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;AAwnDzC;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,mBAAmB,GAAG,cAAc,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,qBAAqB,EAAE,cAAc,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,2BAA2B,EAAE,eAAe,CAAA;CAAO,GAC7K,OAAO,CAAC,MAAM,CAAC,CAuCjB;AAID;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,EAgQvC,CAAC"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAEA,OAAO,EAAoB,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAItG,OAAO,EAAkB,KAAK,UAAU,EAAmB,MAAM,YAAY,CAAC;AAa9E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG3D,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;AAkpDzC;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,mBAAmB,GAAG,cAAc,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,qBAAqB,EAAE,cAAc,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,2BAA2B,EAAE,eAAe,CAAA;CAAO,GAC7K,OAAO,CAAC,MAAM,CAAC,CAuCjB;AAID;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,EAmQvC,CAAC"}
package/dist/cli/main.js CHANGED
@@ -313,6 +313,19 @@ CI:
313
313
  one starts a bisect: a ci/build/<sha> tag the tick
314
314
  starts the phase's workflow at. Each commit judged
315
315
  gets a _ci/<sha>.json record on chant/lifecycle.
316
+ ci quarantine check Fail when an entry of ci.green.quarantine is past its
317
+ until, or its until is more than maxDays (14) out.
318
+ ci quarantine filter --phase <name> --runner nextest|playwright|list [--only] [--json]
319
+ What the phase's runner leaves out: a nextest
320
+ filterset for -E, a Playwright --grep-invert pattern,
321
+ or one test a line. Fails as check does for the
322
+ phase. --only selects the quarantined tests instead,
323
+ for the scheduled run, and doesn't fail on expiry.
324
+ ci quarantine report --phase <name> --junit <file>... [--commit <sha>] [--dry-run] [--json]
325
+ After the scheduled run of the quarantined tests:
326
+ each one's outcome from the run's JUnit XML, and
327
+ ci.quarantine-passed through ci.green.notify for each
328
+ that passed. Exits 0 whatever the tests did.
316
329
  ci run plan|apply --env <env> --base <sha> [--pr <n>] [--commit <sha>]
317
330
  [--forge github|gitlab|forgejo] [--gate <name>] [--wave-gate <name>]
318
331
  [--branch <name>] [--events-json] [--report-url <url>] [--image <image>]
@@ -458,11 +471,12 @@ Releases:
458
471
  that exists; stops on a conflict, naming the change
459
472
  and files, and writes nothing. A dry run unless --yes,
460
473
  which moves the branch and pushes it.
461
- release candidates [--env <env>] [--json]
474
+ release candidates [--env <env>] [--forge-issues] [--json]
462
475
  The green commits of trunk a release can be cut from,
463
476
  newest first, each with the commits, work items, pull
464
477
  requests and flags it would ship, and what each
465
- environment runs.
478
+ environment runs. --forge-issues asks the forge which
479
+ issues each pull request closes, once per pull request
466
480
  release publish <label|digest> [--yes] [--allow-unsigned]
467
481
  [--require-provenance] [--json]
468
482
  Publish a cut release to the targets release.publish
@@ -503,6 +517,10 @@ Change sets:
503
517
  [--member <name>] [--json] bound, stored on
504
518
  chant/lifecycle under its digest, each
505
519
  entry with its graph node. Read-only.
520
+ plan stale <digest> Whether anything applied to the plan's op or
521
+ [--member <name>] [--json] environment after the
522
+ plan was recorded, and which applies.
523
+ Exit 2 when stale. Read-only.
506
524
 
507
525
  Ops:
508
526
  run <name> Run an Op on the resolved runtime (--on; local by default)
@@ -632,6 +650,12 @@ Ops:
632
650
  file at base lists for --actor. --relayed-by
633
651
  <principal> records who carried the approval to chant
634
652
  for --actor (a follower, a bot); --sign covers it.
653
+ --statement prints the bytes an approval signs, at a
654
+ time it fixes, and records nothing; --signature
655
+ <file|-> --at <time> then records a signature made
656
+ elsewhere over them (an ssh signature, or a passkey's
657
+ WebAuthn assertion checked against .chant/trust.json's
658
+ passkeys), which counts as --sign does (#4646)
635
659
  --resume then starts the CI job that waits at the
636
660
  gate again (GitHub re-run, GitLab retry, Forgejo
637
661
  dispatch) with CHANT_FORGE_TOKEN
@@ -1099,14 +1123,16 @@ Workspace (level 1, #2524):
1099
1123
  Each composite instance the members declare, with the
1100
1124
  components whose contract can deploy it; an instance
1101
1125
  with none lists an empty set
1102
- workspace graph --intent <path[:start-end]|path#symbol|member/node|sha> [--at <rev>] [--kind <kind file>...] [--follow-squash] [--json]
1126
+ workspace graph --intent <path[:start-end]|path#symbol|member/node|sha> [--at <rev>] [--kind <kind file>...] [--follow-squash] [--forge-issues] [--json]
1103
1127
  The intent graph over one region: the commits that
1104
1128
  touched it, the decisions whose constrains cover it,
1105
1129
  the artifacts they pin, and findings with closed codes.
1106
1130
  Without --kind, every record kind the declaration names.
1107
1131
  --follow-squash follows a squash merge to its pull
1108
- request's commits, fetching a missing ref from origin
1109
- workspace graph --intent --record <id> [--at <rev>] [--kind <kind file>...] [--follow-squash] [--json]
1132
+ request's commits, fetching a missing ref from origin.
1133
+ --forge-issues asks the forge which issues each
1134
+ commit's pull request closes
1135
+ workspace graph --intent --record <id> [--at <rev>] [--kind <kind file>...] [--follow-squash] [--forge-issues] [--json]
1110
1136
  One decision's intent walk over every path: and member:
1111
1137
  entry it constrains: the commits in its window, each
1112
1138
  own, worked, within-other or unexplained, with counts
@@ -1789,6 +1815,7 @@ export const commandRegistry = [
1789
1815
  // #4098: the run index at the report URL.
1790
1816
  // #4147: a provisioner's signed word that it started a runner for one job, signed and checked.
1791
1817
  { name: "ci runner-start", runsNoConfig: true, handler: async (ctx) => (await import("../workspace/ci-runner-start.js")).runCiRunnerStart(ctx) },
1818
+ { name: "ci quarantine", runsNoConfig: true, handler: async (ctx) => (await import("../workspace/ci-quarantine.js")).runCiQuarantine(ctx) },
1792
1819
  { name: "ci runs", runsNoConfig: true, handler: async (ctx) => (await import("../workspace/ci-run-index.js")).runCiRuns(ctx) },
1793
1820
  { name: "ci serve", runsNoConfig: true, handler: async (ctx) => (await import("../workspace/ci-serve.js")).runCiServe(ctx) },
1794
1821
  // #4026: the release cut from a green commit (ws-104). Imported on first use.
@@ -1808,6 +1835,8 @@ export const commandRegistry = [
1808
1835
  { name: "change-set summary", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/change-set.js")).runChangeSetSummary(ctx) },
1809
1836
  // #4022: the change set a gate bound, read from chant/lifecycle by its digest.
1810
1837
  { name: "change-set show", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/change-set.js")).runChangeSetShow(ctx) },
1838
+ // #4648: whether anything applied to a plan's targets after it was recorded. Read-only, imported on first use.
1839
+ { name: "plan stale", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/plan.js")).runPlanStale(ctx) },
1811
1840
  { name: "init", handler: runInit, runsNoConfig: true },
1812
1841
  { name: "init lexicon", handler: runInitLexicon },
1813
1842
  { name: "update", handler: runUpdate },
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-tools.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/workspace-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAGH,OAAO,KAAK,EAAe,cAAc,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAKxE,oEAAoE;AACpE,MAAM,MAAM,YAAY,GAAG,MAAM,EAAE,CAAC;AAEpC;;;GAGG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAE9C;AAED,MAAM,WAAW,qBAAqB;IACpC,qFAAqF;IACrF,GAAG,EAAE,MAAM,CAAC;IACZ,oEAAoE;IACpE,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAmBD,eAAO,MAAM,kBAAkB,EAAE,cAAc,EAuJ9C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAAc,EA+H/C,CAAC;AAsCF,qHAAqH;AACrH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,EAAE,CAiGhF;AAED,4HAA4H;AAC5H,wBAAgB,OAAO,CAAC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAiB5F;AAyBD,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,cAAc,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,qBAAqB,GAAG,aAAa,EAAE,CA+GpF"}
1
+ {"version":3,"file":"workspace-tools.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/workspace-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAGH,OAAO,KAAK,EAAe,cAAc,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAKxE,oEAAoE;AACpE,MAAM,MAAM,YAAY,GAAG,MAAM,EAAE,CAAC;AAEpC;;;GAGG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAE9C;AAED,MAAM,WAAW,qBAAqB;IACpC,qFAAqF;IACrF,GAAG,EAAE,MAAM,CAAC;IACZ,oEAAoE;IACpE,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAmBD,eAAO,MAAM,kBAAkB,EAAE,cAAc,EAwJ9C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAAc,EA+H/C,CAAC;AAsCF,qHAAqH;AACrH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,EAAE,CAiGhF;AAED,4HAA4H;AAC5H,wBAAgB,OAAO,CAAC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAiB5F;AAyBD,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,cAAc,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,qBAAqB,GAAG,aAAa,EAAE,CA+GpF"}
@@ -93,6 +93,7 @@ export const workspaceReadTools = [
93
93
  },
94
94
  intent: { type: "string", description: "The region for the intent graph: a workspace path, path:line, path:start-end, or path#symbol for a TypeScript or JavaScript declaration such as src/server.ts#createApp (--intent). The document's why answers why the region is like this." },
95
95
  followSquash: { type: "boolean", description: "With intent: follow squash merges to their pull requests' original commits (--follow-squash, #3035), fetching a pull request ref the clone lacks from origin. Off by default, so a read never reaches the network." },
96
+ forgeIssues: { type: "boolean", description: "With intent: ask the forge which issues each commit's pull request closes (--forge-issues, #4649), once per pull request. Off by default." },
96
97
  composites: { type: "boolean", description: "The composites document instead (--composites). Takes no kind or intent." },
97
98
  at: atProp,
98
99
  },
@@ -384,7 +385,7 @@ export function readArgv(tool, params) {
384
385
  if (composites)
385
386
  return ["workspace", "graph", "--composites", ...kindArgs, ...(intent !== undefined ? ["--intent", intent] : []), ...atArgs, "--json"];
386
387
  if (intent !== undefined)
387
- return ["workspace", "graph", "--intent", intent, ...kindArgs, ...atArgs, ...(bool(params, "followSquash") ? ["--follow-squash"] : []), "--json"];
388
+ return ["workspace", "graph", "--intent", intent, ...kindArgs, ...atArgs, ...(bool(params, "followSquash") ? ["--follow-squash"] : []), ...(bool(params, "forgeIssues") ? ["--forge-issues"] : []), "--json"];
388
389
  return ["workspace", "graph", ...kindArgs, ...atArgs, "--json"];
389
390
  }
390
391
  case "workspace-changes": {
@@ -1 +1 @@
1
- {"version":3,"file":"parse-args.d.ts","sourceRoot":"","sources":["../../src/cli/parse-args.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAqG7C;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CA6nCpD"}
1
+ {"version":3,"file":"parse-args.d.ts","sourceRoot":"","sources":["../../src/cli/parse-args.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAsG7C;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAopCpD"}