@roomi-fields/grillhouse 0.29.0 → 0.31.0

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 (263) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +769 -0
  3. package/agents/developpeur.md +0 -1
  4. package/agents/explorateur.md +0 -1
  5. package/agents/questionneur.md +0 -1
  6. package/agents/testwriter.md +0 -1
  7. package/bin/grillhouse.mjs +79 -18
  8. package/cadre/templates/projet/.github/workflows/ci.yml +2 -13
  9. package/cadre/templates/projet/CLAUDE.md +5 -1
  10. package/cadre/templates/projet/docs/agents/issue-tracker.md +1 -1
  11. package/cadre/templates/projet/package.json +2 -2
  12. package/charte.md +24 -0
  13. package/dist/temporal/acte.d.ts +24 -0
  14. package/dist/temporal/acte.js +139 -0
  15. package/dist/temporal/acte.js.map +1 -0
  16. package/dist/temporal/attributs.d.ts +6 -0
  17. package/dist/temporal/attributs.js +15 -0
  18. package/dist/temporal/attributs.js.map +1 -0
  19. package/dist/temporal/circuit/activites.d.ts +13 -0
  20. package/dist/temporal/circuit/activites.js +33 -0
  21. package/dist/temporal/circuit/activites.js.map +1 -0
  22. package/dist/temporal/circuit/client.d.ts +72 -0
  23. package/dist/temporal/circuit/client.js +247 -0
  24. package/dist/temporal/circuit/client.js.map +1 -0
  25. package/dist/temporal/circuit/commande.d.ts +2 -0
  26. package/dist/temporal/circuit/commande.js +238 -0
  27. package/dist/temporal/circuit/commande.js.map +1 -0
  28. package/dist/temporal/circuit/contrat.d.ts +305 -0
  29. package/dist/temporal/circuit/contrat.js +30 -0
  30. package/dist/temporal/circuit/contrat.js.map +1 -0
  31. package/dist/temporal/circuit/deroule.d.ts +3 -0
  32. package/dist/temporal/circuit/deroule.js +540 -0
  33. package/dist/temporal/circuit/deroule.js.map +1 -0
  34. package/dist/temporal/client.d.ts +47 -0
  35. package/dist/temporal/client.js +69 -0
  36. package/dist/temporal/client.js.map +1 -0
  37. package/dist/temporal/commande.d.ts +2 -0
  38. package/dist/temporal/commande.js +94 -0
  39. package/dist/temporal/commande.js.map +1 -0
  40. package/dist/temporal/deroules.d.ts +5 -0
  41. package/dist/temporal/deroules.js +10 -0
  42. package/dist/temporal/deroules.js.map +1 -0
  43. package/dist/temporal/etat.d.ts +33 -0
  44. package/dist/temporal/etat.js +59 -0
  45. package/dist/temporal/etat.js.map +1 -0
  46. package/dist/temporal/file/activites.d.ts +10 -0
  47. package/dist/temporal/file/activites.js +25 -0
  48. package/dist/temporal/file/activites.js.map +1 -0
  49. package/dist/temporal/file/client.d.ts +4 -0
  50. package/dist/temporal/file/client.js +6 -0
  51. package/dist/temporal/file/client.js.map +1 -0
  52. package/dist/temporal/file/contrat.d.ts +158 -0
  53. package/dist/temporal/file/contrat.js +14 -0
  54. package/dist/temporal/file/contrat.js.map +1 -0
  55. package/dist/temporal/file/deroule.d.ts +15 -0
  56. package/dist/temporal/file/deroule.js +235 -0
  57. package/dist/temporal/file/deroule.js.map +1 -0
  58. package/dist/temporal/installation.d.ts +120 -0
  59. package/dist/temporal/installation.js +386 -0
  60. package/dist/temporal/installation.js.map +1 -0
  61. package/dist/temporal/places/activites.d.ts +8 -0
  62. package/dist/temporal/places/activites.js +13 -0
  63. package/dist/temporal/places/activites.js.map +1 -0
  64. package/dist/temporal/places/client.d.ts +28 -0
  65. package/dist/temporal/places/client.js +64 -0
  66. package/dist/temporal/places/client.js.map +1 -0
  67. package/dist/temporal/places/contrat.d.ts +106 -0
  68. package/dist/temporal/places/contrat.js +21 -0
  69. package/dist/temporal/places/contrat.js.map +1 -0
  70. package/dist/temporal/places/deroule.d.ts +3 -0
  71. package/dist/temporal/places/deroule.js +198 -0
  72. package/dist/temporal/places/deroule.js.map +1 -0
  73. package/dist/temporal/sonde/activites.d.ts +6 -0
  74. package/dist/temporal/sonde/activites.js +52 -0
  75. package/dist/temporal/sonde/activites.js.map +1 -0
  76. package/dist/temporal/sonde/contrat.d.ts +35 -0
  77. package/dist/temporal/sonde/contrat.js +10 -0
  78. package/dist/temporal/sonde/contrat.js.map +1 -0
  79. package/dist/temporal/sonde/deroule.d.ts +3 -0
  80. package/dist/temporal/sonde/deroule.js +39 -0
  81. package/dist/temporal/sonde/deroule.js.map +1 -0
  82. package/dist/temporal/tickets/activites.d.ts +7 -0
  83. package/dist/temporal/tickets/activites.js +81 -0
  84. package/dist/temporal/tickets/activites.js.map +1 -0
  85. package/dist/temporal/tickets/client.d.ts +10 -0
  86. package/dist/temporal/tickets/client.js +31 -0
  87. package/dist/temporal/tickets/client.js.map +1 -0
  88. package/dist/temporal/tickets/contrat.d.ts +56 -0
  89. package/dist/temporal/tickets/contrat.js +13 -0
  90. package/dist/temporal/tickets/contrat.js.map +1 -0
  91. package/dist/temporal/tickets/deroule.d.ts +3 -0
  92. package/dist/temporal/tickets/deroule.js +94 -0
  93. package/dist/temporal/tickets/deroule.js.map +1 -0
  94. package/dist/temporal/travailleur.d.ts +2 -0
  95. package/dist/temporal/travailleur.js +69 -0
  96. package/dist/temporal/travailleur.js.map +1 -0
  97. package/docs/ARCHITECTURE.md +646 -87
  98. package/docs/CADRE.md +27 -0
  99. package/docs/INTERFACE.md +139 -42
  100. package/hooks/crochet.mjs +19 -2
  101. package/hooks/hooks.json +11 -0
  102. package/package.json +16 -4
  103. package/scripts/activites.mjs +2255 -0
  104. package/scripts/aiguillage.d.mts +37 -0
  105. package/scripts/aiguillage.mjs +40 -14
  106. package/scripts/avancement.mjs +155 -26
  107. package/scripts/bilan.mjs +137 -43
  108. package/scripts/cadre.mjs +16 -4
  109. package/scripts/circuit.mjs +993 -4075
  110. package/scripts/circuits-cles.d.mts +4 -0
  111. package/scripts/circuits-cles.mjs +21 -0
  112. package/scripts/circuits-du-serveur.mjs +105 -0
  113. package/scripts/codes-de-sortie.mjs +9 -0
  114. package/scripts/commandes-composees.mjs +45 -41
  115. package/scripts/commandes-du-path.d.mts +7 -0
  116. package/scripts/commandes-du-path.mjs +25 -0
  117. package/scripts/composants-affectes.mjs +64 -21
  118. package/scripts/composition-des-langages.mjs +18 -12
  119. package/scripts/conformite.mjs +56 -28
  120. package/scripts/copies-finies.mjs +52 -47
  121. package/scripts/depart-du-ticket.d.mts +53 -0
  122. package/scripts/depart-du-ticket.mjs +124 -0
  123. package/scripts/dependances-internes.mjs +121 -0
  124. package/scripts/dernier-vert.mjs +61 -34
  125. package/scripts/dette.mjs +32 -11
  126. package/scripts/donnees-cles.mjs +244 -0
  127. package/scripts/droits.mjs +51 -16
  128. package/scripts/effets.mjs +352 -0
  129. package/scripts/empreinte-d-etape.mjs +17 -0
  130. package/scripts/engendres.mjs +15 -5
  131. package/scripts/enveloppe/enveloppe.mjs +259 -55
  132. package/scripts/enveloppe/lancer.sh +14 -18
  133. package/scripts/enveloppe/paquets-du-plan.mjs +2 -2
  134. package/scripts/enveloppe/travail-de-la-copie.mjs +41 -13
  135. package/scripts/etapes.mjs +5 -2
  136. package/scripts/faits-du-circuit.mjs +493 -0
  137. package/scripts/file-des-tickets.d.mts +21 -0
  138. package/scripts/file-des-tickets.mjs +58 -0
  139. package/scripts/flux-des-paquets.mjs +201 -0
  140. package/scripts/gardes-du-cadre.mjs +21 -5
  141. package/scripts/init.mjs +11 -4
  142. package/scripts/integration/file.mjs +544 -434
  143. package/scripts/integration/integrer.mjs +87 -43
  144. package/scripts/integration/rejeu.mjs +45 -13
  145. package/scripts/jointure.d.ts +151 -28
  146. package/scripts/langages/cargo/commandes.mjs +383 -124
  147. package/scripts/langages/cargo/composants.mjs +154 -42
  148. package/scripts/langages/cargo/exemples.mjs +12 -21
  149. package/scripts/langages/cargo/index.mjs +22 -8
  150. package/scripts/langages/cargo/sccache.mjs +8 -14
  151. package/scripts/langages/cargo/tests-de-head.mjs +25 -9
  152. package/scripts/langages/python/commandes.mjs +218 -100
  153. package/scripts/langages/python/composants.mjs +53 -21
  154. package/scripts/langages/python/exemples.mjs +6 -16
  155. package/scripts/langages/python/index.mjs +28 -8
  156. package/scripts/langages/python/lot.mjs +1 -36
  157. package/scripts/langages/typescript/chemins-des-tests.mjs +6 -2
  158. package/scripts/langages/typescript/composants.mjs +9 -3
  159. package/scripts/langages/typescript/consommateurs-arbitres.mjs +40 -14
  160. package/scripts/langages/typescript/consommateurs.mjs +39 -14
  161. package/scripts/langages/typescript/construire.mjs +6 -163
  162. package/scripts/langages/typescript/elements-du-lot.mjs +36 -12
  163. package/scripts/langages/typescript/exemples.mjs +3 -11
  164. package/scripts/langages/typescript/frontieres.mjs +66 -22
  165. package/scripts/langages/typescript/index-interfaces.mjs +36 -13
  166. package/scripts/langages/typescript/index.mjs +50 -61
  167. package/scripts/langages/typescript/interfaces-contre-code.mjs +113 -45
  168. package/scripts/langages/typescript/lecteurs.mjs +36 -11
  169. package/scripts/langages/typescript/migrations/0.23.0-config-vitest.mjs +15 -5
  170. package/scripts/langages/typescript/migrations/0.25.0-chemins-des-tests.mjs +6 -2
  171. package/scripts/langages/typescript/migrations/0.25.0-tailles-des-tests.mjs +6 -2
  172. package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +63 -0
  173. package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +33 -0
  174. package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +40 -0
  175. package/scripts/langages/typescript/mise-a-jour.mjs +1 -2
  176. package/scripts/langages/typescript/parcours.mjs +12 -4
  177. package/scripts/langages/typescript/regle-des-tests.mjs +9 -3
  178. package/scripts/langages/typescript/resumes.mjs +9 -3
  179. package/scripts/langages/typescript/tailles-des-tests.mjs +93 -20
  180. package/scripts/langages/typescript/tests-de-nuit.mjs +15 -10
  181. package/scripts/langages/typescript/tests.mjs +40 -15
  182. package/scripts/langages/typescript/titres-de-tests.mjs +320 -0
  183. package/scripts/langages/typescript/turbo-des-paquets.mjs +327 -81
  184. package/scripts/langages/typescript/verdict.mjs +4 -2
  185. package/scripts/langages/typescript/verifier.mjs +58 -20
  186. package/scripts/langages/typescript/vitest-config/avancement.reporter.mjs +15 -5
  187. package/scripts/langages/typescript/vitest-config/base.mjs +29 -3
  188. package/scripts/langages/typescript/vitest-config/bornes.mjs +13 -0
  189. package/scripts/langages/typescript/vitest-config/changements.mjs +21 -8
  190. package/scripts/langages/typescript/vitest-config/cibles.mjs +36 -14
  191. package/scripts/langages/typescript/vitest-config/delais.mjs +60 -0
  192. package/scripts/langages/typescript/vitest-config/delais.setup.mjs +11 -0
  193. package/scripts/langages/typescript/vitest-config/duree.classement.mjs +108 -0
  194. package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +56 -59
  195. package/scripts/langages/typescript/vitest-config/lances.mjs +83 -27
  196. package/scripts/langages/typescript/vitest-config/machine.setup.mjs +10 -0
  197. package/scripts/langages/typescript/vitest-config/resultats.mjs +3 -1
  198. package/scripts/langages/typescript/vitest.nuit.config.mjs +4 -0
  199. package/scripts/lint-des-scripts.mjs +58 -0
  200. package/scripts/mesure/base-de-passe.mjs +117 -25
  201. package/scripts/mesure/pression.mjs +12 -6
  202. package/scripts/mesure-de-la-machine.d.mts +21 -0
  203. package/scripts/mesure-de-la-machine.mjs +76 -0
  204. package/scripts/migrations/0.23.0-charte-importee.mjs +6 -2
  205. package/scripts/migrations/0.23.0-crochets-de-seance.mjs +25 -8
  206. package/scripts/migrations/0.23.0-marche-du-projet.mjs +18 -6
  207. package/scripts/migrations/0.23.2-copies-du-cadre.mjs +56 -18
  208. package/scripts/migrations/0.24.12-tri-des-decouvertes.mjs +6 -2
  209. package/scripts/migrations/0.25.0-script-des-tests.mjs +15 -5
  210. package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +124 -0
  211. package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +81 -0
  212. package/scripts/migrations.mjs +5 -0
  213. package/scripts/nuit.sh +25 -3
  214. package/scripts/outil.mjs +3 -1
  215. package/scripts/outils-cles.d.mts +24 -0
  216. package/scripts/outils-cles.mjs +18 -8
  217. package/scripts/paquet-npm.mjs +157 -0
  218. package/scripts/paquet.mjs +73 -4
  219. package/scripts/paquets.mjs +46 -10
  220. package/scripts/passe-de-la-machine.mjs +71 -0
  221. package/scripts/places-de-la-machine.mjs +414 -0
  222. package/scripts/places-du-serveur.mjs +170 -0
  223. package/scripts/prefixe-des-tickets.mjs +68 -0
  224. package/scripts/preparation.mjs +25 -8
  225. package/scripts/registre.mjs +9 -4
  226. package/scripts/regles-des-places.d.mts +36 -0
  227. package/scripts/regles-des-places.mjs +70 -0
  228. package/scripts/reponses-du-circuit.d.mts +6 -0
  229. package/scripts/reponses-du-circuit.mjs +28 -0
  230. package/scripts/reprise.mjs +66 -0
  231. package/scripts/resultats.mjs +112 -46
  232. package/scripts/retirer-les-copies-finies.mjs +25 -0
  233. package/scripts/sans-reponse.d.mts +4 -0
  234. package/scripts/sans-reponse.mjs +13 -0
  235. package/scripts/seances.mjs +936 -0
  236. package/scripts/services-du-noyau.mjs +27 -8
  237. package/scripts/session-start.sh +2 -2
  238. package/scripts/sortie.mjs +3 -3
  239. package/scripts/sous-commandes.mjs +41 -10
  240. package/scripts/style-a-l-ecriture.mjs +260 -0
  241. package/scripts/superviseur.mjs +122 -111
  242. package/scripts/tableau.mjs +180 -117
  243. package/scripts/taches-du-graphe.mjs +348 -0
  244. package/scripts/ticket-du-circuit.mjs +216 -0
  245. package/scripts/transitions.d.mts +148 -0
  246. package/scripts/transitions.mjs +1018 -0
  247. package/scripts/verrou-de-fichier.mjs +8 -4
  248. package/scripts/verrou-de-machine.mjs +150 -51
  249. package/scripts/verrous/commande.mjs +50 -17
  250. package/scripts/verrous/ticket-du-sous-agent.mjs +9 -3
  251. package/scripts/verrous/verrou.mjs +42 -14
  252. package/skills/explorateur/SKILL.md +9 -2
  253. package/skills/grill/SKILL.md +1 -1
  254. package/skills/mesure/SKILL.md +3 -0
  255. package/skills/pitmaster/SKILL.md +17 -18
  256. package/skills/pitmaster/references/consigne-agent.md +5 -1
  257. package/skills/release/SKILL.md +3 -3
  258. package/skills/relecteur/SKILL.md +5 -3
  259. package/skills/testwriter/SKILL.md +49 -31
  260. package/scripts/demon.mjs +0 -251
  261. package/scripts/integration/file-attente.mjs +0 -61
  262. package/scripts/langages/cargo/touches.mjs +0 -93
  263. package/scripts/langages/typescript/script-des-tests.mjs +0 -6
