@roomi-fields/grillhouse 0.49.1 → 0.50.1

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 (324) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +24 -0
  3. package/bin/grillhouse.mjs +2 -0
  4. package/cadre/templates/projet/CLAUDE.md +13 -96
  5. package/cadre/templates/projet/docs/agents/issue-tracker.md +5 -5
  6. package/charte.md +77 -96
  7. package/dist/temporal/acte.js +2 -1
  8. package/dist/temporal/acte.js.map +1 -1
  9. package/dist/temporal/circuit/activites.js +2 -1
  10. package/dist/temporal/circuit/activites.js.map +1 -1
  11. package/dist/temporal/circuit/appel.js +2 -2
  12. package/dist/temporal/circuit/appel.js.map +1 -1
  13. package/dist/temporal/circuit/client.d.ts +2 -4
  14. package/dist/temporal/circuit/client.js +5 -8
  15. package/dist/temporal/circuit/client.js.map +1 -1
  16. package/dist/temporal/circuit/commande.js +5 -4
  17. package/dist/temporal/circuit/commande.js.map +1 -1
  18. package/dist/temporal/circuit/contrat.d.ts +3 -3
  19. package/dist/temporal/circuit/contrat.js +2 -2
  20. package/dist/temporal/circuit/contrat.js.map +1 -1
  21. package/dist/temporal/circuit/deroule.js +4 -4
  22. package/dist/temporal/circuit/deroule.js.map +1 -1
  23. package/dist/temporal/commande.js +1 -1
  24. package/dist/temporal/commande.js.map +1 -1
  25. package/dist/temporal/deroules.js +3 -4
  26. package/dist/temporal/deroules.js.map +1 -1
  27. package/dist/temporal/etat.js +1 -1
  28. package/dist/temporal/etat.js.map +1 -1
  29. package/dist/temporal/file/activites.js +2 -1
  30. package/dist/temporal/file/activites.js.map +1 -1
  31. package/dist/temporal/file/client.js.map +1 -1
  32. package/dist/temporal/file/contrat.js +3 -2
  33. package/dist/temporal/file/contrat.js.map +1 -1
  34. package/dist/temporal/file/deroule.js +2 -1
  35. package/dist/temporal/file/deroule.js.map +1 -1
  36. package/dist/temporal/installation.js +2 -0
  37. package/dist/temporal/installation.js.map +1 -1
  38. package/dist/temporal/nuits/activites.js +4 -3
  39. package/dist/temporal/nuits/activites.js.map +1 -1
  40. package/dist/temporal/nuits/appel.js +2 -1
  41. package/dist/temporal/nuits/appel.js.map +1 -1
  42. package/dist/temporal/nuits/choix.js +2 -1
  43. package/dist/temporal/nuits/choix.js.map +1 -1
  44. package/dist/temporal/nuits/client.js +2 -1
  45. package/dist/temporal/nuits/client.js.map +1 -1
  46. package/dist/temporal/nuits/commande.js +2 -1
  47. package/dist/temporal/nuits/commande.js.map +1 -1
  48. package/dist/temporal/nuits/contrat.js +2 -1
  49. package/dist/temporal/nuits/contrat.js.map +1 -1
  50. package/dist/temporal/nuits/deroule.js +2 -1
  51. package/dist/temporal/nuits/deroule.js.map +1 -1
  52. package/dist/temporal/places/activites.js +2 -1
  53. package/dist/temporal/places/activites.js.map +1 -1
  54. package/dist/temporal/places/client.js +1 -0
  55. package/dist/temporal/places/client.js.map +1 -1
  56. package/dist/temporal/places/deroule.js +4 -5
  57. package/dist/temporal/places/deroule.js.map +1 -1
  58. package/dist/temporal/tickets/activites.js +1 -1
  59. package/dist/temporal/tickets/activites.js.map +1 -1
  60. package/dist/temporal/tickets/deroule.js +4 -4
  61. package/dist/temporal/tickets/deroule.js.map +1 -1
  62. package/docs/ARCHITECTURE.md +3 -3
  63. package/docs/CADRE.md +10 -68
  64. package/docs/INTERFACE.md +59 -179
  65. package/docs/architecture/circuit.md +440 -0
  66. package/docs/architecture/entree.md +281 -0
  67. package/docs/architecture/greffon.md +284 -0
  68. package/docs/architecture/installation.md +306 -0
  69. package/docs/architecture/machine.md +383 -0
  70. package/docs/architecture/tests.md +337 -0
  71. package/hooks/crochet.mjs +3 -1
  72. package/package.json +1 -1
  73. package/scripts/abi-des-dependances.mjs +2 -1
  74. package/scripts/activites.mjs +8 -8
  75. package/scripts/aiguillage.mjs +4 -4
  76. package/scripts/arbitrages.mjs +1 -1
  77. package/scripts/arbres-juges.mjs +2 -1
  78. package/scripts/attente-a-l-arret.mjs +7 -8
  79. package/scripts/attente-au-tour.mjs +2 -2
  80. package/scripts/attente-de-la-machine.mjs +10 -16
  81. package/scripts/avancement.mjs +2 -0
  82. package/scripts/base-des-workflows.mjs +2 -1
  83. package/scripts/bilan.mjs +39 -61
  84. package/scripts/binaires.mjs +2 -1
  85. package/scripts/branche-de-nuit.mjs +2 -1
  86. package/scripts/cadre.mjs +37 -9
  87. package/scripts/ci-de-main.mjs +2 -1
  88. package/scripts/circuit.mjs +101 -618
  89. package/scripts/circuits-cles.mjs +4 -6
  90. package/scripts/circuits-du-serveur.mjs +1 -1
  91. package/scripts/codes-de-sortie.mjs +1 -1
  92. package/scripts/coeurs-dedies.mjs +2 -4
  93. package/scripts/commande-du-langage.mjs +2 -0
  94. package/scripts/commandes-composees.mjs +3 -3
  95. package/scripts/commandes-du-path.mjs +1 -1
  96. package/scripts/composants-affectes.mjs +3 -1
  97. package/scripts/composition-des-langages.mjs +2 -0
  98. package/scripts/conformite.d.ts +2 -1
  99. package/scripts/conformite.mjs +2 -0
  100. package/scripts/consommation-des-passes.mjs +5 -4
  101. package/scripts/consommation.mjs +1 -0
  102. package/scripts/copies-finies.mjs +9 -10
  103. package/scripts/crochet.mjs +1 -0
  104. package/scripts/crochets.mjs +2 -1
  105. package/scripts/depart-du-ticket.mjs +2 -2
  106. package/scripts/dependances-internes.mjs +4 -2
  107. package/scripts/dernier-vert.mjs +3 -3
  108. package/scripts/dette.d.ts +2 -1
  109. package/scripts/dette.mjs +2 -0
  110. package/scripts/direct.mjs +66 -6
  111. package/scripts/disque-des-copies.mjs +1 -1
  112. package/scripts/donnees-cles.mjs +2 -0
  113. package/scripts/droits.mjs +18 -13
  114. package/scripts/echantillonneur-de-la-passe.mjs +1 -1
  115. package/scripts/effets.mjs +3 -3
  116. package/scripts/engendres.mjs +1 -1
  117. package/scripts/enveloppe/codes.mjs +1 -0
  118. package/scripts/enveloppe/enveloppe.mjs +61 -84
  119. package/scripts/enveloppe/lancer.sh +5 -3
  120. package/scripts/enveloppe/paquets-du-plan.mjs +4 -6
  121. package/scripts/enveloppe/travail-de-la-copie.mjs +17 -17
  122. package/scripts/etapes.mjs +10 -9
  123. package/scripts/etat-du-depot.mjs +2 -1
  124. package/scripts/faits-du-circuit.mjs +19 -19
  125. package/scripts/fermeture-de-la-machine.mjs +2 -2
  126. package/scripts/fichier-du-poste.mjs +3 -4
  127. package/scripts/fichiers-nommes.mjs +2 -1
  128. package/scripts/file-des-tickets.mjs +3 -1
  129. package/scripts/flux-de-la-nuit.mjs +2 -1
  130. package/scripts/flux-des-paquets.mjs +2 -1
  131. package/scripts/fusion-du-changelog.mjs +2 -1
  132. package/scripts/garde-de-la-memoire.mjs +1 -1
  133. package/scripts/gardes-du-cadre.mjs +2 -0
  134. package/scripts/greffons.mjs +2 -2
  135. package/scripts/grillhouse-maj.mjs +55 -150
  136. package/scripts/groupe-cles.mjs +2 -1
  137. package/scripts/index-interfaces.mjs +2 -0
  138. package/scripts/init.mjs +2 -1
  139. package/scripts/integration/file.mjs +3 -3
  140. package/scripts/integration/integrer.mjs +5 -6
  141. package/scripts/integration/rejeu.mjs +4 -2
  142. package/scripts/integration/verdict.mjs +2 -1
  143. package/scripts/jointure.d.ts +2 -1
  144. package/scripts/journal-des-etats.mjs +2 -2
  145. package/scripts/langages/cargo/binaires.mjs +3 -2
  146. package/scripts/langages/cargo/clippy.mjs +2 -0
  147. package/scripts/langages/cargo/commandes.mjs +72 -17
  148. package/scripts/langages/cargo/composants.mjs +4 -3
  149. package/scripts/langages/cargo/elements-du-lot.mjs +2 -0
  150. package/scripts/langages/cargo/etiquettes.mjs +87 -0
  151. package/scripts/langages/cargo/executables-de-tests.mjs +3 -1
  152. package/scripts/langages/cargo/exemples.mjs +6 -4
  153. package/scripts/langages/cargo/frontieres.mjs +2 -0
  154. package/scripts/langages/cargo/index-interfaces.mjs +2 -0
  155. package/scripts/langages/cargo/index.mjs +8 -9
  156. package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +8 -8
  157. package/scripts/langages/cargo/migrations/0.34.0-executables-de-tests.mjs +7 -8
  158. package/scripts/langages/cargo/mise-a-jour.mjs +6 -3
  159. package/scripts/langages/cargo/sccache.mjs +10 -6
  160. package/scripts/langages/cargo/squelette.mjs +2 -0
  161. package/scripts/langages/cargo/tailles-des-tests.mjs +2 -0
  162. package/scripts/langages/cargo/verdict.mjs +8 -6
  163. package/scripts/langages/typescript/chemins-des-tests.mjs +2 -1
  164. package/scripts/langages/typescript/code-mort.mjs +2 -1
  165. package/scripts/langages/typescript/composants.mjs +7 -5
  166. package/scripts/langages/typescript/consommateurs-arbitres.mjs +2 -1
  167. package/scripts/langages/typescript/consommateurs.d.ts +2 -1
  168. package/scripts/langages/typescript/consommateurs.mjs +5 -7
  169. package/scripts/langages/typescript/construire.mjs +2 -1
  170. package/scripts/langages/typescript/elements-du-lot.mjs +2 -1
  171. package/scripts/langages/typescript/exemples.mjs +2 -1
  172. package/scripts/langages/typescript/frontieres.mjs +3 -2
  173. package/scripts/langages/typescript/index-interfaces.mjs +3 -2
  174. package/scripts/langages/typescript/index.mjs +3 -2
  175. package/scripts/langages/typescript/interfaces-contre-code.mjs +2 -1
  176. package/scripts/langages/typescript/lecteurs.mjs +2 -1
  177. package/scripts/langages/typescript/migrations/0.23.0-config-vitest.mjs +5 -6
  178. package/scripts/langages/typescript/migrations/0.24.4-noms-declares-inutilises.mjs +4 -8
  179. package/scripts/langages/typescript/migrations/0.24.6-lignes-mal-formees.mjs +5 -9
  180. package/scripts/langages/typescript/migrations/0.24.7-matiere-dans-les-tests.mjs +6 -10
  181. package/scripts/langages/typescript/migrations/0.25.0-chemins-des-tests.mjs +5 -6
  182. package/scripts/langages/typescript/migrations/0.25.0-tailles-des-tests.mjs +6 -8
  183. package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +5 -4
  184. package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +7 -7
  185. package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +5 -6
  186. package/scripts/langages/typescript/migrations/0.33.0-binaire-de-jour.mjs +6 -6
  187. package/scripts/langages/typescript/migrations/0.33.0-tests-du-poste.mjs +5 -5
  188. package/scripts/langages/typescript/migrations/0.34.1-cache-des-outils.mjs +4 -4
  189. package/scripts/langages/typescript/migrations/0.49.0-tests-equipes.mjs +7 -7
  190. package/scripts/langages/typescript/mise-a-jour.mjs +5 -5
  191. package/scripts/langages/typescript/module-absent.mjs +2 -1
  192. package/scripts/langages/typescript/parcours.mjs +2 -1
  193. package/scripts/langages/typescript/references-par-les-types.mjs +2 -1
  194. package/scripts/langages/typescript/regle-des-tests.mjs +2 -1
  195. package/scripts/langages/typescript/resume-du-lanceur.mjs +1 -1
  196. package/scripts/langages/typescript/resumes.mjs +2 -1
  197. package/scripts/langages/typescript/squelette.mjs +2 -1
  198. package/scripts/langages/typescript/tailles-des-tests.mjs +5 -4
  199. package/scripts/langages/typescript/tests-de-nuit.mjs +5 -4
  200. package/scripts/langages/typescript/tests-du-poste.mjs +2 -1
  201. package/scripts/langages/typescript/tests.mjs +44 -66
  202. package/scripts/langages/typescript/titres-de-tests.mjs +2 -2
  203. package/scripts/langages/typescript/tranches.mjs +2 -1
  204. package/scripts/langages/typescript/turbo-des-paquets.mjs +87 -148
  205. package/scripts/langages/typescript/verdict.mjs +2 -1
  206. package/scripts/langages/typescript/verifier.mjs +64 -99
  207. package/scripts/langages/typescript/verrou-des-dependances.mjs +2 -1
  208. package/scripts/langages/typescript/vitest-config/avancement.reporter.mjs +1 -0
  209. package/scripts/langages/typescript/vitest-config/base.mjs +5 -5
  210. package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -0
  211. package/scripts/langages/typescript/vitest-config/changements.mjs +6 -10
  212. package/scripts/langages/typescript/vitest-config/cibles.mjs +3 -3
  213. package/scripts/langages/typescript/vitest-config/delais.mjs +1 -0
  214. package/scripts/langages/typescript/vitest-config/delais.setup.mjs +1 -0
  215. package/scripts/langages/typescript/vitest-config/duree.classement.mjs +1 -1
  216. package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +4 -3
  217. package/scripts/langages/typescript/vitest-config/lances.mjs +3 -2
  218. package/scripts/langages/typescript/vitest-config/machine.setup.mjs +1 -0
  219. package/scripts/langages/typescript/vitest-config/mesure.mjs +1 -1
  220. package/scripts/langages/typescript/vitest-config/mesure.setup.mjs +1 -0
  221. package/scripts/langages/typescript/vitest-config/registre.setup.mjs +1 -0
  222. package/scripts/langages/typescript/vitest-config/resultats.mjs +2 -1
  223. package/scripts/langages/typescript/vitest-config/resultats.setup.mjs +1 -0
  224. package/scripts/langages/typescript/vitest.nuit.config.mjs +3 -2
  225. package/scripts/langages-des-paquets.mjs +3 -1
  226. package/scripts/langages.mjs +5 -3
  227. package/scripts/lecture-unique.mjs +2 -1
  228. package/scripts/ligne-etat/defaut.sh +2 -1
  229. package/scripts/ligne-etat/ligne-etat.mjs +1 -0
  230. package/scripts/lint-des-scripts.mjs +1 -0
  231. package/scripts/machine.mjs +4 -4
  232. package/scripts/matiere-de-test.d.ts +2 -1
  233. package/scripts/matieres-lues.mjs +2 -0
  234. package/scripts/messages-non-lus.mjs +2 -4
  235. package/scripts/mesure/avancement.mjs +1 -1
  236. package/scripts/mesure/base-de-passe.mjs +10 -13
  237. package/scripts/mesure/pression.mjs +3 -4
  238. package/scripts/mesure-de-la-machine.mjs +2 -1
  239. package/scripts/migrations/0.23.0-charte-importee.mjs +7 -13
  240. package/scripts/migrations/0.23.0-crochets-de-seance.mjs +6 -8
  241. package/scripts/migrations/0.23.0-marche-du-projet.mjs +8 -12
  242. package/scripts/migrations/0.23.2-copies-du-cadre.mjs +9 -32
  243. package/scripts/migrations/0.24.0-circuit-simplifie.mjs +11 -39
  244. package/scripts/migrations/0.24.12-tri-des-decouvertes.mjs +6 -9
  245. package/scripts/migrations/0.24.2-api-extractor-du-paquet.mjs +8 -19
  246. package/scripts/migrations/0.25.0-script-des-tests.mjs +7 -13
  247. package/scripts/migrations/0.27.0-langages-dans-l-architecture.mjs +9 -23
  248. package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +7 -9
  249. package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +7 -18
  250. package/scripts/migrations/0.33.0-cache-distant.mjs +6 -9
  251. package/scripts/migrations/0.33.0-ci-du-cadre.mjs +5 -8
  252. package/scripts/migrations/0.33.0-node-26.mjs +5 -8
  253. package/scripts/migrations/0.35.0-greffon-mattpocock-retire.mjs +5 -10
  254. package/scripts/migrations/0.44.0-node-26-seul.mjs +6 -9
  255. package/scripts/migrations/0.44.0-seuil-des-codes-de-tickets.mjs +6 -7
  256. package/scripts/migrations/0.47.0-ci-de-main.mjs +6 -7
  257. package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +6 -6
  258. package/scripts/migrations/0.48.0-poussee-retiree.mjs +3 -5
  259. package/scripts/migrations/0.49.0-reservation-de-trois-coeurs.mjs +3 -4
  260. package/scripts/migrations/0.50.0-reglages-hors-de-la-charte.mjs +81 -0
  261. package/scripts/migrations-des-gardes.mjs +2 -0
  262. package/scripts/migrations.mjs +4 -0
  263. package/scripts/newday.mjs +2 -2
  264. package/scripts/nuit.sh +7 -5
  265. package/scripts/outil.mjs +2 -1
  266. package/scripts/outils-cles.mjs +6 -6
  267. package/scripts/paquet-npm.mjs +3 -2
  268. package/scripts/paquet.mjs +3 -4
  269. package/scripts/paquets.d.ts +1 -1
  270. package/scripts/paquets.mjs +2 -0
  271. package/scripts/passe-de-la-machine.mjs +9 -12
  272. package/scripts/places-de-la-machine.mjs +36 -53
  273. package/scripts/places-du-serveur.mjs +5 -4
  274. package/scripts/plafond-de-la-machine.mjs +19 -19
  275. package/scripts/poussee-retiree.mjs +2 -1
  276. package/scripts/prefixe-des-tickets.mjs +1 -0
  277. package/scripts/preparation.mjs +2 -1
  278. package/scripts/recommencer.mjs +2 -2
  279. package/scripts/references-changees.mjs +1 -1
  280. package/scripts/registre-des-resultats.mjs +3 -1
  281. package/scripts/registre.mjs +14 -16
  282. package/scripts/regles-des-places.mjs +4 -6
  283. package/scripts/repli-de-la-nuit.mjs +2 -1
  284. package/scripts/reponses-du-circuit.mjs +4 -3
  285. package/scripts/reprise.mjs +3 -2
  286. package/scripts/resultats.mjs +71 -93
  287. package/scripts/retirer-copie.sh +2 -1
  288. package/scripts/retirer-les-copies-finies.mjs +2 -1
  289. package/scripts/seances.mjs +3 -2
  290. package/scripts/services-du-noyau.mjs +2 -0
  291. package/scripts/session-start.sh +33 -52
  292. package/scripts/sigle-du-projet.mjs +1 -2
  293. package/scripts/sortie.mjs +2 -1
  294. package/scripts/sources.mjs +2 -0
  295. package/scripts/sous-commandes.mjs +2 -1
  296. package/scripts/sous-modules.sh +24 -43
  297. package/scripts/structure-guard.sh +2 -1
  298. package/scripts/style-a-l-ecriture.mjs +2 -0
  299. package/scripts/suiveur.mjs +1 -1
  300. package/scripts/superviseur.mjs +36 -55
  301. package/scripts/tableau-des-composants.mjs +5 -7
  302. package/scripts/tableau.mjs +78 -121
  303. package/scripts/taches-du-graphe.mjs +3 -0
  304. package/scripts/ticket-du-circuit.mjs +1 -1
  305. package/scripts/transitions.mjs +15 -15
  306. package/scripts/un-commit-par-ticket.mjs +2 -1
  307. package/scripts/verdict-de-la-nuit.mjs +2 -1
  308. package/scripts/verrou-de-fichier.mjs +1 -0
  309. package/scripts/verrous/commande.mjs +2 -1
  310. package/scripts/verrous/ecriture-hors-enveloppe.mjs +1 -0
  311. package/scripts/verrous/ticket-du-sous-agent.mjs +1 -0
  312. package/scripts/verrous/verrou.mjs +3 -3
  313. package/scripts/workflows-du-cadre.mjs +2 -1
  314. package/skills/developpeur/SKILL.md +6 -10
  315. package/skills/explorateur/SKILL.md +1 -1
  316. package/skills/grill/SKILL.md +4 -5
  317. package/skills/grill/references/paquets.md +5 -8
  318. package/skills/pitmaster/SKILL.md +176 -268
  319. package/skills/pitmaster/references/cadre.md +7 -6
  320. package/skills/pitmaster/references/consigne-agent.md +36 -32
  321. package/skills/pitmaster/references/tour.md +2 -2
  322. package/skills/redacteur/references/documents-d-un-composant.md +9 -8
  323. package/skills/testwriter/SKILL.md +8 -11
  324. package/types/index.d.ts +3 -0
