@intentius/chant 0.124.27 → 0.124.28

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 (450) hide show
  1. package/README.md +1 -1
  2. package/dist/__golden__/wave-loop/fan-out-gated.json +8 -0
  3. package/dist/__golden__/wave-loop/fan-out-no-members.json +4 -0
  4. package/dist/__golden__/wave-loop/fan-out-only.json +6 -0
  5. package/dist/__golden__/wave-loop/op-by-apply-hold.json +2 -0
  6. package/dist/__golden__/wave-loop/op-cost-member.json +3 -0
  7. package/dist/__golden__/wave-loop/op-held-on-before-apply.json +1 -0
  8. package/dist/__golden__/wave-loop/op-held-on.json +2 -0
  9. package/dist/__golden__/wave-loop/op-hooks-held.json +2 -0
  10. package/dist/__golden__/wave-loop/op-hooks-hold-before-apply.json +2 -0
  11. package/dist/__golden__/wave-loop/op-hooks-refused-at-base.json +3 -0
  12. package/dist/__golden__/wave-loop/op-hooks-share.json +3 -0
  13. package/dist/__golden__/wave-loop/op-per-run.json +7 -0
  14. package/dist/__golden__/wave-loop/op-pr-review.json +7 -0
  15. package/dist/__golden__/wave-loop/op-sealed.json +3 -0
  16. package/dist/__golden__/wave-loop/op-spend.json +3 -0
  17. package/dist/__golden__/wave-loop/op-wave-commands.json +7 -0
  18. package/dist/__golden__/wave-loop/op-wide-waiting.json +4 -0
  19. package/dist/change-set-graph.d.ts +56 -0
  20. package/dist/change-set-graph.d.ts.map +1 -0
  21. package/dist/change-set-graph.js +128 -0
  22. package/dist/change-set.d.ts +52 -3
  23. package/dist/change-set.d.ts.map +1 -1
  24. package/dist/change-set.js +35 -4
  25. package/dist/chant-version.d.ts +9 -0
  26. package/dist/chant-version.d.ts.map +1 -0
  27. package/dist/chant-version.js +16 -0
  28. package/dist/cli/commands/build.d.ts +8 -0
  29. package/dist/cli/commands/build.d.ts.map +1 -1
  30. package/dist/cli/commands/build.js +9 -8
  31. package/dist/cli/commands/check-lexicon-docs.d.ts.map +1 -1
  32. package/dist/cli/commands/check-lexicon-docs.js +30 -2
  33. package/dist/cli/commands/check-lexicon.d.ts.map +1 -1
  34. package/dist/cli/commands/check-lexicon.js +13 -2
  35. package/dist/cli/commands/init-lexicon/templates/docs.d.ts +4 -1
  36. package/dist/cli/commands/init-lexicon/templates/docs.d.ts.map +1 -1
  37. package/dist/cli/commands/init-lexicon/templates/docs.js +6 -6
  38. package/dist/cli/commands/init-lexicon.d.ts.map +1 -1
  39. package/dist/cli/commands/init-lexicon.js +17 -8
  40. package/dist/cli/handlers/approve.d.ts.map +1 -1
  41. package/dist/cli/handlers/approve.js +19 -4
  42. package/dist/cli/handlers/build.d.ts.map +1 -1
  43. package/dist/cli/handlers/build.js +28 -0
  44. package/dist/cli/handlers/change-set.d.ts +10 -0
  45. package/dist/cli/handlers/change-set.d.ts.map +1 -1
  46. package/dist/cli/handlers/change-set.js +51 -1
  47. package/dist/cli/handlers/fan-out.d.ts +1 -1
  48. package/dist/cli/handlers/fan-out.d.ts.map +1 -1
  49. package/dist/cli/handlers/fan-out.js +14 -3
  50. package/dist/cli/handlers/pr.d.ts +8 -2
  51. package/dist/cli/handlers/pr.d.ts.map +1 -1
  52. package/dist/cli/handlers/pr.js +148 -24
  53. package/dist/cli/handlers/promote.d.ts.map +1 -1
  54. package/dist/cli/handlers/promote.js +256 -21
  55. package/dist/cli/handlers/release.d.ts +34 -0
  56. package/dist/cli/handlers/release.d.ts.map +1 -0
  57. package/dist/cli/handlers/release.js +203 -0
  58. package/dist/cli/handlers/run.d.ts +28 -2
  59. package/dist/cli/handlers/run.d.ts.map +1 -1
  60. package/dist/cli/handlers/run.js +170 -13
  61. package/dist/cli/main.d.ts.map +1 -1
  62. package/dist/cli/main.js +88 -13
  63. package/dist/cli/mcp/workspace-tools.js +1 -1
  64. package/dist/cli/parse-args.d.ts.map +1 -1
  65. package/dist/cli/parse-args.js +49 -3
  66. package/dist/cli/registry.d.ts +29 -3
  67. package/dist/cli/registry.d.ts.map +1 -1
  68. package/dist/cli/run-events.d.ts +29 -0
  69. package/dist/cli/run-events.d.ts.map +1 -0
  70. package/dist/cli/run-events.js +47 -0
  71. package/dist/cli/version.d.ts +3 -5
  72. package/dist/cli/version.d.ts.map +1 -1
  73. package/dist/cli/version.js +3 -13
  74. package/dist/codegen/docs-in-site.d.ts +71 -0
  75. package/dist/codegen/docs-in-site.d.ts.map +1 -0
  76. package/dist/codegen/docs-in-site.js +177 -0
  77. package/dist/codegen/docs-types.d.ts +14 -1
  78. package/dist/codegen/docs-types.d.ts.map +1 -1
  79. package/dist/codegen/docs.d.ts +18 -1
  80. package/dist/codegen/docs.d.ts.map +1 -1
  81. package/dist/codegen/docs.js +40 -7
  82. package/dist/codegen/rehype-base-url.mjs +15 -9
  83. package/dist/components/auto-release.d.ts +4 -1
  84. package/dist/components/auto-release.d.ts.map +1 -1
  85. package/dist/components/auto-release.js +2 -0
  86. package/dist/components/cli-support.d.ts +6 -0
  87. package/dist/components/cli-support.d.ts.map +1 -1
  88. package/dist/components/cli-support.js +10 -9
  89. package/dist/components/driver.d.ts +42 -9
  90. package/dist/components/driver.d.ts.map +1 -1
  91. package/dist/components/driver.js +81 -54
  92. package/dist/components/fan-out-run.d.ts +7 -0
  93. package/dist/components/fan-out-run.d.ts.map +1 -1
  94. package/dist/components/fan-out-run.js +35 -26
  95. package/dist/components/pr-run.d.ts +11 -0
  96. package/dist/components/pr-run.d.ts.map +1 -1
  97. package/dist/components/pr-run.js +20 -1
  98. package/dist/components/promote-order.d.ts +38 -0
  99. package/dist/components/promote-order.d.ts.map +1 -0
  100. package/dist/components/promote-order.js +62 -0
  101. package/dist/components/promote.d.ts +15 -2
  102. package/dist/components/promote.d.ts.map +1 -1
  103. package/dist/components/promote.js +17 -0
  104. package/dist/components/release-compile.d.ts +133 -0
  105. package/dist/components/release-compile.d.ts.map +1 -0
  106. package/dist/components/release-compile.js +376 -0
  107. package/dist/components/release-gate.d.ts +125 -0
  108. package/dist/components/release-gate.d.ts.map +1 -0
  109. package/dist/components/release-gate.js +282 -0
  110. package/dist/components/release-promote.d.ts +96 -0
  111. package/dist/components/release-promote.d.ts.map +1 -0
  112. package/dist/components/release-promote.js +204 -0
  113. package/dist/components/run-progress.d.ts +7 -0
  114. package/dist/components/run-progress.d.ts.map +1 -1
  115. package/dist/components/wave-plan.d.ts +3 -1
  116. package/dist/components/wave-plan.d.ts.map +1 -1
  117. package/dist/components/wave-plan.js +1 -1
  118. package/dist/config.d.ts +7 -0
  119. package/dist/config.d.ts.map +1 -1
  120. package/dist/config.js +1 -0
  121. package/dist/index.d.ts +1 -0
  122. package/dist/index.d.ts.map +1 -1
  123. package/dist/index.js +2 -0
  124. package/dist/lifecycle/change-set-store.d.ts +67 -0
  125. package/dist/lifecycle/change-set-store.d.ts.map +1 -0
  126. package/dist/lifecycle/change-set-store.js +96 -0
  127. package/dist/lifecycle/commit-sha.d.ts +13 -0
  128. package/dist/lifecycle/commit-sha.d.ts.map +1 -0
  129. package/dist/lifecycle/commit-sha.js +21 -0
  130. package/dist/lifecycle/gate-change-set.d.ts +69 -0
  131. package/dist/lifecycle/gate-change-set.d.ts.map +1 -0
  132. package/dist/lifecycle/gate-change-set.js +106 -0
  133. package/dist/lifecycle/gate-ledger.d.ts +49 -1
  134. package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
  135. package/dist/lifecycle/gate-ledger.js +18 -0
  136. package/dist/lifecycle/release-cut.d.ts +107 -0
  137. package/dist/lifecycle/release-cut.d.ts.map +1 -0
  138. package/dist/lifecycle/release-cut.js +273 -0
  139. package/dist/lifecycle/release-ledger.d.ts +54 -0
  140. package/dist/lifecycle/release-ledger.d.ts.map +1 -1
  141. package/dist/lifecycle/release-ledger.js +53 -20
  142. package/dist/lifecycle/release-store.d.ts +190 -0
  143. package/dist/lifecycle/release-store.d.ts.map +1 -0
  144. package/dist/lifecycle/release-store.js +318 -0
  145. package/dist/lifecycle/run-ledger.d.ts +4 -0
  146. package/dist/lifecycle/run-ledger.d.ts.map +1 -1
  147. package/dist/lifecycle/run-ledger.js +2 -0
  148. package/dist/op/activities/change-coverage.d.ts.map +1 -1
  149. package/dist/op/activities/change-coverage.js +4 -2
  150. package/dist/op/activities/source-release.d.ts.map +1 -1
  151. package/dist/op/activities/source-release.js +7 -3
  152. package/dist/op/activities/source-rollback.d.ts.map +1 -1
  153. package/dist/op/activities/source-rollback.js +7 -3
  154. package/dist/op/gate-name.d.ts +11 -2
  155. package/dist/op/gate-name.d.ts.map +1 -1
  156. package/dist/op/gate-name.js +12 -3
  157. package/dist/op/gate-run-locator.d.ts +22 -0
  158. package/dist/op/gate-run-locator.d.ts.map +1 -1
  159. package/dist/op/gate-run-locator.js +31 -0
  160. package/dist/op/gate.d.ts +27 -3
  161. package/dist/op/gate.d.ts.map +1 -1
  162. package/dist/op/gate.js +57 -3
  163. package/dist/op/local-executor.d.ts +36 -1
  164. package/dist/op/local-executor.d.ts.map +1 -1
  165. package/dist/op/local-executor.js +158 -52
  166. package/dist/op/op-waves-run.d.ts.map +1 -1
  167. package/dist/op/op-waves-run.js +4 -0
  168. package/dist/op/run-live.d.ts +2 -0
  169. package/dist/op/run-live.d.ts.map +1 -1
  170. package/dist/op/run-live.js +1 -1
  171. package/dist/op/runtime.d.ts +46 -0
  172. package/dist/op/runtime.d.ts.map +1 -1
  173. package/dist/op/runtimes/local.d.ts.map +1 -1
  174. package/dist/op/runtimes/local.js +8 -0
  175. package/dist/point-decision.d.ts +2 -0
  176. package/dist/point-decision.d.ts.map +1 -1
  177. package/dist/point-decision.js +9 -2
  178. package/dist/run-event-store.d.ts +77 -0
  179. package/dist/run-event-store.d.ts.map +1 -0
  180. package/dist/run-event-store.js +204 -0
  181. package/dist/run-event-stream.d.ts +132 -0
  182. package/dist/run-event-stream.d.ts.map +1 -0
  183. package/dist/run-event-stream.js +238 -0
  184. package/dist/run-event.d.ts +267 -0
  185. package/dist/run-event.d.ts.map +1 -0
  186. package/dist/run-event.js +207 -0
  187. package/dist/wave-runtime.mjs +204 -199
  188. package/dist/workspace/__fixtures__/run-event-check.d.ts +19 -0
  189. package/dist/workspace/__fixtures__/run-event-check.d.ts.map +1 -0
  190. package/dist/workspace/__fixtures__/run-event-check.js +59 -0
  191. package/dist/workspace/change-set-show.d.ts +56 -0
  192. package/dist/workspace/change-set-show.d.ts.map +1 -0
  193. package/dist/workspace/change-set-show.js +54 -0
  194. package/dist/workspace/change-set-show.schema.json +102 -0
  195. package/dist/workspace/change-set.schema.json +28 -1
  196. package/dist/workspace/changes-cli.d.ts.map +1 -1
  197. package/dist/workspace/changes-cli.js +10 -1
  198. package/dist/workspace/changes.d.ts +37 -0
  199. package/dist/workspace/changes.d.ts.map +1 -1
  200. package/dist/workspace/changes.js +49 -2
  201. package/dist/workspace/changes.schema.json +135 -0
  202. package/dist/workspace/ci-green-cli.d.ts +19 -4
  203. package/dist/workspace/ci-green-cli.d.ts.map +1 -1
  204. package/dist/workspace/ci-green-cli.js +75 -12
  205. package/dist/workspace/ci-green-forge.d.ts +20 -3
  206. package/dist/workspace/ci-green-forge.d.ts.map +1 -1
  207. package/dist/workspace/ci-green-forge.js +6 -4
  208. package/dist/workspace/ci-green-workflow.d.ts +11 -0
  209. package/dist/workspace/ci-green-workflow.d.ts.map +1 -1
  210. package/dist/workspace/ci-green-workflow.js +6 -0
  211. package/dist/workspace/ci-green.d.ts +273 -13
  212. package/dist/workspace/ci-green.d.ts.map +1 -1
  213. package/dist/workspace/ci-green.js +449 -38
  214. package/dist/workspace/ci-last-green.schema.json +32 -2
  215. package/dist/workspace/ci-list.schema.json +525 -0
  216. package/dist/workspace/commit-links.d.ts +85 -0
  217. package/dist/workspace/commit-links.d.ts.map +1 -0
  218. package/dist/workspace/commit-links.js +163 -0
  219. package/dist/workspace/declaration.d.ts +19 -0
  220. package/dist/workspace/declaration.d.ts.map +1 -1
  221. package/dist/workspace/declaration.js +1 -1
  222. package/dist/workspace/declaration.schema.json +12 -0
  223. package/dist/workspace/identity-gate-rule.d.ts +37 -0
  224. package/dist/workspace/identity-gate-rule.d.ts.map +1 -1
  225. package/dist/workspace/identity-gate-rule.js +72 -7
  226. package/dist/workspace/identity.d.ts +12 -0
  227. package/dist/workspace/identity.d.ts.map +1 -1
  228. package/dist/workspace/identity.js +13 -1
  229. package/dist/workspace/intent.d.ts +6 -1
  230. package/dist/workspace/intent.d.ts.map +1 -1
  231. package/dist/workspace/intent.js +51 -1
  232. package/dist/workspace/ls.d.ts +4 -0
  233. package/dist/workspace/ls.d.ts.map +1 -1
  234. package/dist/workspace/ls.js +2 -0
  235. package/dist/workspace/ls.schema.json +3 -1
  236. package/dist/workspace/member-pipeline.d.ts +6 -0
  237. package/dist/workspace/member-pipeline.d.ts.map +1 -1
  238. package/dist/workspace/member-pipeline.js +6 -0
  239. package/dist/workspace/promotion-order.d.ts +41 -0
  240. package/dist/workspace/promotion-order.d.ts.map +1 -0
  241. package/dist/workspace/promotion-order.js +95 -0
  242. package/dist/workspace/reason-codes.d.ts +2 -0
  243. package/dist/workspace/reason-codes.d.ts.map +1 -1
  244. package/dist/workspace/reason-codes.js +4 -1
  245. package/dist/workspace/releases.d.ts +72 -0
  246. package/dist/workspace/releases.d.ts.map +1 -0
  247. package/dist/workspace/releases.js +94 -0
  248. package/dist/workspace/releases.schema.json +391 -0
  249. package/dist/workspace/run-event.schema.json +288 -0
  250. package/dist/workspace/status-gates.d.ts +26 -1
  251. package/dist/workspace/status-gates.d.ts.map +1 -1
  252. package/dist/workspace/status-gates.js +31 -2
  253. package/dist/workspace/status-stewards.d.ts +4 -0
  254. package/dist/workspace/status-stewards.d.ts.map +1 -1
  255. package/dist/workspace/status-stewards.js +2 -0
  256. package/dist/workspace/status.d.ts +39 -0
  257. package/dist/workspace/status.d.ts.map +1 -1
  258. package/dist/workspace/status.js +48 -1
  259. package/dist/workspace/status.schema.json +70 -1
  260. package/dist/workspace/trust/ci-tag-statement.d.ts +102 -0
  261. package/dist/workspace/trust/ci-tag-statement.d.ts.map +1 -0
  262. package/dist/workspace/trust/ci-tag-statement.js +123 -0
  263. package/dist/workspace/trust/op-run-statement.d.ts +91 -0
  264. package/dist/workspace/trust/op-run-statement.d.ts.map +1 -0
  265. package/dist/workspace/trust/op-run-statement.js +143 -0
  266. package/dist/workspace/trust/rotation.d.ts +18 -2
  267. package/dist/workspace/trust/rotation.d.ts.map +1 -1
  268. package/dist/workspace/trust/rotation.js +65 -16
  269. package/dist/workspace/trust/seal.d.ts +11 -0
  270. package/dist/workspace/trust/seal.d.ts.map +1 -1
  271. package/dist/workspace/trust/seal.js +9 -0
  272. package/dist/workspace/trust/ssh-commit.d.ts.map +1 -1
  273. package/dist/workspace/trust/ssh-commit.js +10 -10
  274. package/package.json +1 -1
  275. package/src/__golden__/wave-loop/fan-out-gated.json +8 -0
  276. package/src/__golden__/wave-loop/fan-out-no-members.json +4 -0
  277. package/src/__golden__/wave-loop/fan-out-only.json +6 -0
  278. package/src/__golden__/wave-loop/op-by-apply-hold.json +2 -0
  279. package/src/__golden__/wave-loop/op-cost-member.json +3 -0
  280. package/src/__golden__/wave-loop/op-held-on-before-apply.json +1 -0
  281. package/src/__golden__/wave-loop/op-held-on.json +2 -0
  282. package/src/__golden__/wave-loop/op-hooks-held.json +2 -0
  283. package/src/__golden__/wave-loop/op-hooks-hold-before-apply.json +2 -0
  284. package/src/__golden__/wave-loop/op-hooks-refused-at-base.json +3 -0
  285. package/src/__golden__/wave-loop/op-hooks-share.json +3 -0
  286. package/src/__golden__/wave-loop/op-per-run.json +7 -0
  287. package/src/__golden__/wave-loop/op-pr-review.json +7 -0
  288. package/src/__golden__/wave-loop/op-sealed.json +3 -0
  289. package/src/__golden__/wave-loop/op-spend.json +3 -0
  290. package/src/__golden__/wave-loop/op-wave-commands.json +7 -0
  291. package/src/__golden__/wave-loop/op-wide-waiting.json +4 -0
  292. package/src/change-set-graph.test.ts +72 -0
  293. package/src/change-set-graph.ts +133 -0
  294. package/src/change-set.ts +76 -6
  295. package/src/chant-version.ts +16 -0
  296. package/src/cli/commands/build.ts +19 -8
  297. package/src/cli/commands/check-lexicon-docs.test.ts +51 -0
  298. package/src/cli/commands/check-lexicon-docs.ts +39 -2
  299. package/src/cli/commands/check-lexicon.ts +14 -2
  300. package/src/cli/commands/init-lexicon/templates/docs.ts +7 -6
  301. package/src/cli/commands/init-lexicon.test.ts +25 -0
  302. package/src/cli/commands/init-lexicon.ts +18 -8
  303. package/src/cli/handlers/approve-release.test.ts +80 -0
  304. package/src/cli/handlers/approve.ts +18 -2
  305. package/src/cli/handlers/build.test.ts +52 -0
  306. package/src/cli/handlers/build.ts +29 -0
  307. package/src/cli/handlers/change-set.ts +49 -1
  308. package/src/cli/handlers/fan-out.test.ts +48 -0
  309. package/src/cli/handlers/fan-out.ts +15 -3
  310. package/src/cli/handlers/operator.test.ts +37 -0
  311. package/src/cli/handlers/pr.test.ts +194 -0
  312. package/src/cli/handlers/pr.ts +168 -34
  313. package/src/cli/handlers/promote.test.ts +389 -5
  314. package/src/cli/handlers/promote.ts +279 -20
  315. package/src/cli/handlers/release-implicit.e2e.test.ts +153 -0
  316. package/src/cli/handlers/release.e2e.test.ts +85 -0
  317. package/src/cli/handlers/release.ts +206 -0
  318. package/src/cli/handlers/run-auto-release.test.ts +71 -0
  319. package/src/cli/handlers/run-events-cmd.test.ts +92 -0
  320. package/src/cli/handlers/run.test.ts +30 -0
  321. package/src/cli/handlers/run.ts +176 -15
  322. package/src/cli/main.test.ts +7 -0
  323. package/src/cli/main.ts +88 -13
  324. package/src/cli/mcp/never-over-mcp.test.ts +2 -0
  325. package/src/cli/mcp/workspace-tools.ts +1 -1
  326. package/src/cli/parse-args.ts +37 -3
  327. package/src/cli/registry.ts +29 -3
  328. package/src/cli/run-events.ts +54 -0
  329. package/src/cli/version.ts +3 -13
  330. package/src/codegen/docs-in-site.test.ts +166 -0
  331. package/src/codegen/docs-in-site.ts +182 -0
  332. package/src/codegen/docs-site/AgentPrompt.astro +26 -1
  333. package/src/codegen/docs-types.ts +14 -1
  334. package/src/codegen/docs.ts +60 -7
  335. package/src/codegen/rehype-base-url.d.mts +3 -1
  336. package/src/codegen/rehype-base-url.mjs +15 -9
  337. package/src/codegen/rehype-base-url.test.ts +34 -0
  338. package/src/components/auto-release.test.ts +21 -0
  339. package/src/components/auto-release.ts +6 -1
  340. package/src/components/cli-support.test.ts +82 -0
  341. package/src/components/cli-support.ts +16 -9
  342. package/src/components/driver.ts +129 -56
  343. package/src/components/fan-out-run.ts +56 -35
  344. package/src/components/pr-run.ts +30 -1
  345. package/src/components/promote-order.test.ts +90 -0
  346. package/src/components/promote-order.ts +75 -0
  347. package/src/components/promote.test.ts +10 -1
  348. package/src/components/promote.ts +26 -1
  349. package/src/components/release-compile.test.ts +147 -0
  350. package/src/components/release-compile.ts +445 -0
  351. package/src/components/release-gate.test.ts +215 -0
  352. package/src/components/release-gate.ts +341 -0
  353. package/src/components/release-promote.test.ts +159 -0
  354. package/src/components/release-promote.ts +232 -0
  355. package/src/components/run-progress.ts +7 -0
  356. package/src/components/wave-plan.ts +1 -1
  357. package/src/config.ts +7 -1
  358. package/src/index.ts +2 -0
  359. package/src/lifecycle/change-set-store.test.ts +217 -0
  360. package/src/lifecycle/change-set-store.ts +112 -0
  361. package/src/lifecycle/commit-sha.ts +23 -0
  362. package/src/lifecycle/gate-change-set.e2e.test.ts +122 -0
  363. package/src/lifecycle/gate-change-set.ts +133 -0
  364. package/src/lifecycle/gate-ledger.test.ts +33 -0
  365. package/src/lifecycle/gate-ledger.ts +66 -1
  366. package/src/lifecycle/release-cut-signed.test.ts +180 -0
  367. package/src/lifecycle/release-cut.test.ts +411 -0
  368. package/src/lifecycle/release-cut.ts +367 -0
  369. package/src/lifecycle/release-ledger.test.ts +14 -0
  370. package/src/lifecycle/release-ledger.ts +85 -17
  371. package/src/lifecycle/release-store.ts +423 -0
  372. package/src/lifecycle/run-ledger.test.ts +10 -0
  373. package/src/lifecycle/run-ledger.ts +6 -0
  374. package/src/op/activities/change-coverage.ts +4 -1
  375. package/src/op/activities/source-release.ts +8 -3
  376. package/src/op/activities/source-rollback.ts +8 -4
  377. package/src/op/commit-run-gate-deploy-join.test.ts +117 -0
  378. package/src/op/gate-name.ts +13 -3
  379. package/src/op/gate-release.test.ts +126 -0
  380. package/src/op/gate-run-locator.test.ts +110 -0
  381. package/src/op/gate-run-locator.ts +35 -0
  382. package/src/op/gate.ts +88 -6
  383. package/src/op/local-executor.ts +207 -52
  384. package/src/op/op-waves-run.ts +4 -0
  385. package/src/op/run-events.test.ts +166 -0
  386. package/src/op/run-live.ts +1 -1
  387. package/src/op/runtime.ts +39 -0
  388. package/src/op/runtimes/local.test.ts +16 -0
  389. package/src/op/runtimes/local.ts +9 -0
  390. package/src/point-decision.ts +12 -2
  391. package/src/run-event-store.test.ts +144 -0
  392. package/src/run-event-store.ts +213 -0
  393. package/src/run-event-stream.test.ts +175 -0
  394. package/src/run-event-stream.ts +306 -0
  395. package/src/run-event.test.ts +277 -0
  396. package/src/run-event.ts +451 -0
  397. package/src/wave-loop-golden.test.ts +9 -0
  398. package/src/workspace/__fixtures__/run-event-check.ts +58 -0
  399. package/src/workspace/ancestry-index.test.ts +93 -0
  400. package/src/workspace/change-set-show.schema.json +102 -0
  401. package/src/workspace/change-set-show.ts +72 -0
  402. package/src/workspace/change-set.schema.json +28 -1
  403. package/src/workspace/changes-cli.ts +10 -1
  404. package/src/workspace/changes.schema.json +135 -0
  405. package/src/workspace/changes.test.ts +1 -1
  406. package/src/workspace/changes.ts +84 -2
  407. package/src/workspace/ci-green-cli.ts +75 -13
  408. package/src/workspace/ci-green-forge.ts +24 -4
  409. package/src/workspace/ci-green-runs.test.ts +242 -0
  410. package/src/workspace/ci-green-signed.test.ts +302 -0
  411. package/src/workspace/ci-green-workflow.test.ts +16 -0
  412. package/src/workspace/ci-green-workflow.ts +12 -0
  413. package/src/workspace/ci-green.test.ts +131 -2
  414. package/src/workspace/ci-green.ts +624 -42
  415. package/src/workspace/ci-last-green.schema.json +32 -2
  416. package/src/workspace/ci-list.schema.json +525 -0
  417. package/src/workspace/commit-links.test.ts +279 -0
  418. package/src/workspace/commit-links.ts +183 -0
  419. package/src/workspace/declaration.schema.json +12 -0
  420. package/src/workspace/declaration.ts +22 -2
  421. package/src/workspace/identity-gate-rule.ts +91 -7
  422. package/src/workspace/identity.ts +14 -1
  423. package/src/workspace/intent.ts +48 -1
  424. package/src/workspace/ls.schema.json +3 -1
  425. package/src/workspace/ls.ts +6 -0
  426. package/src/workspace/member-pipeline.test.ts +17 -0
  427. package/src/workspace/member-pipeline.ts +9 -0
  428. package/src/workspace/promotion-order.ts +97 -0
  429. package/src/workspace/read-contract.e2e.test.ts +4 -1
  430. package/src/workspace/reason-codes.test.ts +2 -1
  431. package/src/workspace/reason-codes.ts +4 -1
  432. package/src/workspace/releases.schema.json +391 -0
  433. package/src/workspace/releases.test.ts +108 -0
  434. package/src/workspace/releases.ts +122 -0
  435. package/src/workspace/run-event.schema.json +288 -0
  436. package/src/workspace/status-contract.test.ts +52 -1
  437. package/src/workspace/status-gates.ts +56 -1
  438. package/src/workspace/status-stewards.ts +6 -0
  439. package/src/workspace/status.schema.json +70 -1
  440. package/src/workspace/status.ts +80 -1
  441. package/src/workspace/trust/ci-tag-statement.ts +151 -0
  442. package/src/workspace/trust/op-run-statement.ts +148 -0
  443. package/src/workspace/trust/rotation.ts +61 -14
  444. package/src/workspace/trust/seal.ts +10 -0
  445. package/src/workspace/trust/ssh-commit.ts +10 -9
  446. package/src/cli/commands/__fixtures__/init-lexicon-output/docs/astro.config.mjs +0 -14
  447. package/src/cli/commands/__fixtures__/init-lexicon-output/docs/package.json +0 -16
  448. package/src/cli/commands/__fixtures__/init-lexicon-output/docs/src/content/docs/index.mdx +0 -8
  449. package/src/cli/commands/__fixtures__/init-lexicon-output/docs/src/content.config.ts +0 -15
  450. package/src/cli/commands/__fixtures__/init-lexicon-output/docs/tsconfig.json +0 -10