@@ -226,40 +226,52 @@ export interface Composition {
226
226
  matieres(racine: string): Composant[];
227
227
  /** Whether the component plays tests: the runner of the language has tests to play in it. */
228
228
  joueDesTests(racine: string, composant: Composant): boolean;
229
+ /** The hashes of the inputs of the tests tasks of the components `noms` (their package names)
230
+ * and of their dependents, `{ <paquet>: <hash> }`, as the task runner plans them (the hash of a
231
+ * task covers the content of the files it reads and of what it waits for); null when the runner
232
+ * gives no plan. The fingerprint of a step of the circuit reads them. */
233
+ empreintes(racine: string, noms: string[]): Record<string, string> | null;
229
234
  lecteurs(
230
235
  racine: string,
231
236
  o: { composants: Composant[]; noms: string[]; texte: string; nommes: Composant[] }
232
237
  ): Lecteurs;
233
- touches(
234
- racine: string,
235
- o: { depuis: string }
236
- ): { touches: Composant[]; dependants: Composant[]; horsGraphe: string[] };
237
238
  elementsDuLot(racine: string, o: { avant: string; apres: string }): ElementsDuLot;
238
239
  commandes(
239
240
  racine: string
240
241
  ): { tester: Commande; verifier: Commande; typer: Commande } & Record<string, Commande>;
241
242
  verdict(dossier: string): { rapports: RapportDeTest[]; taches: TacheJouee[] };
242
243
  estUnTest(chemin: string, racine: string): ClasseDeTest;
243
- /** The sibling of HEAD's version of the test file `chemin` (from `racine`), from the root: a
244
- * file beside it, a test the module's tool plays in the same run as it, its tests named in the
245
- * run's report as the file's, of its class (day, night, bench), which the proof of the red
246
- * writes, plays and removes; null for a file the tool cannot play twice in a run (cargo: a
247
- * target `tests/<dossier>/main.rs`, a unit test of `src/`: `testsDeHead`) or does not play. */
248
- soeurDAvant(chemin: string, racine: string): string | null;
244
+ /** Whether the test file `chemin` (from `racine`) is out of the day, one that only the night
245
+ * plays (a night test, a time budget bench, a time witness), by the module's own definitions;
246
+ * false for any other file. */
247
+ horsDuJour(chemin: string, racine: string): boolean;
248
+ /** Optional, for a tool that reads a test file beside it (typescript): the sibling of HEAD's
249
+ * version of the test file `chemin` (from `racine`), from the root: a file beside it, a test
250
+ * the tool plays in the same run as it, its tests named in the run's report as the file's, of
251
+ * its class (day, night, bench), which the proof of the red writes, plays and removes; null for
252
+ * a file that has none. */
253
+ soeurDAvant?(chemin: string, racine: string): string | null;
254
+ /** Whether HEAD's version of the test file `chemin` (from `racine`) plays in a tree of its own,
255
+ * the copy's with that file alone replaced, under the file's own name, which the proof of the
256
+ * red builds, plays and removes (cargo, python); false for a file the tool cannot play so
257
+ * (cargo: a target `tests/<dossier>/main.rs`, a unit test of `src/`: `testsDeHead`), plays
258
+ * beside it (typescript: `soeurDAvant`) or does not play. */
259
+ arbreDAvant(chemin: string, racine: string): boolean;
260
+ /** The environment a tree of HEAD's version of `chemin` plays under (cargo: the target
261
+ * directory of the copy's compilations); empty for none. */
262
+ envDArbre(chemin: string, racine: string): Record<string, string>;
249
263
  /** The names of the tests of HEAD's version of the test file `chemin` (from `racine`), as the
250
- * verdict names them, read without playing them, for a file that has no sibling because the
251
- * tool cannot play two versions of it in one run (cargo: a unit test of `src/`, a target
252
- * `tests/<dossier>/main.rs`, its out-of-line modules read too); the proof of the red holds each
253
- * for a green HEAD already holds. `lire` gives HEAD's text of a file from the root, null for
254
- * none. With `sansSoeur`, the names of a file whose sibling the proof does not play, because
255
- * it breaks the build of its package while the lot alone builds (cargo: a target
256
- * `tests/<nom>.rs` whose HEAD's version no longer compiles against the lot's `tests/common`,
257
- * grillhouse-3e2.2). Null for any other file, or one HEAD does not hold. */
264
+ * verdict names them, read without playing them, for a file whose tree the proof does not play
265
+ * (cargo: a unit test of `src/`, a target `tests/<dossier>/main.rs`, its out-of-line modules read
266
+ * too), or whose tree breaks the build of its package while the lot alone builds (cargo: a
267
+ * target `tests/<nom>.rs` whose HEAD's version no longer compiles against the lot's
268
+ * `tests/common`, grillhouse-3e2.2); the proof of the red holds each for a green HEAD already
269
+ * holds. `lire` gives HEAD's text of a file from the root, null for none. Null for any other
270
+ * file, or one HEAD does not hold. */
258
271
  testsDeHead(
259
272
  chemin: string,
260
273
  racine: string,
261
- lire: (fichier: string) => string | null,
262
- options?: { sansSoeur?: boolean }
274
+ lire: (fichier: string) => string | null
263
275
  ): string[] | null;
264
276
  manifestes: Manifestes;
265
277
  fichiersEngendres(racine: string): FichierEngendre[];
@@ -272,6 +284,35 @@ export interface Langage extends Composition {
272
284
  /** The manifest of a package of this language, in its folder (`package.json`, `Cargo.toml`):
273
285
  * the guard of the languages asks it of a package the architecture declares of this language. */
274
286
  manifeste: string;
287
+ /** The name the text of a manifest of this language gives its package (the `name` of a
288
+ * `package.json`, of the `[package]` of a `Cargo.toml`, of the `[project]` of a
289
+ * `pyproject.toml`); null for none. */
290
+ nomDuManifeste(texte: string): string | null;
291
+ /** The internal dependencies the manifest of the package at `chemin` (from `racine`) links by a
292
+ * path or a workspace entry, as the names of the packages (`nomA` gives the name of the package
293
+ * whose manifest lies in a folder, null for none; a dependency without one keeps its key);
294
+ * `table` names where the manifest links them and `outil` the tool that builds by them. None for
295
+ * a language whose manifest is the package.json. */
296
+ liensDuManifeste(
297
+ racine: string,
298
+ chemin: string,
299
+ nomA: (dossier: string) => string | null
300
+ ): { noms: string[]; table: string; outil: string };
301
+ /** Builds the packages `noms` (by their package.json name) of the project in the working
302
+ * directory, before the tests of a package that declares them as data; throws, named, on a
303
+ * failure. Held by the module of the language whose manifest is the package.json. */
304
+ construireLesPaquets(noms: string[]): void;
305
+ /** The absolute path of the output `sortie` that the package at `chemin` (from `racine`) builds,
306
+ * which another package's tests run (`grillhouse.donnees`, scripts/donnees-cles.mjs): for a
307
+ * crate, a binary of `cargo metadata` in its target directory, `release` or `debug` as `release`
308
+ * says. Throws, named, for a package without that output, and « sortie non prise en charge pour
309
+ * <langage> » for a language whose outputs are not data. */
310
+ sortieDuPaquet(
311
+ racine: string,
312
+ chemin: string,
313
+ sortie: string,
314
+ options?: { release?: boolean }
315
+ ): string;
275
316
  /** The entries of the index of the interfaces, one per interface of the module's components and
276
317
  * the root's, `lignes` as the index writes them, which the core assembles for a project of
277
318
  * several languages (scripts/index-interfaces.mjs). */
@@ -339,7 +380,7 @@ export function ouvrirAvancement(o: {
339
380
  /** Writes the plan of the tasks of a pass in its progress. */
340
381
  export function inscrireLePlan(dossier: string, o: { racine: string; taches: unknown[] }): void;
341
382
  /** Keeps the total of a pass that ended, for the next one's measure. */
342
- export function garderLeTotal(dossier: string, racine: string): void;
383
+ export function garderLeTotal(dossier: string): void;
343
384
  /** Names the progress directory of the measure that holds the lock of the machine under `env`,
344
385
  * beside the lock (scripts/verrou-de-machine.mjs); the function that takes it out. */
345
386
  export function nommerLAvancement(o: { env?: NodeJS.ProcessEnv; dossier: string }): () => void;
@@ -350,6 +391,8 @@ export function dansLeTemporaire(chemin: string, env?: NodeJS.ProcessEnv): boole
350
391
  /** The cache of compilation of `outil`, under `~/.cache/grillhouse/`, never in the temporary
351
392
  * directory. */
352
393
  export function cacheDeCompilation(outil: string, env?: NodeJS.ProcessEnv): string;
394
+ /** The path of the command <nom> in the PATH of <env>, or null (scripts/commandes-du-path.mjs). */
395
+ export function trouverDansLePath(nom: string, env?: NodeJS.ProcessEnv): string | null;
353
396
  /** The cache of `outil` for the build rooted at `racine`, swept once `racine` is gone. */
354
397
  export function cacheDeLaRacine(
355
398
  outil: string,
@@ -359,14 +402,20 @@ export function cacheDeLaRacine(
359
402
  ): string;
360
403
  /** The line of the guard of a pass of tests, what its tests left in their temporary directory
361
404
  * named; null when they left nothing. */
362
- export function ligneDesRestes(restes: string[]): string | null;
405
+ export function ligneDesRestes(restes: string[], paquet?: string): string | null;
363
406
  /** Runs `retirer` when the process is interrupted, then lets the signal end it; the removal of
364
407
  * the handlers. */
365
408
  export function retirerALInterruption(retirer: () => void): () => void;
366
409
  /** The pressure of the processor above which a pass is « à repasser » (scripts/mesure/pression.mjs). */
367
410
  export const SEUIL_PRESSION: number;
368
- /** The exit code of a pass « à repasser ». */
411
+ /** The exit code of a pass « à repasser » (scripts/codes-de-sortie.mjs). */
369
412
  export const A_REPASSER: number;
413
+ /** The file of Beads that holds the prefix of the tickets (scripts/prefixe-des-tickets.mjs). */
414
+ export const CONFIG_BEADS: string;
415
+ /** The prefix of the tickets, read from the key `issue-prefix`; throws when it is missing. */
416
+ export function prefixe(racine: string): string;
417
+ /** Writes the key `issue-prefix`, unless it holds a value; the line written, or null. */
418
+ export function ecrireLePrefixe(racine: string, valeur: string): string | null;
370
419
  /** The pressure of the processor, in percent, or null when it cannot be read. */
371
420
  export function lirePression(fichier?: string): number | null;
372
421
  /** The pressure `p` as a line says it. */
@@ -375,20 +424,94 @@ export function ecrirePression(p: number | null): string;
375
424
  export const CHANGEMENTS: string;
376
425
  /** The variable naming the commit of the last green a run measures itself from. */
377
426
  export const DEPUIS_LE_VERT: string;
378
- /** Keeps the green of a pass, which the next one measures itself from; deferred to the file
379
- * `GRILLHOUSE_VERT_DIFFERE` of `env` names, in a project of several languages. */
380
- export function garderLeVert(etat: unknown, env?: NodeJS.ProcessEnv): void;
427
+ /** The variable the composed command sets for a module that plays after a module whose pass was
428
+ * red: the pass of the verification then keeps no green. */
429
+ export const PASSE_ROUGE: string;
430
+ /** Keeps the green of a pass, which the next one measures itself from: the one pass of the
431
+ * verification keeps it, once, when every task of every language of the graph is green; no module
432
+ * of language keeps one. */
433
+ export function garderLeVert(etat: unknown): void;
381
434
  /** The measure of the repository at `racine` against its last green. */
382
435
  export function mesure(racine: string, o?: { tout?: boolean; dans?: string }): unknown;
436
+ /** The workers a session of an agent plays its tests on (`GRILLHOUSE_TRAVAILLEURS` of `env`), or
437
+ * null in a heavy pass (every core); refuses a value that is not a positive integer, by name. */
438
+ export function travailleursDeLaSeance(env?: NodeJS.ProcessEnv): number | null;
383
439
  /** The wait for the lock of the machine, ended without it (scripts/verrou-de-machine.mjs). */
384
440
  export class AttenteDeLaMachine extends Error {}
385
- /** Runs `faire` under the lock of the machine. */
386
- export function avecLaMachine(...args: unknown[]): unknown;
441
+ /** Runs `faire` on a place of the machine, then under its lock (scripts/places-de-la-machine.mjs). */
442
+ export function avecLaMachineEtUnePlace(...args: unknown[]): unknown;
443
+ /** Plays a pass on a place of the machine: its exit code, or the code of the wait that stops. */
444
+ export function surUnePlace(
445
+ passe: (env: NodeJS.ProcessEnv) => number,
446
+ o?: { env?: NodeJS.ProcessEnv; dire?: (l: string) => void }
447
+ ): number;
387
448
  /** Waits for room in the temporary directory, as a heavy pass does before it plays. */
388
449
  export function attendreDeLaPlace(o?: Record<string, unknown>): void;
389
450
  /** The source files of the project at `racine` under `dossier`, as paths from `racine`, what the
390
451
  * tools of its language write left out (scripts/sources.mjs). */
391
452
  export function sources(racine: string, dossier?: string): string[];
453
+ /** The packages of a language that has no package.json of its own (a crate, a project of Python)
454
+ * the tables of docs/ARCHITECTURE.md declare at `racine`, each `{ langage, chemin, nom }` (`chemin`
455
+ * from the root, `nom` the manifest's name); none for a project that declares neither language
456
+ * (scripts/paquet-npm.mjs). */
457
+ export function paquetsSansPackageJson(
458
+ racine: string
459
+ ): { langage: string; chemin: string; nom: string }[];
460
+ /** The name of the script and of the task of the tests of a package, the same for every language. */
461
+ export const SCRIPT_DES_TESTS: string;
462
+ /** The name of the environment variable that carries the paths and the options of a targeted run
463
+ * to the task of the tests (`{ arguments, rejouer? }` in JSON), the same for every language. */
464
+ export const TESTS_CIBLES: string;
465
+ /** The variable the composed command sets for the modules of a `verifier` that plays beside the
466
+ * module of package.json, whose pass already plays every task of the graph: they play none. */
467
+ export const GRAPHE_JOUE: string;
468
+ /** The beginning of the name of a trace task, the output of a package that another's tests read. */
469
+ export const TRACE: string;
470
+ /** The name of the package of the graph whose folder is `dossier` (absolute) in `racine`, or null
471
+ * when that folder is no package of the graph (scripts/taches-du-graphe.mjs). */
472
+ export function nomDuPaquet(racine: string, dossier: string): string | null;
473
+ /** Runs the tasks `taches` of the packages `noms` (all when empty) with the task runner `outil`,
474
+ * each task whose dependencies succeed played to its end: the runner's exit code. `tests` is the
475
+ * content of the variable `TESTS_CIBLES` of the run; the variable of `env` never passes on. */
476
+ export function lancerLesTaches(o: {
477
+ outil: string;
478
+ racine: string;
479
+ taches: string[];
480
+ noms?: Iterable<string>;
481
+ tests?: { arguments: string[]; rejouer?: string };
482
+ env?: NodeJS.ProcessEnv;
483
+ }): number;
484
+ /** The content of the variable `TESTS_CIBLES` for a targeted run: the paths and options it names, and
485
+ * the moment of the run when `force` (the task plays for real); undefined when there is nothing to
486
+ * carry. */
487
+ export function testsCibles(o: {
488
+ arguments: string[];
489
+ force?: boolean;
490
+ }): { arguments: string[]; rejouer?: string } | undefined;
491
+ /** The paths and the options of a task of the tests of a package, run by its script: the paths
492
+ * `donnes` its script names, each replaced by those of the variable `TESTS_CIBLES` of `env` that
493
+ * lie in the same component (`dossierDe`: the folder of the component of an absolute path, or
494
+ * null), and the options of the variable. */
495
+ export function cheminsDeLaTache(o: {
496
+ racine: string;
497
+ donnes: string[];
498
+ env?: NodeJS.ProcessEnv;
499
+ dossierDe: (absolu: string) => string | null;
500
+ }): { chemins: string[]; options: string[] };
501
+ /** The trace tasks of a plan of the runner (`run … --dry=json`, parsed), those `garder` keeps: their
502
+ * task ids, sorted. */
503
+ export function tracesDuPlan(
504
+ plan: { tasks: { task: string; taskId: string }[] },
505
+ garder?: (t: any) => boolean
506
+ ): string[];
507
+ /** The command `construire --echec <fichier> <plan>` of a module, run from the root of the copy:
508
+ * builds the plan and its providers with the task runner `outil`, `run build --filter=<paquet>…`
509
+ * (the whole copy for a plan with a path that is no package); its exit code. */
510
+ export function construireDepuisLesArguments(
511
+ outil: string,
512
+ args: string[],
513
+ racine?: string
514
+ ): number;
392
515
  /** What `lire` returns, read once under `cle` while the core holds a scope of readings done once
393
516
  * (a sweep that asks many questions of a tree that does not move), at each call otherwise
394
517
  * (scripts/lecture-unique.mjs). */