@@ -1,14 +1,13 @@
1
- // The frame's base configuration of Vitest is the package's: `@roomi-fields/grillhouse/vitest-config`
2
- // (and `/mesure`), in place of the workspace package `@grillhouse/vitest-config` that the frame's
3
- // copied files held.
1
+ // The migration that brings a project's Vitest configuration to the package's base configuration:
2
+ // `@roomi-fields/grillhouse/vitest-config` (and `/mesure`), in place of the workspace package
3
+ // `@grillhouse/vitest-config`. A migration of the module typescript (../index.mjs), which a
4
+ // project of TypeScript plays; the migrations: packages/grillhouse/docs/architecture/installation.md §5.4.
4
5
  //
5
- // - A migration of the module typescript (../index.mjs), which a project of TypeScript plays.
6
6
  // - Each source file of the project (`sources` of the core) that names
7
7
  // `@grillhouse/vitest-config` or `@grillhouse/vitest-config/mesure` in quotes names the package's
8
8
  // instead; a root configuration that imports the base by its former path
9
9
  // (`./scripts/vitest-config/base.mjs`, `./packages/grillhouse/scripts/vitest-config/base.mjs`)
10
- // imports it by its name. The migration of the copies (scripts/migrations/0.23.2-copies-du-cadre.mjs)
11
- // still knows a former copy of the frame so rewritten by its fingerprint.
10
+ // imports it by its name.
12
11
  // - Each package.json of the project (the root's and each workspace's) that declares