@@ -46,6 +46,8 @@ const BOOLEAN_FLAGS = new Set([
46
46
  "--local",
47
47
  "--json",
48
48
  "--progress-json",
49
+ "--events-json",
50
+ "--follow",
49
51
  "--update-snapshot",
50
52
  "--update-baseline",
51
53
  "--run-examples",
@@ -69,11 +71,13 @@ const BOOLEAN_FLAGS = new Set([
69
71
  "--current",
70
72
  "--uncommitted",
71
73
  "--allow-code",
74
+ "--allow-skip",
72
75
  "--root-only",
73
76
  "--generated",
74
77
  "--decide",
75
78
  "--record-plans",
76
79
  "--loopback",
80
+ "--artifacts",
77
81
  ]);
78
82
  /**
79
83
  * Parse command line arguments
@@ -205,8 +209,9 @@ export function parseArgs(args) {
205
209
  }
206
210
  else if (arg === "--from") {
207
211
  // Shared by `migrate --from <lexicon>`, `import --from <env>`,
208
- // `components promote --from <env>` and `init --from <repo>@<ref>`;
209
- // the commands never run together, so one field carries all four.
212
+ // `components promote --from <env>`, `init --from <repo>@<ref>` and
213
+ // `ci last-green --from <rev>` (#4031); the commands never run
214
+ // together, so one field carries all five.
210
215
  result.migrateFrom = args[++i];
211
216
  }
212
217
  else if (arg === "--kustomize") {
@@ -473,6 +478,12 @@ export function parseArgs(args) {
473
478
  else if (arg === "--pr-loop") {
474
479
  result.prLoop = true;
475
480
  }
481
+ else if (arg === "--before-script") {
482
+ const line = args[++i];
483
+ if (line === undefined || line === "")
484
+ throw new Error("--before-script needs a shell line: --before-script '<line>'");
485
+ (result.beforeScript ?? (result.beforeScript = [])).push(line);
486
+ }
476
487
  else if (arg === "--resume") {
477
488
  // `chant approve <op> <gate> --resume` (#3683) takes no value; the
478
489
  // fan-out and pull-request apply take the attempt file they resume.
@@ -491,6 +502,13 @@ export function parseArgs(args) {
491
502
  else if (arg === "--progress-json") {
492
503
  result.progressJson = true;
493
504
  }
505
+ else if (arg === "--events-json") {
506
+ result.eventsJson = true;
507
+ }
508
+ else if (arg === "--follow") {
509
+ // `chant run events <run> --follow` (#4042): tail a run in progress on this host.
510
+ result.follow = true;
511
+ }
494
512
  else if (arg === "--gated-exit") {
495
513
  // `chant run <op> --gated-exit <code>` (#2243) — remap only the gated
496
514
  // outcome's exit code. Parsed as a number here and range-checked in the
@@ -661,6 +679,12 @@ export function parseArgs(args) {
661
679
  if (!result.ciAppKeySecret || result.ciAppKeySecret.startsWith("-"))
662
680
  throw new Error("--app-key-secret needs the secret holding the App's private key: --app-key-secret <NAME>");
663
681
  }
682
+ else if (arg === "--runner-key-secret") {
683
+ // `chant ci workflow --runner-key-secret <NAME>` (#4031): the secret holding the runner key the tick signs its tags with.
684
+ result.ciRunnerKeySecret = args[++i];
685
+ if (!result.ciRunnerKeySecret || result.ciRunnerKeySecret.startsWith("-"))
686
+ throw new Error("--runner-key-secret needs the repository secret holding the runner key, such as CHANT_RUNNER_KEY: --runner-key-secret <NAME>");
687
+ }
664
688
  else if (arg === "--verdict") {
665
689
  // `chant workspace records review <id> --verdict agree|dissent|abstain` (#2670)
666
690
  result.verdict = args[++i];
@@ -785,6 +809,22 @@ export function parseArgs(args) {
785
809
  else if (arg === "--release-plan") {
786
810
  result.releasePlanFile = args[++i];
787
811
  }
812
+ else if (arg === "--release") {
813
+ // `chant components promote --release <label|digest>` (#4026)
814
+ result.release = args[++i];
815
+ if (!result.release || result.release.startsWith("-"))
816
+ throw new Error("--release needs a release's label or digest: --release <label|digest>");
817
+ }
818
+ else if (arg === "--build") {
819
+ // `chant release cut --build <command>` (#4026)
820
+ result.buildCommand = args[++i];
821
+ if (!result.buildCommand)
822
+ throw new Error("--build needs a shell command: --build '<command>'");
823
+ }
824
+ else if (arg === "--artifacts") {
825
+ // `chant release compile --artifacts` (#4026, internal)
826
+ result.artifacts = true;
827
+ }
788
828
  else if (arg === "--git-sha") {
789
829
  result.gitSha = args[++i];
790
830
  }
@@ -952,11 +992,17 @@ export function parseArgs(args) {
952
992
  // only when asked to.
953
993
  result.allowCode = true;
954
994
  }
995
+ else if (arg === "--allow-skip") {
996
+ // #4030 — `chant components promote` skips a step of the member's
997
+ // declared promotion order only when asked to.
998
+ result.allowSkip = true;
999
+ }
955
1000
  else if (arg === "--source") {
956
1001
  // #2551 — `chant workspace upgrade --source <repo>[#<member>]`.
957
1002
  result.source = args[++i];
1003
+ // #4044: also `chant ci tick|list --source checks|runs`.
958
1004
  if (!result.source || result.source.startsWith("-"))
959
- throw new Error("--source needs a template: --source <repo>[#<member>]");
1005
+ throw new Error("--source needs a template: --source <repo>[#<member>] for workspace upgrade, or a source for ci tick and ci list: --source checks|runs");
960
1006
  }
961
1007
  else if (arg === "--tags") {
962
1008
  // #2551 — `chant workspace adopt-lineage --tags <glob>`, also hash-index and versions.
@@ -71,6 +71,16 @@ export interface ParsedArgs {
71
71
  * unchanged; omitted (undefined, not false) when the flag isn't passed.
72
72
  */
73
73
  progressJson?: boolean;
74
+ /**
75
+ * `--events-json` (#4041) — stream the run's events to stdout, one
76
+ * `run-event.schema.json` line each (`../../run-event.ts`), on `chant run
77
+ * <op>`, `chant run --components`, `components promote|rollback|redeploy`,
78
+ * `components fan-out` and `components pr-plan|pr-apply`. Refused beside
79
+ * `--progress-json`, which prints the older shapes to the same stdout.
80
+ */
81
+ eventsJson?: boolean;
82
+ /** `chant run events <run> --follow` (#4042) — stream the run's events as they happen, until `run-settle`. */
83
+ follow?: boolean;
74
84
  live: boolean;
75
85
  /** `chant migrate --from <name>` (default "github") */
76
86
  migrateFrom?: string;
@@ -136,6 +146,8 @@ export interface ParsedArgs {
136
146
  namespace?: string;
137
147
  /** `chant workspace upgrade --allow-code` (#2550) — run migrations whose body is the template's own code. */
138
148
  allowCode?: boolean;
149
+ /** `chant components promote --allow-skip` (#4030): promote past a step of the member's declared promotion order. */
150
+ allowSkip?: boolean;
139
151
  /** `chant workspace upgrade --source <repo>[#<member>]` (#2551): move the scope to another template. */
140
152
  source?: string;
141
153
  /** `chant workspace adopt-lineage --tags <glob>` and `hash-index --tags` (#2551): the tags to compare. */
@@ -159,15 +171,21 @@ export interface ParsedArgs {
159
171
  verbatim?: boolean;
160
172
  /** `chant import --skip-undeclarable` — import what can be declared and warn about the live objects that cannot, instead of failing */
161
173
  skipUndeclarable?: boolean;
162
- /** `chant lifecycle … --src <dir>` — build root override for lifecycle commands */
174
+ /** `chant lifecycle … --src <dir>` — build root override for lifecycle commands. Also `chant release cut --src <dir>` (#4046): the build root of a project with no components. */
163
175
  src?: string;
164
176
  /** `--env <name>` — active environment: sets CHANT_ENV so env-aware source
165
177
  * re-evaluates for that environment (`build` + `graph`), and drives policy. */
166
178
  env?: string;
167
179
  /** `chant emulator up --port <container-port>=<host-port>`, repeatable (#3673); a bare `<host-port>` when one emulator is selected. */
168
180
  port?: string[];
169
- /** `chant emulator up --image <ref>` (#3952): the image to start, when one emulator is selected. */
181
+ /**
182
+ * `chant emulator up --image <ref>` (#3952): the image to start, when one
183
+ * emulator is selected. `chant build --components --generate --image <ref>`
184
+ * (#4002): the image every generated job runs in.
185
+ */
170
186
  image?: string;
187
+ /** `chant build --components --generate --before-script <line>`, repeatable (#4002): shell lines every generated job runs before its command. */
188
+ beforeScript?: string[];
171
189
  /** `chant emulator up --network <name>` (#3952): the Docker network each started container joins. */
172
190
  network?: string;
173
191
  /** `chant emulator up --setting <KEY>=<VALUE>`, repeatable (#3952): an emulator setting such as `FLOCI_<NAME>`, passed as `-e`. */
@@ -433,6 +451,8 @@ export interface ParsedArgs {
433
451
  ciAppIdVar?: string;
434
452
  /** `chant ci workflow --app-key-secret <NAME>` (#3573): the secret holding that App's private key. */
435
453
  ciAppKeySecret?: string;
454
+ /** `chant ci workflow --runner-key-secret <NAME>` (#4031): the secret holding the runner key the tick signs its tags with. */
455
+ ciRunnerKeySecret?: string;
436
456
  /**
437
457
  * `chant workspace records review <id> --by <principal>` (#2670): the
438
458
  * reviewer, as the caller names them. Also `chant workspace records new
@@ -459,7 +479,7 @@ export interface ParsedArgs {
459
479
  prefix?: string;
460
480
  /** `chant workspace records|verify --require attested` (#2547): the provenance level a gate requires. */
461
481
  require?: string;
462
- /** `chant workspace evidence sign --key` (a runner's Ed25519 PEM) and `signers sign --key` (an ssh private key) (#2553). */
482
+ /** `chant workspace evidence sign --key` (a runner's Ed25519 PEM) and `signers sign --key` (an ssh private key) (#2553). Also `chant ci tick --key` (#4031): the runner key the tick signs its tags with. */
463
483
  key?: string;
464
484
  /** `chant workspace evidence sign --check-id <id>` (#2553): the check the evidence is for. */
465
485
  checkId?: string;
@@ -539,6 +559,12 @@ export interface ParsedArgs {
539
559
  digest?: string;
540
560
  /** `chant components release record --release-plan <file>` (ws-055, #2733) — path to a release plan JSON file, persisted content-addressed to `_plans/<digest>.json` on chant/lifecycle and read back through the read contract (`chant workspace status --json`). The plan's own `digest` field supplies `--digest` when it is omitted, and must match it when both are given. Distinct from `--plan` (#2300, below), the Op gate-approval plan digest. */
541
561
  releasePlanFile?: string;
562
+ /** `chant components promote --release <label|digest>` (#4026): deploy under that release, reading the templates its target for `--to` recorded. */
563
+ release?: string;
564
+ /** `chant release cut --build <command>` (#4026): the shell command run in the member's directory before each environment's templates are read, with `CHANT_ENV` set to the environment. */
565
+ buildCommand?: string;
566
+ /** `chant release compile --artifacts` (#4026, internal): build the artifacts of `--component` instead of compiling the environment. */
567
+ artifacts?: boolean;
542
568
  /** Every `--digest` value, in order (#2602). `chant components promote --digest <component>=<sha256:...>` is repeatable, one per component; the other commands read the single {@link digest}. */
543
569
  digests?: string[];
544
570
  /** `chant components release record --git-sha <sha>` (#568) — git commit the deploy was built from. */
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/cli/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mJAAmJ;IACnJ,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,MA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,CAAC,GAAG,EAAE,cAAc,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,UAAU,CAAC;IAChB,4FAA4F;IAC5F,QAAQ,EAAE,OAAO,CAAC;CACnB;AAWD,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,eAAe,GAAG,IAAI,CAiB/F"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * `--events-json` (#4041): a command's run-event stream on stdout, one
3
+ * `run-event.schema.json` line per event, also kept on this host for replay
4
+ * (#4042, `../run-event-store.ts`). Shared by `chant run`, the
5
+ * components commands that deploy (promote, rollback, redeploy, fan-out) and
6
+ * the pull-request loop (pr-plan, pr-apply).
7
+ */
8
+ import { type RunEventStream } from "../run-event-stream.js";
9
+ import type { RunEventKind } from "../run-event.js";
10
+ import type { ParsedArgs } from "./registry.js";
11
+ /** Refuse `--events-json` beside `--progress-json`: both print to stdout. Returns true after printing why. */
12
+ export declare function refusesBothStreams(args: Pick<ParsedArgs, "eventsJson" | "progressJson">): boolean;
13
+ /** Refuse `--events-json` beside `--json` where `--json` prints a report to stdout (pr-plan, pr-apply). Returns true after printing why. */
14
+ export declare function refusesEventsWithJson(args: Pick<ParsedArgs, "eventsJson" | "json">, report: string): boolean;
15
+ /** Writes one line to stdout. */
16
+ export declare const stdoutLine: (line: string) => void;
17
+ /**
18
+ * The run's stream on stdout when `--events-json` was passed, else
19
+ * undefined. The run is named by `runId` when the caller has one (so a
20
+ * release record and the stream name the same run), else by the CI run or a
21
+ * local id.
22
+ */
23
+ export declare function openCliRunEvents(args: Pick<ParsedArgs, "eventsJson">, run: {
24
+ kind: RunEventKind;
25
+ name: string;
26
+ runId?: string;
27
+ cwd?: string;
28
+ }): Promise<RunEventStream | undefined>;
29
+ //# sourceMappingURL=run-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-events.d.ts","sourceRoot":"","sources":["../../src/cli/run-events.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAA0C,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAClG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,8GAA8G;AAC9G,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,YAAY,GAAG,cAAc,CAAC,GAAG,OAAO,CAOjG;AAED,4IAA4I;AAC5I,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,YAAY,GAAG,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAO5G;AAED,iCAAiC;AACjC,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,IAAuC,CAAC;AAElF;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,EACpC,GAAG,EAAE;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GACtE,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAOrC"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * `--events-json` (#4041): a command's run-event stream on stdout, one
3
+ * `run-event.schema.json` line per event, also kept on this host for replay
4
+ * (#4042, `../run-event-store.ts`). Shared by `chant run`, the
5
+ * components commands that deploy (promote, rollback, redeploy, fan-out) and
6
+ * the pull-request loop (pr-plan, pr-apply).
7
+ */
8
+ import { formatError } from "./format.js";
9
+ import { openRunEventStore, teeLines } from "../run-event-store.js";
10
+ import { openRunEventStream, resolveRunEventRun } from "../run-event-stream.js";
11
+ /** Refuse `--events-json` beside `--progress-json`: both print to stdout. Returns true after printing why. */
12
+ export function refusesBothStreams(args) {
13
+ if (!args.eventsJson || !args.progressJson)
14
+ return false;
15
+ console.error(formatError({
16
+ message: "--events-json and --progress-json both stream to stdout",
17
+ hint: "Pass one. --events-json prints the run-event stream; --progress-json prints the older progress lines.",
18
+ }));
19
+ return true;
20
+ }
21
+ /** Refuse `--events-json` beside `--json` where `--json` prints a report to stdout (pr-plan, pr-apply). Returns true after printing why. */
22
+ export function refusesEventsWithJson(args, report) {
23
+ if (!args.eventsJson || !args.json)
24
+ return false;
25
+ console.error(formatError({
26
+ message: "--events-json and --json both stream to stdout",
27
+ hint: `Pass one. --events-json prints the run-event stream; --json prints ${report}.`,
28
+ }));
29
+ return true;
30
+ }
31
+ /** Writes one line to stdout. */
32
+ export const stdoutLine = (line) => void process.stdout.write(line);
33
+ /**
34
+ * The run's stream on stdout when `--events-json` was passed, else
35
+ * undefined. The run is named by `runId` when the caller has one (so a
36
+ * release record and the stream name the same run), else by the CI run or a
37
+ * local id.
38
+ */
39
+ export async function openCliRunEvents(args, run) {
40
+ if (!args.eventsJson)
41
+ return undefined;
42
+ const resolved = await resolveRunEventRun(run);
43
+ // #4042: the stream is also kept on this host, so `chant run events <run>`
44
+ // replays it. Only a command that was asked for a stream keeps one.
45
+ const store = await openRunEventStore(run.cwd ?? process.cwd(), resolved.runId);
46
+ return openRunEventStream(resolved, teeLines(stdoutLine, store?.write.bind(store)));
47
+ }
@@ -1,8 +1,6 @@
1
1
  /**
2
- * The installed chant's version, read from `@intentius/chant`'s own
3
- * package.json, or "0.0.0" when it can't be read. The path is the same from
4
- * `src/cli/` and `dist/cli/`, so it holds whether chant runs from source or
5
- * from its build.
2
+ * The installed chant's version. It lives in `../chant-version.ts`, outside
3
+ * `cli/`, so the Op entry can name it without loading the CLI (#4041).
6
4
  */
7
- export declare const CHANT_VERSION: string;
5
+ export { CHANT_VERSION } from "../chant-version.js";
8
6
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/cli/version.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,MAMxB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/cli/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,15 +1,5 @@
1
- import { createRequire } from "node:module";
2
1
  /**
3
- * The installed chant's version, read from `@intentius/chant`'s own
4
- * package.json, or "0.0.0" when it can't be read. The path is the same from
5
- * `src/cli/` and `dist/cli/`, so it holds whether chant runs from source or
6
- * from its build.
2
+ * The installed chant's version. It lives in `../chant-version.ts`, outside
3
+ * `cli/`, so the Op entry can name it without loading the CLI (#4041).
7
4
  */
8
- export const CHANT_VERSION = (() => {
9
- try {
10
- return createRequire(import.meta.url)("../../package.json").version ?? "0.0.0";
11
- }
12
- catch {
13
- return "0.0.0";
14
- }
15
- })();
5
+ export { CHANT_VERSION } from "../chant-version.js";
@@ -0,0 +1,71 @@
1
+ /**
2
+ * The in-site mode of the lexicon docs pipeline (chant #3993).
3
+ *
4
+ * Inside the chant repository every lexicon's docs are a section of the main
5
+ * Starlight site in `docs/`: one Astro build, one search index, one design.
6
+ * `writeDocsSite` writes a lexicon's pages to
7
+ * `docs/src/content/docs/lexicons/<name>/` and, beside them, `_sidebar.json`,
8
+ * the lexicon's collapsed sidebar group with its Diátaxis subgroups. The main
9
+ * site's `astro.config.mjs` reads every fragment through
10
+ * `docs/src/lexicon-sidebar.mjs`. Nothing else is written: no package.json, no
11
+ * Astro config, no components.
12
+ *
13
+ * Outside the repository (a third-party lexicon, a project scaffolded by
14
+ * `chant init-lexicon`) the pipeline keeps writing a standalone Starlight app
15
+ * into the lexicon's own `docs/`, as it always has.
16
+ */
17
+ import type { DocsConfig, DocsResult, Quadrant } from "./docs-types.js";
18
+ export type DocsSiteMode = "in-site" | "standalone";
19
+ /**
20
+ * The dependencies a standalone lexicon docs app installs. They match
21
+ * `docs/package.json`, so a lexicon built on its own renders with the same
22
+ * Starlight and Astro as the main site; a test holds the two together.
23
+ */
24
+ export declare const DOCS_SITE_DEPENDENCIES: Readonly<Record<string, string>>;
25
+ /**
26
+ * The chant repository's main docs site (`<repo>/docs`) above `start`, or
27
+ * undefined. A directory qualifies when its `docs/package.json` is the chant
28
+ * docs package and `docs/astro.config.mjs` exists beside it, so a third-party
29
+ * repository with a docs site of its own is never mistaken for chant.
30
+ */
31
+ export declare function findChantDocsSite(start: string): string | undefined;
32
+ /**
33
+ * Which mode `writeDocsSite` runs in, and the main site's directory for
34
+ * in-site mode. `config.mode` wins, then `CHANT_DOCS_MODE`; with neither, a
35
+ * lexicon inside the chant repository goes in-site and any other standalone.
36
+ * `config.siteDir` or `CHANT_DOCS_SITE` names the main site when the walk up
37
+ * from `outDir` would not find it.
38
+ */
39
+ export declare function resolveDocsMode(config: DocsConfig): {
40
+ mode: DocsSiteMode;
41
+ siteDir?: string;
42
+ };
43
+ /** Where a lexicon's section lives inside the main site's content collection. */
44
+ export declare function sectionContentDir(siteDir: string, name: string): string;
45
+ /**
46
+ * The lexicon's sidebar group for the main site: the lexicon's display name,
47
+ * collapsed, holding its overview and one collapsed group per non-empty
48
+ * Diátaxis quadrant. Slugs are prefixed with `lexicons/<name>/`.
49
+ */
50
+ export declare function buildSectionGroup(config: DocsConfig, result: DocsResult): Record<string, unknown>;
51
+ /** Slugs of pages written but kept out of the sidebar, prefixed for the main site. */
52
+ export declare function hiddenSectionSlugs(config: DocsConfig, result: DocsResult): string[];
53
+ /**
54
+ * Give a page the `diataxis` field of the quadrant the sidebar files it under,
55
+ * when it has none. Authored pages always carry one; the generated reference
56
+ * tables do not, and the main site's Diátaxis check reads the field.
57
+ */
58
+ export declare function withQuadrant(content: string, quadrant: Quadrant | undefined): string;
59
+ /**
60
+ * Re-point a page's relative ESM imports from where the standalone app kept
61
+ * the page (`<outDir>/src/content/docs/`) to where the main site keeps it.
62
+ * An import of the app's own components (`<outDir>/src/components/X`) goes to
63
+ * the main site's `src/components/X`, which holds the one shared copy.
64
+ * Fenced code blocks are left alone; their `import` lines are examples.
65
+ */
66
+ export declare function rebaseImports(content: string, opts: {
67
+ outDir: string;
68
+ siteDir: string;
69
+ pageDir: string;
70
+ }): string;
71
+ //# sourceMappingURL=docs-in-site.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docs-in-site.d.ts","sourceRoot":"","sources":["../../src/codegen/docs-in-site.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAOH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAe,MAAM,cAAc,CAAC;AAElF,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,YAAY,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAInE,CAAC;AAKF;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAgBnE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAe5F;AAED,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAEvE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAgBjG;AAWD,sFAAsF;AACtF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,CAOnF;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAMpF;AAID;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAwBjH"}
@@ -0,0 +1,177 @@
1
+ /**
2
+ * The in-site mode of the lexicon docs pipeline (chant #3993).
3
+ *
4
+ * Inside the chant repository every lexicon's docs are a section of the main
5
+ * Starlight site in `docs/`: one Astro build, one search index, one design.
6
+ * `writeDocsSite` writes a lexicon's pages to
7
+ * `docs/src/content/docs/lexicons/<name>/` and, beside them, `_sidebar.json`,
8
+ * the lexicon's collapsed sidebar group with its Diátaxis subgroups. The main
9
+ * site's `astro.config.mjs` reads every fragment through
10
+ * `docs/src/lexicon-sidebar.mjs`. Nothing else is written: no package.json, no
11
+ * Astro config, no components.
12
+ *
13
+ * Outside the repository (a third-party lexicon, a project scaffolded by
14
+ * `chant init-lexicon`) the pipeline keeps writing a standalone Starlight app
15
+ * into the lexicon's own `docs/`, as it always has.
16
+ */
17
+ import { existsSync, readFileSync } from "fs";
18
+ import { dirname, join, relative, resolve, sep } from "path";
19
+ import { QUADRANT_LABELS, QUADRANTS } from "./docs-pages.js";
20
+ import { quadrantItems } from "./docs-sidebar.js";
21
+ /**
22
+ * The dependencies a standalone lexicon docs app installs. They match
23
+ * `docs/package.json`, so a lexicon built on its own renders with the same
24
+ * Starlight and Astro as the main site; a test holds the two together.
25
+ */
26
+ export const DOCS_SITE_DEPENDENCIES = {
27
+ "@astrojs/starlight": "^0.37.6",
28
+ astro: "5.6.1",
29
+ sharp: "^0.34.2",
30
+ };
31
+ /** Package name of the main docs site, `docs/package.json` in the chant repository. */
32
+ const CHANT_DOCS_PACKAGE = "@intentius/chant-docs";
33
+ /**
34
+ * The chant repository's main docs site (`<repo>/docs`) above `start`, or
35
+ * undefined. A directory qualifies when its `docs/package.json` is the chant
36
+ * docs package and `docs/astro.config.mjs` exists beside it, so a third-party
37
+ * repository with a docs site of its own is never mistaken for chant.
38
+ */
39
+ export function findChantDocsSite(start) {
40
+ let dir = resolve(start);
41
+ for (;;) {
42
+ const docs = join(dir, "docs");
43
+ const pkg = join(docs, "package.json");
44
+ if (existsSync(pkg) && existsSync(join(docs, "astro.config.mjs"))) {
45
+ try {
46
+ if (JSON.parse(readFileSync(pkg, "utf-8")).name === CHANT_DOCS_PACKAGE)
47
+ return docs;
48
+ }
49
+ catch {
50
+ // Not JSON: not chant's docs site. Keep walking.
51
+ }
52
+ }
53
+ const parent = dirname(dir);
54
+ if (parent === dir)
55
+ return undefined;
56
+ dir = parent;
57
+ }
58
+ }
59
+ /**
60
+ * Which mode `writeDocsSite` runs in, and the main site's directory for
61
+ * in-site mode. `config.mode` wins, then `CHANT_DOCS_MODE`; with neither, a
62
+ * lexicon inside the chant repository goes in-site and any other standalone.
63
+ * `config.siteDir` or `CHANT_DOCS_SITE` names the main site when the walk up
64
+ * from `outDir` would not find it.
65
+ */
66
+ export function resolveDocsMode(config) {
67
+ const env = process.env.CHANT_DOCS_MODE;
68
+ const requested = config.mode ?? (env === "in-site" || env === "standalone" ? env : undefined);
69
+ if (requested === "standalone")
70
+ return { mode: "standalone" };
71
+ const siteDir = config.siteDir || process.env.CHANT_DOCS_SITE || findChantDocsSite(config.outDir);
72
+ if (requested === "in-site") {
73
+ if (!siteDir) {
74
+ throw new Error(`[docs:${config.name}] in-site mode needs the chant docs site: none above ${resolve(config.outDir)}. ` +
75
+ `Set siteDir or CHANT_DOCS_SITE, or use standalone mode.`);
76
+ }
77
+ return { mode: "in-site", siteDir: resolve(siteDir) };
78
+ }
79
+ return siteDir ? { mode: "in-site", siteDir: resolve(siteDir) } : { mode: "standalone" };
80
+ }
81
+ /** Where a lexicon's section lives inside the main site's content collection. */
82
+ export function sectionContentDir(siteDir, name) {
83
+ return join(siteDir, "src", "content", "docs", "lexicons", name);
84
+ }
85
+ /**
86
+ * The lexicon's sidebar group for the main site: the lexicon's display name,
87
+ * collapsed, holding its overview and one collapsed group per non-empty
88
+ * Diátaxis quadrant. Slugs are prefixed with `lexicons/<name>/`.
89
+ */
90
+ export function buildSectionGroup(config, result) {
91
+ const prefix = `lexicons/${config.name}`;
92
+ const byQuadrant = new Map();
93
+ for (const page of result.sidebarPages) {
94
+ if (page.hidden)
95
+ continue;
96
+ const list = byQuadrant.get(page.quadrant) ?? [];
97
+ list.push({ ...page, slug: `${prefix}/${page.slug}` });
98
+ byQuadrant.set(page.quadrant, list);
99
+ }
100
+ const items = [{ label: "Overview", slug: prefix }];
101
+ for (const q of QUADRANTS) {
102
+ const pages = byQuadrant.get(q);
103
+ if (!pages || pages.length === 0)
104
+ continue;
105
+ items.push({ label: QUADRANT_LABELS[q], collapsed: true, items: collapseGroups(quadrantItems(pages)) });
106
+ }
107
+ return { label: config.displayName, collapsed: true, items };
108
+ }
109
+ /** Every nested group starts collapsed, as on the rest of the main site. */
110
+ function collapseGroups(items) {
111
+ return items.map((item) => Array.isArray(item.items)
112
+ ? { label: item.label, collapsed: true, items: collapseGroups(item.items) }
113
+ : item);
114
+ }
115
+ /** Slugs of pages written but kept out of the sidebar, prefixed for the main site. */
116
+ export function hiddenSectionSlugs(config, result) {
117
+ const listed = new Set(result.sidebarPages.map((p) => p.slug));
118
+ return [...result.pages.keys()]
119
+ .map((f) => f.replace(/\.mdx?$/, ""))
120
+ .filter((slug) => slug !== "index" && !listed.has(slug))
121
+ .sort()
122
+ .map((slug) => `lexicons/${config.name}/${slug}`);
123
+ }
124
+ /**
125
+ * Give a page the `diataxis` field of the quadrant the sidebar files it under,
126
+ * when it has none. Authored pages always carry one; the generated reference
127
+ * tables do not, and the main site's Diátaxis check reads the field.
128
+ */
129
+ export function withQuadrant(content, quadrant) {
130
+ if (!quadrant || !content.startsWith("---\n"))
131
+ return content;
132
+ const end = content.indexOf("\n---", 4);
133
+ if (end === -1)
134
+ return content;
135
+ if (/^diataxis:/m.test(content.slice(4, end)))
136
+ return content;
137
+ return `${content.slice(0, end)}\ndiataxis: ${quadrant}${content.slice(end)}`;
138
+ }
139
+ const IMPORT_RE = /^(\s*import\s[^'"]*?\sfrom\s+|\s*import\s+)(['"])(\.\.?\/[^'"]+)\2(.*)$/;
140
+ /**
141
+ * Re-point a page's relative ESM imports from where the standalone app kept
142
+ * the page (`<outDir>/src/content/docs/`) to where the main site keeps it.
143
+ * An import of the app's own components (`<outDir>/src/components/X`) goes to
144
+ * the main site's `src/components/X`, which holds the one shared copy.
145
+ * Fenced code blocks are left alone; their `import` lines are examples.
146
+ */
147
+ export function rebaseImports(content, opts) {
148
+ const fromDir = join(resolve(opts.outDir), "src", "content", "docs");
149
+ const appComponents = join(resolve(opts.outDir), "src", "components") + sep;
150
+ const siteComponents = join(opts.siteDir, "src", "components");
151
+ let fence = null;
152
+ return content
153
+ .split("\n")
154
+ .map((line) => {
155
+ const marker = line.match(/^\s*(`{3,}|~{3,})/)?.[1];
156
+ if (marker) {
157
+ if (fence === null)
158
+ fence = marker[0];
159
+ else if (marker[0] === fence)
160
+ fence = null;
161
+ return line;
162
+ }
163
+ if (fence !== null)
164
+ return line;
165
+ const m = line.match(IMPORT_RE);
166
+ if (!m)
167
+ return line;
168
+ let target = resolve(fromDir, m[3]);
169
+ if (target.startsWith(appComponents))
170
+ target = join(siteComponents, target.slice(appComponents.length));
171
+ let spec = relative(opts.pageDir, target).split(sep).join("/");
172
+ if (!spec.startsWith("."))
173
+ spec = `./${spec}`;
174
+ return `${m[1]}${m[2]}${spec}${m[2]}${m[4]}`;
175
+ })
176
+ .join("\n");
177
+ }
@@ -40,8 +40,21 @@ export interface DocsConfig {
40
40
  suppressPages?: string[];
41
41
  /** Source directory for scanning rule files (defaults to srcDir sibling of distDir) */
42
42
  srcDir?: string;
43
- /** Base path for the generated Astro site (e.g. '/lexicons/aws/') */
43
+ /** Base path for the generated Astro site (e.g. '/lexicons/aws/'). Standalone mode only. */
44
44
  basePath?: string;
45
+ /**
46
+ * Where `writeDocsSite` writes (chant #3993). `in-site`: the lexicon's pages
47
+ * and sidebar fragment go into the chant repository's main docs site.
48
+ * `standalone`: a Starlight app of its own in `outDir`. Unset, the
49
+ * `CHANT_DOCS_MODE` environment variable decides, and without it a lexicon
50
+ * inside the chant repository goes in-site and any other standalone.
51
+ */
52
+ mode?: "in-site" | "standalone";
53
+ /**
54
+ * The main docs site (`<chant repo>/docs`) for in-site mode. Defaults to
55
+ * `CHANT_DOCS_SITE`, then to the first one found walking up from `outDir`.
56
+ */
57
+ siteDir?: string;
45
58
  /** Root directory for resolving {{file:...}} markers in extra page content */
46
59
  examplesDir?: string;
47
60
  /**