13
12
  // `@grillhouse/vitest-config` declares `@roomi-fields/grillhouse` in the same field in its place,
14
13
  // at the range the root declares (else `^<version>` of the package), unless it already declares
@@ -1,11 +1,7 @@
1
- // From 0.24.4 the guard of the consumers refuses a declared name that no code of its consumer uses
2
- // (`declare-non-utilise`, scripts/langages/typescript/consommateurs.mjs), which it only reported before, as ESLint's
3
- // `no-unused-vars` refuses a name nothing uses. A project that updates holds such names already
4
- // (BPScript: 26 names on 11 lines of 4 interfaces), and its main would turn red at its next pass
5
- // without a word. As a codemod reports what it leaves, the update names them, and the command that
6
- // inscribes them as the project's known debt, once, at the passage of the rule (dette.mjs, as
7
- // ESLint's `--suppress-all`); in a ticket afterwards, the guard says to take the name out of its
8
- // line.
1
+ // The migration of the guard of the consumers (scripts/langages/typescript/consommateurs.mjs) for
2
+ // the declared names that no code of their consumer uses (`declare-non-utilise`): it names them,
3
+ // and the command that inscribes them as the project's known debt (dette.mjs). Migrations:
4
+ // packages/grillhouse/docs/architecture/installation.md §5.4; the guard: tests.md §3.4.
9
5
  //
10
6
  // - The migration changes no file (`migrer` returns no line): the project decides between the
11
7
  // debt and the edit of its interfaces.
@@ -1,12 +1,8 @@
1
- // From 0.24.6 the guard of the consumers refuses a bullet of a `## Consommateurs` section that is
2
- // no list of names (`ligne-mal-formee`, scripts/langages/typescript/consommateurs.mjs): one form only,
3
- // ``- `consommateur` : nom, nom``, each name a JavaScript identifier or `*`. Before, the text after
4
- // « : » was cut at its commas, and a bullet of prose gave « names » that are none, or was passed
5
- // over without « : » (BPScript 990-corpus/docs/INTERFACE.md:274-289, at 0.24.5). A project that updates may hold such lines, and its
6
- // main would turn red at its next pass without a word. As the update of 0.24.4 names its unused
7
- // names, the update names these lines, and the command that inscribes them as the project's known
8
- // debt, once, at the passage of the rule (dette.mjs, as ESLint's `--suppress-all`); in a ticket
9
- // afterwards, the guard says to write the line as a list of names.
1
+ // The migration of the guard of the consumers (scripts/langages/typescript/consommateurs.mjs) for
2
+ // the bullets of a `## Consommateurs` section that are no list of names (`ligne-mal-formee`): one
3
+ // form only, ``- `consommateur` : nom, nom``, each name a JavaScript identifier or `*`. It names
4
+ // the lines, and the command that inscribes them as the project's known debt (dette.mjs).
5
+ // Migrations: packages/grillhouse/docs/architecture/installation.md §5.4; the guard: tests.md §3.4.
10
6
  //
11
7
  // - The migration changes no file (`migrer` returns no line): the project decides between the
12
8
  // debt and the edit of its interfaces.
@@ -1,13 +1,9 @@
1
- // From 0.24.7 the guard of the consumers reads the uses of a package of the shared test material in
2
- // the tests of its consumers (scripts/langages/typescript/consommateurs.mjs, as knip counts test files as entries out
3
- // of its `--production` mode): the material has only tests for readers, and every name declared
4
- // for it came out « declared, not used » (BPScript 990-corpus: 176 names, inscribed as debt at
5
- // 0.24.6). A test that imports a name of the material its interface does not declare is now
6
- // refused (`usage-non-declare`), as production code is; a project that updates may hold such
7
- // imports, and its main would turn red at its next pass without a word. As the updates of 0.24.4
8
- // and 0.24.6 name their findings, the update names these uses, and the command that inscribes them
9
- // as the project's known debt, once, at the passage of the rule (dette.mjs, as ESLint's
10
- // `--suppress-all`).
1
+ // The migration of the guard of the consumers (scripts/langages/typescript/consommateurs.mjs) for
2
+ // the uses of a package of the shared test material in the tests of its consumers: a test that
3
+ // imports a name of the material its interface does not declare is refused (`usage-non-declare`),
4
+ // as production code is. It names these uses, and the command that inscribes them as the
5
+ // project's known debt (dette.mjs). Migrations: packages/grillhouse/docs/architecture/installation.md
6
+ // §5.4; the guard: tests.md §3.4.
11
7
  //
12
8
  // - The migration changes no file (`migrer` returns no line): the project decides between the
13
9
  // debt and the edit of its interfaces.
@@ -1,9 +1,8 @@
1
- // From 0.25.0 the guard of the paths of the tests (scripts/langages/typescript/chemins-des-tests.mjs)
2
- // refuses a test that names a module of its package by a path the frame cannot read, which a pass
3
- // measured against the last green would not play when that module changes (2026-10-30: 11 in
4
- // BPScript). As ESLint's `--suppress-all` does once at the passage of a rule, the update inscribes
5
- // them as the project's known debt (scripts/dette.mjs), frozen: the count never rises, a new one
6
- // is refused, and its verification does not change that day.
1
+ // The migration of the guard of the paths of the tests
2
+ // (scripts/langages/typescript/chemins-des-tests.mjs): it inscribes the tests that name a module of
3
+ // their package by a path the frame cannot read as the project's known debt (scripts/dette.mjs),
4
+ // frozen: the count never rises and a new one is refused. Migrations:
5
+ // packages/grillhouse/docs/architecture/installation.md §5.4; the guard: tests.md §3.4.
7
6
  //
8
7
  // - The migration writes the section of the guard in `grillhouse-dette.json` when the guard finds
9
8
  // one and the file holds no section of it yet; the rest of the debt stays.
@@ -1,11 +1,9 @@
1
- // From 0.25.0 the guard of the sizes of the tests (scripts/langages/typescript/tailles-des-tests.mjs) refuses a large
2
- // test of the day, one that mounts a trial repository and starts the product or the frame there,
3
- // as the test pyramid of Google keeps the large tests out of the day. A project that updates holds
4
- // such tests already (2026-10-29: Grillhouse 70 of its 170 test files, BPScript 7 of its 1 079,
5
- // all of 995-tools), and its main would turn
6
- // red at its next pass. As ESLint's `--suppress-all` does once at the passage of a rule, the update
7
- // inscribes them as the project's known debt (scripts/dette.mjs), frozen: the count never rises,
8
- // a new large test of the day is refused, and its verification does not change that day.
1
+ // The migration of the guard of the sizes of the tests
2
+ // (scripts/langages/typescript/tailles-des-tests.mjs) for the large test of the day, one that
3
+ // mounts a trial repository and starts the product or the frame there: it inscribes the existing
4
+ // ones as the project's known debt (scripts/dette.mjs), frozen: the count never rises and a new
5
+ // large test of the day is refused. Migrations: packages/grillhouse/docs/architecture/installation.md
6
+ // §5.4; the guard: tests.md §3.4.
9
7
  //
10
8
  // - The migration writes the section of the guard in `grillhouse-dette.json` when the guard finds a
11
9
  // large test of the day and the file holds no section of it yet; the rest of the debt stays.
@@ -1,7 +1,8 @@
1
- // From 0.30.0 the guard of the titles of the tests (scripts/langages/typescript/titres-de-tests.mjs)
2
- // reads the prefix of the tickets from the key `issue-prefix` of `.beads/config.yaml`, committed,
3
- // never from `bd`, which a CI does not have; a project without the key is refused by the guard.
4
- // `bd init` writes that key commented out, and Beads keeps the prefix in its database.
1
+ // The migration of the prefix of the tickets: the guard of the titles of the tests
2
+ // (scripts/langages/typescript/titres-de-tests.mjs) reads it from the key `issue-prefix` of
3
+ // `.beads/config.yaml`, committed, never from `bd`, which a CI does not have; a project without the
4
+ // key is refused by the guard. `bd init` writes that key commented out, and Beads keeps the prefix
5
+ // in its database. Migrations: packages/grillhouse/docs/architecture/installation.md §5.4.
5
6
  //
6
7
  // - The migration writes the key `issue-prefix: "<prefix>"` in `.beads/config.yaml` by the one
7
8
  // writer of the key (`ecrireLePrefixe` of scripts/prefixe-des-tickets.mjs, which the preparation
@@ -1,10 +1,10 @@
1
- // From 0.30.0 the guard of the sizes of the tests (scripts/langages/typescript/tailles-des-tests.mjs)
2
- // also sees large a test that mounts a temporary directory and starts a heavy tool of the product
3
- // there (turbo, vitest, knip, depcruise, api-extractor), with a `cwd:`; the tests it classed medium
4
- // become large tests of the day, and the main of a project that updates would turn red at its next
5
- // pass. As the migration 0.25.0 does for the first rule, the update inscribes them as the project's
6
- // known debt (scripts/dette.mjs), frozen: the count never rises and a new large test of the day is
7
- // refused.
1
+ // The migration of the guard of the sizes of the tests
2
+ // (scripts/langages/typescript/tailles-des-tests.mjs) for the test that mounts a temporary
3
+ // directory and starts a heavy tool of the product there (turbo, vitest, knip, depcruise,
4
+ // api-extractor), with a `cwd:`, large like the other: it inscribes them as the project's known
5
+ // debt (scripts/dette.mjs), frozen: the count never rises and a new large test of the day is
6
+ // refused. Migrations: packages/grillhouse/docs/architecture/installation.md §5.4; the guard:
7
+ // tests.md §3.4.
8
8
  //
9
9
  // - The migration inscribes the large tests of the day the guard finds that the debt does not hold
10
10
  // yet; the debt already inscribed (the guard's, the other guards') stays.
@@ -1,9 +1,8 @@
1
- // From 0.30.0 the guard of the titles of the tests (scripts/langages/typescript/titres-de-tests.mjs)
2
- // refuses a test file whose titles name a ticket or a « critère N » beyond its debt; the titles a
3
- // project already has would turn its main red at its next pass. As the migration of the large
4
- // tests of the day does (./0.30.0-tailles-des-outils-lourds.mjs), the update inscribes them as the
5
- // project's known debt (scripts/dette.mjs), frozen: the count never rises, and each title renamed
6
- // by its behaviour lowers it.
1
+ // The migration of the guard of the titles of the tests
2
+ // (scripts/langages/typescript/titres-de-tests.mjs) for the test files whose titles name a ticket
3
+ // or a « critère N »: it inscribes them as the project's known debt (scripts/dette.mjs), frozen:
4
+ // the count never rises, and each title renamed by its behaviour lowers it. Migrations:
5
+ // packages/grillhouse/docs/architecture/installation.md §5.4; the guard: tests.md §3.4.
7
6
  //
8
7
  // - It plays after the migration of the prefix of the tickets (./0.30.0-prefixe-des-tickets.mjs),
9
8
  // whose key it reads; without the key it inscribes nothing, and the guard names the key.
@@ -1,9 +1,9 @@
1
- // From 0.33.0 the guard of the sizes of the tests (scripts/langages/typescript/tailles-des-tests.mjs)
2
- // also refuses a test of the day that starts the frame's command (its binary, or a script of its
3
- // `bin/` or `scripts/`) out of the zone of the end-to-end tests (a directory `e2e/`): a test of
4
- // the day validates the code by importing it. A project whose tests start it would turn red at its
5
- // next pass; as the migration 0.30.0 does for the heavy tools, the update inscribes them as the
6
- // project's known debt (scripts/dette.mjs), frozen: the count never rises and a new one is refused.
1
+ // The migration of the guard of the sizes of the tests
2
+ // (scripts/langages/typescript/tailles-des-tests.mjs) for the test of the day that starts the
3
+ // frame's command (its binary, or a script of its `bin/` or `scripts/`) out of the zone of the
4
+ // end-to-end tests (a directory `e2e/`): it inscribes them as the project's known debt
5
+ // (scripts/dette.mjs), frozen: the count never rises and a new one is refused. Migrations:
6
+ // packages/grillhouse/docs/architecture/installation.md §5.4; the guard: tests.md §3.4.
7
7
  //
8
8
  // - The migration inscribes the findings of the guard that the debt does not hold yet; the debt
9
9
  // already inscribed (the guard's, the other guards') stays.
@@ -1,9 +1,9 @@
1
- // From 0.33.0 the guard of the night tests of the poste (scripts/langages/typescript/tests-du-poste.mjs)
2
- // refuses a night test that depends on the poste (the envelope, the real bd, a Temporal server,
3
- // sccache, systemd, the keyring, the user's session, a session of claude) without the tag `@poste`
4
- // at its head. A project whose night tests depend on it would turn red at its next pass; as the
5
- // migration of the tests that start the frame's command does, the update inscribes them as the
1
+ // The migration of the guard of the night tests of the poste
2
+ // (scripts/langages/typescript/tests-du-poste.mjs) for the night test that depends on the poste
3
+ // (the envelope, the real bd, a Temporal server, sccache, systemd, the keyring, the user's
4
+ // session, a session of claude) without the tag `@poste` at its head: it inscribes them as the
6
5
  // project's known debt (scripts/dette.mjs), frozen: the count never rises and a new one is refused.
6
+ // Migrations: packages/grillhouse/docs/architecture/installation.md §5.4; the guard: tests.md §3.4.
7
7
  //
8
8
  // - The migration inscribes the findings of the guard that the debt does not hold yet; the debt
9
9
  // already inscribed (the guard's, the other guards') stays.
@@ -1,7 +1,7 @@
1
- // From 0.34.1 the cache of the lint and of the format check lives under `.cache-outils/`, a clean
2
- // output of the module typescript, no longer under `node_modules/.cache/`: a session's envelope
3
- // mounts `/` read-only and the `node_modules` of a copy is a link out of it, so ESLint and
4
- // Prettier failed to write their cache there (EROFS). The migration moves it in a project.
1
+ // The migration that moves the cache of the lint and of the format check to `.cache-outils/`, a
2
+ // clean output of the module typescript: a session's envelope mounts `/` read-only and the
3
+ // `node_modules` of a copy is a link out of it, where ESLint and Prettier cannot write.
4
+ // Migrations: packages/grillhouse/docs/architecture/installation.md §5.4.
5
5
  //
6
6
  // - In the `lint` and `format:check` scripts of `package.json`, the former path
7
7
  // (`node_modules/.cache/`) is replaced by the new one (`.cache-outils/`), wherever it falls;
@@ -1,10 +1,10 @@
1
- // From 0.49.0 the guard of the night tests of the poste (scripts/langages/typescript/tests-du-poste.mjs)
2
- // asks the tag `@equipee` of a night test that needs the equipment of a machine (the envelope, a
3
- // Temporal server, sccache, the binaries of the module cargo), and `@poste` stays for what only the
4
- // poste has (the real bd, systemd, the keyring, the user's session, a session of claude). A project
5
- // whose night tests need equipment without the tag would turn red at its next pass; the update
6
- // inscribes them as the project's known debt (scripts/dette.mjs), frozen: the count never rises and
7
- // a new one is refused.
1
+ // The migration of the guard of the night tests of the poste
2
+ // (scripts/langages/typescript/tests-du-poste.mjs) for the night test that needs the equipment of a
3
+ // machine (the envelope, a Temporal server, sccache, the binaries of the module cargo) without the
4
+ // tag `@equipee`; `@poste` stays for what only the poste has (the real bd, systemd, the keyring,
5
+ // the user's session, a session of claude). It inscribes them as the project's known debt
6
+ // (scripts/dette.mjs), frozen: the count never rises and a new one is refused. Migrations:
7
+ // packages/grillhouse/docs/architecture/installation.md §5.4; the guard: tests.md §3.4.
8
8
  //
9
9
  // - The migration inscribes the findings of the guard that the debt does not hold yet; the debt
10
10
  // already inscribed (the guard's, the other guards') stays.
@@ -1,4 +1,5 @@
1
- // What the module typescript brings to the update of a project (`grillhouse maj`,
1
+ // What the module typescript brings to the update of a project (`grillhouse maj`; the update:
2
+ // packages/grillhouse/docs/architecture/installation.md §5.2;
2
3
  // scripts/grillhouse-maj.mjs), the demand `miseAJour` of the join (scripts/jointure.d.ts), as the
3
4
  // `init` generator of a plugin of Nx brings its tool to a workspace. The core writes the root
4
5
  // package.json after, and reports the lines.
@@ -23,9 +24,8 @@
23
24
  // it) passes to `^<version>`, as `npm install <pkg>@<version> --workspaces`, Renovate and syncpack
24
25
  // align every declaration of a dependency of the workspace; a range that covers the version, one
25
26
  // above it, or one that is no range of versions (`file:`, `workspace:`) stays. The report names
26
- // each manifest brought up. Witness: BPScript at 0.25.1 (bp-mono-vbwf.322.15), whose packages kept
27
- // `^0.24.0`: npm left a copy 0.24.15 under each `packages/*/node_modules`, where the entry
28
- // `./vitest-config/duree` does not resolve.
27
+ // each manifest brought up; a stale range leaves npm a copy of an older frame under the
28
+ // package's `node_modules`, where the entries of the current one do not resolve.
29
29
  // - A package of the frame whose code imports the frame's package (a file of its `src/` out of the
30
30
  // tests, its imports read by TypeScript's `preProcessFile`) declares it in its `dependencies`, as
31
31
  // npm puts there what the published code imports: a declaration in its `devDependencies` moves
@@ -38,7 +38,7 @@
38
38
  // - The typing: each package of TypeScript (a `tsconfig.json`) that has no `typecheck` script
39
39
  // receives the template's, `tsc -p tsconfig.json --noEmit`: each package of the frame in a
40
40
  // project with `workspaces` (the root's `typecheck` stays the project's), the root in a project
41
- // without. Witness: BPScript 320.21.4, whose type errors in test/ showed only at night.
41
+ // without.
42
42
  // - `turbo.json` is the project's own file. A project with no `turbo.json` receives the frame's
43
43
  // template of its form: `templates/turbo/paquets.json` when its package.json declares
44
44
  // `workspaces`, else `templates/turbo/sans-paquets.json`. A `turbo.json` present is never written
@@ -1,5 +1,6 @@
1
1
  // The module a test file imports that Vitest did not find, read from the message of its load
2
- // failure: the path the import names, resolved from the test file. A test written before its code
2
+ // failure: the path the import names, resolved from the test file (packages/grillhouse/docs/architecture/tests.md
3
+ // §3.3). A test written before its code
3
4
  // imports the module the ticket creates; that load failure is its red, as a test target that does
4
5
  // not compile is in a compiled language (`echecDeCompilation` of cargo and c). An import of a
5
6
  // package (a bare name) is no module of the project: null.
@@ -1,4 +1,5 @@
1
- // The walk of the repository every guard of the module typescript makes: the files under a path,
1
+ // The walk of the repository every guard of the module typescript makes (packages/grillhouse/docs/architecture/tests.md
2
+ // §3.4): the files under a path,
2
3
  // Vite's temporary files never listed, a file or a directory gone before the walk reaches it
3
4
  // passed over. The guards walk the repository while other processes write in it (`npm run
4
5
  // verifier` plays them beside the tests). Node alone (./vitest-config/lances.mjs, which the
@@ -1,6 +1,7 @@
1
1
  // The references of a ticket's elements found through the types, as « find all references » of
2
2
  // rust-analyzer and of TypeScript's language service: an element is resolved as a symbol of the
3
- // repository's code (a declaration of a package, a member of a type, a function internal to a
3
+ // repository's code (the survey of the readers: packages/grillhouse/docs/architecture/tests.md §3.3;
4
+ // a declaration of a package, a member of a type, a function internal to a
4
5
  // package), and its references are those the language service resolves to that symbol, never a
5
6
  // text that happens to bear its name. scripts/composants-affectes.mjs runs it beside its survey
6
7
  // by the names; scripts/langages/typescript/elements-du-lot.mjs reads the declarations and the exports of a lot
@@ -1,6 +1,7 @@
1
1
  // The rule of a test file of the module typescript, the fourth demand of the join
2
2
  // (scripts/jointure.d.ts, `estUnTest`): what the testwriter writes, as Pants tells `python_tests`
3
- // from `python_test_utils`. A file the testwriter writes is, one or several of:
3
+ // from `python_test_utils` (packages/grillhouse/docs/architecture/tests.md §3.3). A file the
4
+ // testwriter writes is, one or several of:
4
5
  //
5
6
  // - `joue`: a test Vitest plays, its name `*.test.*` or `*.spec.*` of a module (`NOM_DE_TEST` of
6
7
  // scripts/langages/typescript/consommateurs.mjs), wherever it lies;
@@ -1,7 +1,7 @@
1
1
  // The summary of a run of Turborepo (`turbo run … --summarize`, `.turbo/runs/<id>.json`), read and
2
2
  // kept once, here: the module typescript drives Turborepo, and the join serves these members to the
3
3
  // modules cargo and python through the services of the core (`tachesDuVerdict`,
4
- // scripts/taches-du-graphe.mjs).
4
+ // scripts/taches-du-graphe.mjs; packages/grillhouse/docs/architecture/tests.md §3.3).
5
5
  //
6
6
  // - `resumesDuLancement` names the summaries present in a project before a run.
7
7
  // - `garderLesResumes` moves the summaries a run wrote into `<dossier>/turbo/`, the results
@@ -3,7 +3,8 @@
3
3
  // lintian holds a package's synopsis (`synopsis-too-long`) and clippy a doc's first paragraph
4
4
  // (`too_long_first_doc_paragraph`). The index of the interfaces (`docs/agents/index-des-interfaces.md`)
5
5
  // and the section « Ce que les composants d'avant publient » of a role agent's instruction carry
6
- // that sentence for every element (scripts/langages/typescript/index-interfaces.mjs).
6
+ // that sentence for every element (scripts/langages/typescript/index-interfaces.mjs). The guard
7
+ // `resumes` (packages/grillhouse/docs/architecture/tests.md §3.4).
7
8
  //
8
9
  // npx grillhouse resumes run from the repository root (a guard of grillhouse:gardes)
9
10
  //
@@ -1,6 +1,7 @@
1
1
  // The skeleton of a new package of the module typescript, the demand `squelette` of the join
2
2
  // (scripts/jointure.d.ts), which `grillhouse paquet` writes (scripts/paquet.mjs), as `nx g
3
- // @nx/js:lib` and `turbo gen workspace` write one: no behaviour, no test.
3
+ // @nx/js:lib` and `turbo gen workspace` write one: no behaviour, no test. The birth of a
4
+ // package: packages/grillhouse/docs/architecture/tests.md §3.3.
4
5
  //
5
6
  // - A package of TypeScript lives under `packages/<nom>`, where the module finds its components
6
7
  // (./composants.mjs); another path is refused, named.
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  // The size of each test, on the model of the test pyramid of Google (Software Engineering at
3
3
  // Google, ch. 11 and 14: small ~80 %, medium ~15 %, large ~5 %) and of Bazel's `size` (small,
4
- // medium, large): a large test of the day is refused, as it belongs to the night.
4
+ // medium, large): a large test of the day is refused, as it belongs to the night. The guard
5
+ // `tailles-des-tests` (packages/grillhouse/docs/architecture/tests.md §3.4).
5
6
  //
6
7
  // npx grillhouse tailles-des-tests run from the repository root (a guard of grillhouse:gardes)
7
8
  //
@@ -21,11 +22,11 @@
21
22
  // or it mounts a temporary directory (`mkdtemp`, `tmpdir`) and, in a process call carrying
22
23
  // `cwd:` (or `-C`, `--prefix`), starts one of the heavy tools of OUTILS_LOURDS (turbo,
23
24
  // vitest, knip, depcruise, api-extractor), named by a literal argument or a literal path to
24
- // its binary, with no `git init` (grillhouse-44b.10.4, Bazel's test-encyclopedia: a test
25
- // that runs the product in a trial project is large);
25
+ // its binary, with no `git init` (Bazel's test-encyclopedia: a test that runs the
26
+ // product in a trial project is large);
26
27
  // or it starts a Temporal development server (the literal arguments `'server', 'start-dev'`
27
28
  // in a process call of its text or of its test material): a test that mounts a real server
28
- // is large (grillhouse-4nr.16). A tool named by a variable, or run by
29
+ // is large. A tool named by a variable, or run by
29
30
  // an npm script (`npm run verifier`), escapes the reading and the test stays medium; so
30
31
  // does a call without `cwd` (on the repository);
31
32
  // - medium (`moyen`): it starts a process (it imports `child_process`, `execa` or `zx`), or it
@@ -1,13 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  // The night tests of a project, the command `tests-de-nuit` of the module typescript
3
3
  // (scripts/jointure.d.ts), which the night (scripts/nuit.sh) runs in its copy after the full pass,
4
- // through its mounts.
4
+ // through its mounts. Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.3 (the module
5
+ // of a language) and the document of the entry on main, §5.3 (the night).
5
6
  //
6
7
  // node tests-de-nuit.mjs from the root of the copy: the night of the poste
7
8
  // node tests-de-nuit.mjs --hors-du-poste the night of an equipped runner: all but @poste
8
9
  // node tests-de-nuit.mjs --hors-du-poste --sans-equipement all but @poste and @equipee
9
10
  // node tests-de-nuit.mjs --du-poste the tests tagged @poste, then the measures of time unless
10
- // the project's Nuit flow plays them (the night of PC3)
11
+ // the project's Nuit flow plays them
11
12
  // node tests-de-nuit.mjs --mesures the benches and the time witnesses alone
12
13
  // node tests-de-nuit.mjs --hors-du-poste --tranche i/n its tranche i of n
13
14
  //
@@ -20,8 +21,8 @@
20
21
  // the copy: `npx --no-install vitest run --root <copie> --config <configuration>`, once for the
21
22
  // night tests (GRILLHOUSE_TESTS_DE_NUIT=nuit), then once for the measures alone, one file at a
22
23
  // time (GRILLHOUSE_TESTS_DE_NUIT=mesures), as Bazel plays a test tagged `exclusive` after the
23
- // others, nothing beside it, and as the module cargo plays its benches after its night tests
24
- // (grillhouse-bd7). Each run plays when the copy holds its files.
24
+ // others, nothing beside it, and as the module cargo plays its benches after its night tests.
25
+ // Each run plays when the copy holds its files.
25
26
  // - Each run plays one Vitest per unit: the root under the frame's configuration alone, and each
26
27
  // directory below it that holds a Vitest configuration (`vitest.config.*`, else `vite.config.*`)
27
28
  // with `--root` at that directory, under that configuration merged with the frame's, what the
@@ -3,7 +3,8 @@
3
3
  // runner) does not have bears the tag `@poste` in the comment at its head (`porteLEtiquetteDuPoste`
4
4
  // of ./vitest-config/cibles.mjs), as Bazel's tags (`manual`, `exclusive`) and pytest's markers live
5
5
  // with the test; the night of a shared machine leaves it out (`tests-de-nuit --hors-du-poste`), the
6
- // night of the poste plays it. The tag lives in the test, never in a list beside it.
6
+ // night of the poste plays it. The tag lives in the test, never in a list beside it. Mechanism:
7
+ // packages/grillhouse/docs/architecture/tests.md, §3.4 (the guards).
7
8
  //
8
9
  // npx grillhouse tests-du-poste run from the repository root (a guard of grillhouse:gardes)
9
10
  //
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  // The day's tests, as Turborepo's tasks (`npm test`, `npm run test:forcer`): the build, then the
3
3
  // `test:unit` of each package, an unchanged task replayed from Turborepo's cache.
4
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.1 (command of the tests), §5.4.
4
5
  //
5
6
  // npx grillhouse tests [--force] [<path>…] [--<option>=<value>…]
6
7
  //
@@ -9,79 +10,56 @@
9
10
  // - A path is written from the root of the repository: a test file or a directory. In a repository
10
11
  // of packages, each path plays in the package that holds it: Turborepo runs the `test:unit` of
11
12
  // those packages only (`--filter=<name>`), and their Vitest receives each path made absolute,
12
- // which it matches against its own test files (a path of another package matches none of them).
13
- // Turborepo filters packages, not files, and Vitest resolves a relative path from the directory
14
- // of the package that runs it, so the frame translates each path into its package; a Vitest at the
15
- // root (its projects) would run each package's tests under the root's version, not the one the
16
- // package declares. A path out of every package, in a package out of the frame
17
- // (`docs/agents/hors-cadre.txt`), or in a package without a `test:unit` script is refused,
18
- // named, and nothing plays. In a repository without packages, the paths go to the root's Vitest
19
- // as they are.
20
- // - The paths and the options reach Vitest in the variable `GRILLHOUSE_TESTS`
21
- // (scripts/langages/typescript/vitest-config/cibles.mjs), which the `env` of the task `test:unit` names, never
22
- // after `--`: Turborepo passes the arguments after `--` to the tasks the command names only, and
23
- // counts them in the hash of every task of the run (its documentation, « Caching »: « including
24
- // dependencies of `build` that did not receive `--arg=value` »), where a variable of a task's
25
- // `env` enters that task's hash alone. So a run with paths is one Turborepo run of the tests with
13
+ // which it matches against its own test files. A path out of every package, in a package out of
14
+ // the frame (`docs/agents/hors-cadre.txt`), or in a package without a `test:unit` script is
15
+ // refused, named, and nothing plays. In a repository without packages, the paths go to the
16
+ // root's Vitest as they are.
17
+ // - The paths and the options reach Vitest in `GRILLHOUSE_TESTS` (vitest-config/cibles.mjs), which
18
+ // the `env` of the task `test:unit` names, never after `--` (Turborepo counts those arguments
19
+ // in the hash of every task of the run). A run with paths is one Turborepo run of the tests with
26
20
  // what they depend on (`turbo run test:unit --filter=<name>`); a package named whole (the exact
27
21
  // folder of a package) carries no path: it plays under the hash of the complete pass, and a run
28
- // that mixes it with files of another package is two runs, the code the first that is not 0:
29
- // the builds and the traces they
30
- // wait for play first, from the cache when nothing moved, whatever paths are named, and the hash
31
- // of the tests holds theirs, as Bazel's key of a target holds its transitive inputs; a change to
32
- // a package the tests import, or to what they read, plays them again. Every other run of
33
- // Turborepo plays with the variable unset.
34
- // - Each run of Turborepo plays every task whose dependencies succeed
35
- // (`--continue=dependencies-successful`), as Bazel's `--keep_going` and `npm run verifier` do:
36
- // each build that fails is named on Turborepo's line « Failed: », a test that waits for a failed
37
- // build does not play, and the exit code stays red. A build that fails first does not hide another
38
- // one, which the run would otherwise cancel unreported.
22
+ // that mixes it with files of another package is two runs, the code the first that is not 0.
23
+ // Every other run of Turborepo plays with the variable unset.
24
+ // - Each run plays every task whose dependencies succeed (`--continue=dependencies-successful`):
25
+ // each build that fails is named on Turborepo's line « Failed: », a test that waits for it does
26
+ // not play, and the exit code stays red.
39
27
  // - `--force` with paths plays the tests named for real, their builds replayed from the cache:
40
- // Turborepo's `--force` re-executes every task of the run, so the variable carries the moment of
41
- // the run instead (`rejouer`), a value no cached run of the tests has. A test suspected unstable
42
- // is played again, and a build, which the same inputs give again, is not.
28
+ // the variable carries the moment of the run (`rejouer`) instead of Turborepo's `--force`.
43
29
  // - In the envelope of an agent (`GRILLHOUSE_ENVELOPPE`, scripts/enveloppe/paquets-du-plan.mjs),
44
- // the packages out of its plan and their traces arrive built by the launcher and read-only, as
45
- // in a sandbox of Bazel: the build is the named packages' alone, with the traces of those
46
- // packages their tests wait for, which live in the package the agent writes
30
+ // the packages out of its plan and their traces arrive built and read-only: the build is the
31
+ // named packages' alone, with the traces of those packages their tests wait for
47
32
  // (`turbo run build <name>#trace:<t>… --only --filter=<name>`, their task ids read in
48
- // Turborepo's plan of the tests, `turbo run test:unit --filter=<name> --dry=json`), never
49
- // their dependencies nor a neighbour's trace; then the tests alone
50
- // (`turbo run test:unit --only --filter=<name>`), the paths in the variable. A named package
51
- // that the envelope shows read-only (one out of the plan; the shared test material, for every
52
- // role but the testwriter) is not built, nor are its traces: it arrives built, as a read-only
53
- // input of Bazel; the frame knows it read-only by testing its directory for writing
54
- // (`inscriptible`), where the envelope mounts it. The shared test material plays its tests as
55
- // it is: the logs of its tasks go to the envelope's directories proper to the session
56
- // (`sortiesDeTest`, scripts/enveloppe/enveloppe.mjs), never into its source. A package out of
57
- // the plan has no such directories: Turborepo and Vite cannot write its logs and its cache, and
58
- // a run of its tests fails on « Read-only file system »; its tests play out of the envelope. The
59
- // verdict that counts is the reviewer's and the integration's, out of the envelope.
33
+ // `turbo run test:unit --filter=<name> --dry=json`), never their dependencies nor a neighbour's
34
+ // trace; then the tests alone (`turbo run test:unit --only --filter=<name>`), the paths in the
35
+ // variable. A named package that the envelope shows read-only (`inscriptible`: one out of the
36
+ // plan; the shared test material, for every role but the testwriter) is not built, nor are its
37
+ // traces. The shared test material plays its tests as it is, the logs of its tasks going to the
38
+ // envelope's directories proper to the session (`sortiesDeTest`, scripts/enveloppe/enveloppe.mjs).
39
+ // A package out of the plan has none: its tests fail on « Read-only file system » and play out
40
+ // of the envelope.
60
41
  // - An argument that begins with « - » is an option of Vitest, written `--<name>=<value>`, carried
61
42
  // in the variable beside the paths.
62
- // - A night test or a time budget bench, which the day leaves out, plays when a path names its own
63
- // file, under the measure of time of the day's configuration (scripts/langages/typescript/vitest-config/cibles.mjs);
64
- // a directory or a package named leaves them out.
65
- // - A run that plays no test fails: the frame's base configuration of Vitest keeps Vitest's
66
- // `passWithNoTests: false` (scripts/langages/typescript/vitest-config/base.mjs).
67
- // - Under the circuit's mark (`GRILLHOUSE_DEPUIS_LE_VERT`, its proof and its checks,
68
- // scripts/circuit.mjs), a run measures itself against the last green, as `npm run verifier`
69
- // does (scripts/dernier-vert.mjs): in a package or a directory named, the tests Vitest relates to
70
- // the files changed since it, every test when a change lies out of Vitest's graph; a file named
71
- // itself plays, changed or not; `--force` plays them all. Without the mark, every test named
72
- // plays. Given the base of the lot besides (`GRILLHOUSE_BASE_DU_LOT`, in a project whose CI runs
73
- // on a ticket's branch), it measures itself against that base, targeted: the tests Vitest
74
- // relates to the lot, never the whole package for a file out of its graph.
75
- // - While the environment names a results directory (`GRILLHOUSE_RESULTATS`,
76
- // scripts/resultats.mjs), each run of Turborepo writes its summary (`--summarize`), moved there,
77
- // and Vitest its JSON report there: what the circuit reads of a run.
78
- // - While the environment names the progress directory of a pass (`GRILLHOUSE_AVANCEMENT`,
79
- // scripts/avancement.mjs: the circuit's proof and checks), each run of the tests plans its
80
- // tasks first, and Vitest writes there the files done and planned of each.
81
- // - The run has a base of its own (scripts/mesure/base-de-passe.mjs), which it sweeps first
82
- // of the bases a killed run left: it names it in TMPDIR, TMP and TEMP to every run of
83
- // Turborepo, whose root's `globalPassThroughEnv` passes TMPDIR on to every task, and removes it
84
- // at its end, green, red or interrupted (SIGINT, SIGTERM, SIGHUP).
43
+ // - A time budget bench or a time witness, which the day leaves out, plays when a path names its
44
+ // own file, under the measure of time of the day's configuration (vitest-config/cibles.mjs);
45
+ // a night test named is refused, naming it, and nothing plays (./tests-de-nuit.mjs); a
46
+ // directory or a package named leaves them all out.
47
+ // - A run that plays no test fails: the base configuration of Vitest keeps `passWithNoTests:
48
+ // false` (vitest-config/base.mjs).
49
+ // - Under the circuit's mark (`GRILLHOUSE_DEPUIS_LE_VERT`, scripts/circuit.mjs), a run measures
50
+ // itself against the last green as `npm run verifier` does (scripts/dernier-vert.mjs): in a
51
+ // package or a directory named, the tests Vitest relates to the files changed since it, every
52
+ // test when a change lies out of Vitest's graph; a file named itself plays, changed or not;
53
+ // `--force` plays them all. Without the mark, every test named plays. With the base of the lot
54
+ // besides (`GRILLHOUSE_BASE_DU_LOT`), it measures against that base, targeted.
55
+ // - While the environment names a results directory (`GRILLHOUSE_RESULTATS`), each run of
56
+ // Turborepo writes its summary (`--summarize`), moved there, and Vitest its JSON report there.
57
+ // - While it names the progress directory of a pass (`GRILLHOUSE_AVANCEMENT`,
58
+ // scripts/avancement.mjs), each run plans its tasks first, and Vitest writes there the files
59
+ // done and planned of each.
60
+ // - The base of the run (scripts/mesure/base-de-passe.mjs), swept first of the bases a killed run
61
+ // left: named in TMPDIR, TMP and TEMP to every run of Turborepo (`globalPassThroughEnv`), and
62
+ // removed at the end, green, red or interrupted (SIGINT, SIGTERM, SIGHUP).
85
63
  // The exit code is Turborepo's; 2 for a path refused.
86
64
  import { spawnSync } from 'node:child_process';
87
65
  import { accessSync, constants, existsSync, readdirSync, statSync } from 'node:fs';
@@ -2,14 +2,14 @@
2
2
  // The title of a test, on the model of Software Engineering at Google (ch. 12: « write a test for
3
3
  // each behavior »): a test bears the name of the behavior it proves, never a ticket's or a
4
4
  // « critère N »; a test whose title does not say its behavior ends deleted. The ticket goes to the
5
- // commit message.
5
+ // commit message. The guard `titres-de-tests` (packages/grillhouse/docs/architecture/tests.md §3.4).
6
6
  //
7
7
  // npx grillhouse titres-de-tests run from the repository root (a guard of grillhouse:gardes)
8
8
  //
9
9
  // - The count is a union: a title counts once if it names a ticket of the project (its prefix, read
10
10
  // from the key `issue-prefix` of `.beads/config.yaml`, committed, never by `bd`, which a CI does
11
11
  // not have; the guard names the file or the key when it is missing), followed by an
12
- // identifier: `grillhouse-44b.10.8`) or a « critère N » (or « critères N »), or both.
12
+ // identifier) or a « critère N » (or « critères N »), or both.
13
13
  // - The guard reads the Vitest tests of the project (the files `*.test.*` and `*.spec.*` of every
14
14
  // component, the night tests included, as ./tailles-des-tests.mjs lists them): the calls
15
15
  // `describe`, `it` and `test` and their variants (`skip`, `only`, `each`, `todo`...). It sees the