@roomi-fields/grillhouse 0.49.0 → 0.50.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 (315) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +38 -0
  3. package/bin/grillhouse.mjs +2 -0
  4. package/cadre/templates/projet/.github/workflows/ci.yml +5 -0
  5. package/cadre/templates/projet/.github/workflows/nuit.yml +6 -4
  6. package/cadre/templates/projet/CLAUDE.md +13 -96
  7. package/cadre/templates/projet/docs/agents/issue-tracker.md +5 -5
  8. package/charte.md +88 -96
  9. package/dist/temporal/acte.d.ts +9 -0
  10. package/dist/temporal/acte.js +45 -21
  11. package/dist/temporal/acte.js.map +1 -1
  12. package/dist/temporal/circuit/activites.js +2 -1
  13. package/dist/temporal/circuit/activites.js.map +1 -1
  14. package/dist/temporal/circuit/appel.js +2 -2
  15. package/dist/temporal/circuit/appel.js.map +1 -1
  16. package/dist/temporal/circuit/client.d.ts +2 -4
  17. package/dist/temporal/circuit/client.js +5 -8
  18. package/dist/temporal/circuit/client.js.map +1 -1
  19. package/dist/temporal/circuit/commande.js +5 -4
  20. package/dist/temporal/circuit/commande.js.map +1 -1
  21. package/dist/temporal/circuit/contrat.d.ts +3 -3
  22. package/dist/temporal/circuit/contrat.js +2 -2
  23. package/dist/temporal/circuit/contrat.js.map +1 -1
  24. package/dist/temporal/circuit/deroule.js +4 -4
  25. package/dist/temporal/circuit/deroule.js.map +1 -1
  26. package/dist/temporal/commande.js +1 -1
  27. package/dist/temporal/commande.js.map +1 -1
  28. package/dist/temporal/deroules.js +3 -4
  29. package/dist/temporal/deroules.js.map +1 -1
  30. package/dist/temporal/etat.js +1 -1
  31. package/dist/temporal/etat.js.map +1 -1
  32. package/dist/temporal/file/activites.js +2 -1
  33. package/dist/temporal/file/activites.js.map +1 -1
  34. package/dist/temporal/file/client.js.map +1 -1
  35. package/dist/temporal/file/contrat.js +3 -2
  36. package/dist/temporal/file/contrat.js.map +1 -1
  37. package/dist/temporal/file/deroule.js +2 -1
  38. package/dist/temporal/file/deroule.js.map +1 -1
  39. package/dist/temporal/installation.js +2 -0
  40. package/dist/temporal/installation.js.map +1 -1
  41. package/dist/temporal/nuits/activites.js +4 -3
  42. package/dist/temporal/nuits/activites.js.map +1 -1
  43. package/dist/temporal/nuits/appel.js +2 -1
  44. package/dist/temporal/nuits/appel.js.map +1 -1
  45. package/dist/temporal/nuits/choix.js +2 -1
  46. package/dist/temporal/nuits/choix.js.map +1 -1
  47. package/dist/temporal/nuits/client.js +2 -1
  48. package/dist/temporal/nuits/client.js.map +1 -1
  49. package/dist/temporal/nuits/commande.js +2 -1
  50. package/dist/temporal/nuits/commande.js.map +1 -1
  51. package/dist/temporal/nuits/contrat.js +2 -1
  52. package/dist/temporal/nuits/contrat.js.map +1 -1
  53. package/dist/temporal/nuits/deroule.js +2 -1
  54. package/dist/temporal/nuits/deroule.js.map +1 -1
  55. package/dist/temporal/places/activites.js +2 -1
  56. package/dist/temporal/places/activites.js.map +1 -1
  57. package/dist/temporal/places/client.js +1 -0
  58. package/dist/temporal/places/client.js.map +1 -1
  59. package/dist/temporal/places/deroule.js +4 -5
  60. package/dist/temporal/places/deroule.js.map +1 -1
  61. package/dist/temporal/tickets/activites.js +1 -1
  62. package/dist/temporal/tickets/activites.js.map +1 -1
  63. package/dist/temporal/tickets/deroule.js +4 -4
  64. package/dist/temporal/tickets/deroule.js.map +1 -1
  65. package/docs/ARCHITECTURE.md +35 -13
  66. package/docs/CADRE.md +10 -68
  67. package/docs/INTERFACE.md +59 -179
  68. package/docs/architecture/circuit.md +440 -0
  69. package/docs/architecture/entree.md +281 -0
  70. package/docs/architecture/greffon.md +284 -0
  71. package/docs/architecture/installation.md +306 -0
  72. package/docs/architecture/machine.md +383 -0
  73. package/docs/architecture/tests.md +337 -0
  74. package/package.json +1 -1
  75. package/scripts/abi-des-dependances.mjs +2 -1
  76. package/scripts/activites.mjs +8 -8
  77. package/scripts/aiguillage.mjs +4 -4
  78. package/scripts/arbitrages.mjs +1 -1
  79. package/scripts/arbres-juges.mjs +2 -1
  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/binaires.mjs +2 -1
  84. package/scripts/branche-de-nuit.mjs +2 -1
  85. package/scripts/cadre.mjs +12 -3
  86. package/scripts/ci-de-main.mjs +2 -1
  87. package/scripts/circuit.mjs +101 -618
  88. package/scripts/circuits-cles.mjs +4 -6
  89. package/scripts/circuits-du-serveur.mjs +1 -1
  90. package/scripts/codes-de-sortie.mjs +1 -1
  91. package/scripts/coeurs-dedies.mjs +2 -4
  92. package/scripts/commande-du-langage.mjs +2 -0
  93. package/scripts/commandes-composees.mjs +3 -3
  94. package/scripts/commandes-du-path.mjs +1 -1
  95. package/scripts/composants-affectes.mjs +3 -1
  96. package/scripts/composition-des-langages.mjs +2 -0
  97. package/scripts/conformite.d.ts +2 -1
  98. package/scripts/conformite.mjs +2 -0
  99. package/scripts/consommation-des-passes.mjs +5 -4
  100. package/scripts/consommation.mjs +1 -0
  101. package/scripts/copies-finies.mjs +9 -10
  102. package/scripts/crochets.mjs +2 -1
  103. package/scripts/depart-du-ticket.mjs +2 -2
  104. package/scripts/dependances-internes.mjs +4 -2
  105. package/scripts/dernier-vert.mjs +3 -3
  106. package/scripts/dette.d.ts +2 -1
  107. package/scripts/dette.mjs +2 -0
  108. package/scripts/direct.mjs +2 -1
  109. package/scripts/disque-des-copies.mjs +1 -1
  110. package/scripts/donnees-cles.mjs +2 -0
  111. package/scripts/droits.mjs +12 -10
  112. package/scripts/echantillonneur-de-la-passe.mjs +1 -1
  113. package/scripts/effets.mjs +3 -3
  114. package/scripts/engendres.mjs +1 -1
  115. package/scripts/enveloppe/codes.mjs +1 -0
  116. package/scripts/enveloppe/enveloppe.mjs +113 -89
  117. package/scripts/enveloppe/lancer.sh +5 -3
  118. package/scripts/enveloppe/paquets-du-plan.mjs +4 -6
  119. package/scripts/enveloppe/travail-de-la-copie.mjs +11 -16
  120. package/scripts/etapes.mjs +10 -9
  121. package/scripts/etat-du-depot.mjs +2 -1
  122. package/scripts/faits-du-circuit.mjs +19 -19
  123. package/scripts/fermeture-de-la-machine.mjs +2 -2
  124. package/scripts/fichier-du-poste.mjs +3 -4
  125. package/scripts/fichiers-nommes.mjs +2 -1
  126. package/scripts/file-des-tickets.mjs +3 -1
  127. package/scripts/flux-de-la-nuit.mjs +39 -0
  128. package/scripts/flux-des-paquets.mjs +2 -1
  129. package/scripts/fusion-du-changelog.mjs +2 -1
  130. package/scripts/garde-de-la-memoire.mjs +1 -1
  131. package/scripts/gardes-du-cadre.mjs +2 -0
  132. package/scripts/greffons.mjs +2 -2
  133. package/scripts/grillhouse-maj.mjs +55 -150
  134. package/scripts/groupe-cles.mjs +2 -1
  135. package/scripts/index-interfaces.mjs +2 -0
  136. package/scripts/init.mjs +2 -1
  137. package/scripts/integration/file.mjs +3 -3
  138. package/scripts/integration/integrer.mjs +5 -6
  139. package/scripts/integration/rejeu.mjs +4 -2
  140. package/scripts/integration/verdict.mjs +2 -1
  141. package/scripts/jointure.d.ts +5 -1
  142. package/scripts/journal-des-etats.mjs +2 -2
  143. package/scripts/langages/cargo/binaires.mjs +3 -2
  144. package/scripts/langages/cargo/clippy.mjs +2 -0
  145. package/scripts/langages/cargo/commandes.mjs +72 -17
  146. package/scripts/langages/cargo/composants.mjs +4 -3
  147. package/scripts/langages/cargo/elements-du-lot.mjs +2 -0
  148. package/scripts/langages/cargo/etiquettes.mjs +87 -0
  149. package/scripts/langages/cargo/executables-de-tests.mjs +3 -1
  150. package/scripts/langages/cargo/exemples.mjs +6 -4
  151. package/scripts/langages/cargo/frontieres.mjs +2 -0
  152. package/scripts/langages/cargo/index-interfaces.mjs +2 -0
  153. package/scripts/langages/cargo/index.mjs +8 -9
  154. package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +8 -8
  155. package/scripts/langages/cargo/migrations/0.34.0-executables-de-tests.mjs +7 -8
  156. package/scripts/langages/cargo/mise-a-jour.mjs +6 -3
  157. package/scripts/langages/cargo/sccache.mjs +10 -6
  158. package/scripts/langages/cargo/squelette.mjs +2 -0
  159. package/scripts/langages/cargo/tailles-des-tests.mjs +2 -0
  160. package/scripts/langages/cargo/verdict.mjs +8 -6
  161. package/scripts/langages/typescript/chemins-des-tests.mjs +2 -1
  162. package/scripts/langages/typescript/code-mort.mjs +2 -1
  163. package/scripts/langages/typescript/composants.mjs +7 -5
  164. package/scripts/langages/typescript/consommateurs-arbitres.mjs +17 -4
  165. package/scripts/langages/typescript/consommateurs.d.ts +2 -1
  166. package/scripts/langages/typescript/consommateurs.mjs +5 -7
  167. package/scripts/langages/typescript/construire.mjs +2 -1
  168. package/scripts/langages/typescript/elements-du-lot.mjs +2 -1
  169. package/scripts/langages/typescript/exemples.mjs +2 -1
  170. package/scripts/langages/typescript/frontieres.mjs +3 -2
  171. package/scripts/langages/typescript/index-interfaces.mjs +3 -2
  172. package/scripts/langages/typescript/index.mjs +3 -2
  173. package/scripts/langages/typescript/interfaces-contre-code.mjs +2 -1
  174. package/scripts/langages/typescript/lecteurs.mjs +2 -1
  175. package/scripts/langages/typescript/migrations/0.23.0-config-vitest.mjs +5 -6
  176. package/scripts/langages/typescript/migrations/0.24.4-noms-declares-inutilises.mjs +4 -8
  177. package/scripts/langages/typescript/migrations/0.24.6-lignes-mal-formees.mjs +5 -9
  178. package/scripts/langages/typescript/migrations/0.24.7-matiere-dans-les-tests.mjs +6 -10
  179. package/scripts/langages/typescript/migrations/0.25.0-chemins-des-tests.mjs +5 -6
  180. package/scripts/langages/typescript/migrations/0.25.0-tailles-des-tests.mjs +6 -8
  181. package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +5 -4
  182. package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +7 -7
  183. package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +5 -6
  184. package/scripts/langages/typescript/migrations/0.33.0-binaire-de-jour.mjs +6 -6
  185. package/scripts/langages/typescript/migrations/0.33.0-tests-du-poste.mjs +5 -5
  186. package/scripts/langages/typescript/migrations/0.34.1-cache-des-outils.mjs +4 -4
  187. package/scripts/langages/typescript/migrations/0.49.0-tests-equipes.mjs +7 -7
  188. package/scripts/langages/typescript/mise-a-jour.mjs +5 -5
  189. package/scripts/langages/typescript/module-absent.mjs +2 -1
  190. package/scripts/langages/typescript/parcours.mjs +2 -1
  191. package/scripts/langages/typescript/references-par-les-types.mjs +2 -1
  192. package/scripts/langages/typescript/regle-des-tests.mjs +2 -1
  193. package/scripts/langages/typescript/resume-du-lanceur.mjs +1 -1
  194. package/scripts/langages/typescript/resumes.mjs +2 -1
  195. package/scripts/langages/typescript/squelette.mjs +2 -1
  196. package/scripts/langages/typescript/tailles-des-tests.mjs +5 -4
  197. package/scripts/langages/typescript/tests-de-nuit.mjs +12 -5
  198. package/scripts/langages/typescript/tests-du-poste.mjs +60 -21
  199. package/scripts/langages/typescript/tests.mjs +44 -66
  200. package/scripts/langages/typescript/titres-de-tests.mjs +2 -2
  201. package/scripts/langages/typescript/tranches.mjs +2 -1
  202. package/scripts/langages/typescript/turbo-des-paquets.mjs +87 -148
  203. package/scripts/langages/typescript/verdict.mjs +2 -1
  204. package/scripts/langages/typescript/verifier.mjs +64 -99
  205. package/scripts/langages/typescript/verrou-des-dependances.mjs +2 -1
  206. package/scripts/langages/typescript/vitest-config/avancement.reporter.mjs +1 -0
  207. package/scripts/langages/typescript/vitest-config/base.mjs +5 -5
  208. package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -0
  209. package/scripts/langages/typescript/vitest-config/changements.mjs +6 -10
  210. package/scripts/langages/typescript/vitest-config/cibles.mjs +3 -3
  211. package/scripts/langages/typescript/vitest-config/delais.mjs +1 -0
  212. package/scripts/langages/typescript/vitest-config/delais.setup.mjs +1 -0
  213. package/scripts/langages/typescript/vitest-config/duree.classement.mjs +1 -1
  214. package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +4 -3
  215. package/scripts/langages/typescript/vitest-config/lances.mjs +3 -2
  216. package/scripts/langages/typescript/vitest-config/machine.setup.mjs +1 -0
  217. package/scripts/langages/typescript/vitest-config/mesure.mjs +1 -1
  218. package/scripts/langages/typescript/vitest-config/mesure.setup.mjs +1 -0
  219. package/scripts/langages/typescript/vitest-config/registre.setup.mjs +1 -0
  220. package/scripts/langages/typescript/vitest-config/resultats.mjs +2 -1
  221. package/scripts/langages/typescript/vitest-config/resultats.setup.mjs +1 -0
  222. package/scripts/langages/typescript/vitest.nuit.config.mjs +3 -2
  223. package/scripts/langages-des-paquets.mjs +3 -1
  224. package/scripts/langages.mjs +5 -3
  225. package/scripts/lecture-unique.mjs +2 -1
  226. package/scripts/lint-des-scripts.mjs +1 -0
  227. package/scripts/machine.mjs +4 -4
  228. package/scripts/matiere-de-test.d.ts +2 -1
  229. package/scripts/matieres-lues.mjs +2 -0
  230. package/scripts/mesure/avancement.mjs +1 -1
  231. package/scripts/mesure/base-de-passe.mjs +10 -13
  232. package/scripts/mesure/pression.mjs +3 -4
  233. package/scripts/mesure-de-la-machine.mjs +2 -1
  234. package/scripts/migrations/0.23.0-charte-importee.mjs +7 -13
  235. package/scripts/migrations/0.23.0-crochets-de-seance.mjs +6 -8
  236. package/scripts/migrations/0.23.0-marche-du-projet.mjs +8 -12
  237. package/scripts/migrations/0.23.2-copies-du-cadre.mjs +9 -32
  238. package/scripts/migrations/0.24.0-circuit-simplifie.mjs +11 -39
  239. package/scripts/migrations/0.24.12-tri-des-decouvertes.mjs +6 -9
  240. package/scripts/migrations/0.24.2-api-extractor-du-paquet.mjs +8 -19
  241. package/scripts/migrations/0.25.0-script-des-tests.mjs +7 -13
  242. package/scripts/migrations/0.27.0-langages-dans-l-architecture.mjs +9 -23
  243. package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +7 -9
  244. package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +7 -18
  245. package/scripts/migrations/0.33.0-cache-distant.mjs +6 -9
  246. package/scripts/migrations/0.33.0-ci-du-cadre.mjs +5 -8
  247. package/scripts/migrations/0.33.0-node-26.mjs +5 -8
  248. package/scripts/migrations/0.35.0-greffon-mattpocock-retire.mjs +5 -10
  249. package/scripts/migrations/0.44.0-node-26-seul.mjs +6 -9
  250. package/scripts/migrations/0.44.0-seuil-des-codes-de-tickets.mjs +6 -7
  251. package/scripts/migrations/0.47.0-ci-de-main.mjs +6 -7
  252. package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +6 -6
  253. package/scripts/migrations/0.48.0-poussee-retiree.mjs +3 -5
  254. package/scripts/migrations/0.49.0-reservation-de-trois-coeurs.mjs +3 -4
  255. package/scripts/migrations/0.50.0-reglages-hors-de-la-charte.mjs +81 -0
  256. package/scripts/migrations-des-gardes.mjs +2 -0
  257. package/scripts/migrations.mjs +4 -0
  258. package/scripts/nuit.sh +48 -15
  259. package/scripts/outil.mjs +2 -1
  260. package/scripts/outils-cles.mjs +6 -6
  261. package/scripts/paquet-npm.mjs +3 -2
  262. package/scripts/paquet.mjs +3 -4
  263. package/scripts/paquets.d.ts +1 -1
  264. package/scripts/paquets.mjs +2 -0
  265. package/scripts/passe-de-la-machine.mjs +9 -12
  266. package/scripts/places-de-la-machine.mjs +36 -53
  267. package/scripts/places-du-serveur.mjs +5 -4
  268. package/scripts/plafond-de-la-machine.mjs +19 -19
  269. package/scripts/poussee-retiree.mjs +2 -1
  270. package/scripts/prefixe-des-tickets.mjs +1 -0
  271. package/scripts/preparation.mjs +2 -1
  272. package/scripts/recommencer.mjs +2 -2
  273. package/scripts/references-changees.mjs +1 -1
  274. package/scripts/registre-des-resultats.mjs +3 -1
  275. package/scripts/regles-des-places.mjs +4 -6
  276. package/scripts/repli-de-la-nuit.mjs +107 -35
  277. package/scripts/reponses-du-circuit.mjs +4 -3
  278. package/scripts/reprise.mjs +3 -2
  279. package/scripts/resultats.mjs +71 -93
  280. package/scripts/retirer-copie.sh +2 -1
  281. package/scripts/retirer-les-copies-finies.mjs +2 -1
  282. package/scripts/seances.mjs +3 -2
  283. package/scripts/services-du-noyau.mjs +3 -0
  284. package/scripts/session-start.sh +0 -6
  285. package/scripts/sortie.mjs +2 -1
  286. package/scripts/sources.mjs +2 -0
  287. package/scripts/sous-commandes.mjs +2 -1
  288. package/scripts/sous-modules.sh +24 -43
  289. package/scripts/style-a-l-ecriture.mjs +2 -0
  290. package/scripts/tableau-des-composants.mjs +5 -7
  291. package/scripts/tableau.mjs +6 -5
  292. package/scripts/taches-du-graphe.mjs +3 -0
  293. package/scripts/ticket-du-circuit.mjs +1 -1
  294. package/scripts/ticket.mjs +3 -0
  295. package/scripts/transitions.mjs +30 -19
  296. package/scripts/un-commit-par-ticket.mjs +2 -1
  297. package/scripts/verdict-de-la-nuit.mjs +2 -1
  298. package/scripts/verrou-de-fichier.mjs +1 -0
  299. package/scripts/verrous/commande.mjs +2 -1
  300. package/scripts/verrous/ecriture-hors-enveloppe.mjs +1 -0
  301. package/scripts/verrous/ticket-du-sous-agent.mjs +1 -0
  302. package/scripts/verrous/verrou.mjs +3 -3
  303. package/scripts/workflows-du-cadre.mjs +2 -1
  304. package/skills/architecte/SKILL.md +203 -0
  305. package/skills/architecte/references/exemple-d-architecture.md +159 -0
  306. package/skills/developpeur/SKILL.md +6 -10
  307. package/skills/explorateur/SKILL.md +1 -1
  308. package/skills/grill/SKILL.md +4 -5
  309. package/skills/grill/references/paquets.md +5 -8
  310. package/skills/pitmaster/SKILL.md +179 -268
  311. package/skills/pitmaster/references/cadre.md +7 -6
  312. package/skills/pitmaster/references/consigne-agent.md +36 -32
  313. package/skills/pitmaster/references/tour.md +2 -2
  314. package/skills/redacteur/references/documents-d-un-composant.md +10 -8
  315. package/skills/testwriter/SKILL.md +8 -11
@@ -6,12 +6,13 @@
6
6
  // untracked), and plays the tests whose graph holds one of them (`related`); the frame gives it
7
7
  // the files that differ from the tree of the last green instead, which Vitest's git cannot read
8
8
  // (a green kept on a copy whose lot is not committed).
9
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md, §5.3 (the tests of a package replayed).
9
10
  //
10
11
  // - The variable `GRILLHOUSE_CHANGEMENTS` names a JSON file, `{ racine, fichiers, supprimes, cible }`:
11
12
  // the top of the repository, the files changed or added since the last green and the files
12
13
  // removed, each path from the top, and, for a pass of the circuit measured against the base of
13
14
  // its lot (scripts/dernier-vert.mjs), the mark `cible`. It passes through Turborepo without entering any hash (the root's
14
- // `globalPassThroughEnv`, which scripts/langages/typescript/turbo-des-paquets.mjs writes and checks): a package whose
15
+ // `globalPassThroughEnv`, which ../turbo-des-paquets.mjs writes and checks): a package whose
15
16
  // inputs did not move replays its last green from Turborepo's cache, whatever the last green.
16
17
  // The plugin takes it out of the environment once read: no process the tests start receives it.
17
18
  // - The graph of a test is the test file and the modules it imports, statically or dynamically,
@@ -54,20 +55,15 @@
54
55
  // Vitest's own `forceRerunTriggers` (a configuration's, or its default) still apply, as with
55
56
  // `--changed`. Under the mark `cible`, 5 and 7 do not play the package whole, and no test is
56
57
  // related by the paths it reads (`testsQuiLancent`): the tests Vitest relates alone, the tests
57
- // that declare their reads, and the files named, as `vitest --changed` leaves a file out of its graph to the complete pass, the
58
- // CI's of the ticket's branch and the night's. Witness: grillhouse-4nr.21, whose
59
- // `scripts/session-start.sh` the reads of 276 of the 282 test files of packages/grillhouse hold
60
- // (a test that starts the command reads every script of its table).
58
+ // that declare their reads, and the files named; as `vitest --changed`, a file out of its graph
59
+ // is left to the complete pass, the CI's of the ticket's branch and the night's.
61
60
  // - Otherwise the tests played are those Vitest relates to the files changed or added (`related`,
62
61
  // absolute), the tests that read one of them by its path, a script they launch or a file they
63
62
  // read, with what it imports and names (`testsQuiLancent`, ./lances.mjs, as Bazel's `data`),
64
63
  // the tests that declare they read a file changed, added or removed (`// @lit <motif>` at
65
64
  // their head, `testsQuiDeclarent`, ./lances.mjs), targeted or not, and the files a targeted run
66
- // names themselves (./cibles.mjs): a file named plays, changed or not. Witness: the tests that
67
- // judge a list of the repository complete (the share of `scripts/` and `bin/`, the callers of
68
- // each subcommand), which the targeted passes of grillhouse-44b.15 left red to the CI of the
69
- // branch five times in one night (grillhouse-44b.17). A package where none relates plays none and passes
70
- // (`passWithNoTests`), as Vitest's `--changed` has it.
65
+ // names themselves (./cibles.mjs): a file named plays, changed or not. A package where none
66
+ // relates plays none and passes (`passWithNoTests`), as Vitest's `--changed` has it.
71
67
  //
72
68
  // This module's top level uses Node alone (./cibles.mjs, scripts/langages/typescript/tests.mjs import it); a
73
69
  // turbo.json is read with jsonc-parser, the frame's reader of JSON with comments, loaded then.
@@ -4,6 +4,7 @@
4
4
  // that the `env` of the task `test:unit` names enters the hash of the tests alone
5
5
  // (https://turborepo.dev/docs/reference/configuration#env). Turborepo then plays the tests with
6
6
  // what they depend on, each build and each trace hashed by Turborepo itself.
7
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md, §5.4 (a targeted run), §3.3.
7
8
  //
8
9
  // - The value is JSON: `arguments`, Vitest's arguments (the paths, absolute, and the options
9
10
  // written `--<name>=<value>`), which Vitest's own parser of its command line (`parseCLI`,
@@ -18,9 +19,8 @@
18
19
  // A path of another package names none of its files. Each option enters the test configuration
19
20
  // as Vitest merges its command line over it (`exclude` given on the command line is
20
21
  // `cliExclude`, as Vitest's `normalizeCliOptions` names it).
21
- // - Every measure of time plays at night (grillhouse-bd7), as Bazel leaves a target tagged
22
- // `manual` out of every pattern and the benchmarks of Chromium and rustc-perf leave the CI of
23
- // each commit for a machine at rest: a time budget bench (BUDGET) and a time witness, a test
22
+ // - Every measure of time plays at night, as Bazel leaves a target tagged `manual` out of every
23
+ // pattern: a time budget bench (BUDGET) and a time witness, a test
24
24
  // file that imports the mark of a measure of time (`import { mesurerAuRepos } from
25
25
  // '@roomi-fields/grillhouse/vitest-config/mesure'`, a line of its own, `estTemoin`), are out of
26
26
  // the day, as a night test (NUIT) is. The base configuration excludes the patterns HORS_DU_JOUR;
@@ -8,6 +8,7 @@
8
8
  // large delay, whatever its text reads.
9
9
  // - A setup file of the base configuration applies the delay of its file to each test file
10
10
  // (./delais.setup.mjs).
11
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.4 (the guard of the sizes).
11
12
  import { existsSync } from 'node:fs';
12
13
  import path from 'node:path';
13
14
  import { lesMatieres, classer } from '../tailles-des-tests.mjs';
@@ -1,6 +1,7 @@
1
1
  // A setup file of the base configuration: a test file has the delay of its size, as Bazel gives
2
2
  // each test the delay of its `size`. It reads the size of the file it sets up (./delais.mjs, by the
3
3
  // classification of the guard of the sizes) and gives Vitest its delay for a test and a hook.
4
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.4.
4
5
  import { vi } from 'vitest';
5
6
  import { delaisSurLeDisque } from './delais.mjs';
6
7
 
@@ -3,7 +3,7 @@
3
3
  // the end, Vitest's exit code, and per file its size label, whether it is out of the day and
4
4
  // whether it is a time budget bench, by the rules of ./cibles.mjs) and
5
5
  // never reads the disk nor the global state. The reporter reads those, calls `classer`, writes the
6
- // lines and sets the exit code.
6
+ // lines and sets the exit code. Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.3.
7
7
  //
8
8
  // A failure depends on a duration when it is a failure of a time budget bench (a file
9
9
  // `*.budget.test.*`, `*.budget.spec.*`), of a test marked as a measure of time (`mesurerAuRepos`),
@@ -1,15 +1,16 @@
1
1
  // The duration reporter of the base configuration, beside Vitest's default reporter; a project
2
2
  // names it by its published entry, `@roomi-fields/grillhouse/vitest-config/duree`
3
3
  // (`--reporter=<entry>`, or `reporters` in a configuration; types ./duree.reporter.d.ts). At the end
4
- // of a run with failures, it reads each one:
4
+ // of a run with failures, it reads each one. Mechanism: packages/grillhouse/docs/architecture/tests.md,
5
+ // §3.3 (the module typescript), and the charter's « Une mesure de temps joue la nuit »:
5
6
  //
6
7
  // - a failure depends on a duration when it is a failure of a time budget bench (a file
7
8
  // `*.budget.test.*`, `*.budget.spec.*`), of a test marked as a measure of time (`mesurerAuRepos`,
8
9
  // ./mesure.mjs), or a delay past (an error « Test timed out in <n>ms. » or « Hook timed out in
9
10
  // <n>ms. », Vitest's own message) in a file out of the day (a night test, a bench, a time
10
11
  // witness: `estHorsDuJour` of ./cibles.mjs); every other failure is a real red, a delay past in
11
- // a day test included: a delay of the day is a safeguard, not a measure, as in Bazel and Vitest
12
- // (grillhouse-bd7), and one too tight widens, far above the test's usual duration;
12
+ // a day test included: a delay of the day is a safeguard, not a measure, as in Bazel and Vitest,
13
+ // and one too tight widens, far above the test's usual duration;
13
14
  // - it took place under load when the CPU pressure (./pression.mjs) was at or above the threshold
14
15
  // at the start or at the end of the test (noted by ./mesure.setup.mjs), or, for a hook or a file
15
16
  // that fails outside of a test, at the start or at the end of the run.
@@ -2,6 +2,7 @@
2
2
  // reads by their path, as Bazel's `data` of a test target, which Vitest's graph (the modules a test
3
3
  // imports) does not hold. The frame reads them in the test's text, and in the texts they lead to,
4
4
  // as Bazel's runfiles of a target are those of its `data` and of their own dependencies.
5
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md, §5.3 (the tests of a package replayed).
5
6
  //
6
7
  // - What a test names (`nommesPar`): each path that a string of its code writes whole
7
8
  // (`'../../scripts/verrous/verrou.mjs'`), or that the strings of one call of `join` or
@@ -135,8 +136,8 @@ const estDossier = f => {
135
136
  };
136
137
 
137
138
  // The files under the directory <dir>, absolute, SAUTES left out: the walk of the guards
138
- // (../parcours.mjs), which never lists Vite's temporary files (the night of 2026-11-01,
139
- // grillhouse-rm7: one, beside a configuration of another package, counted as a module).
139
+ // (../parcours.mjs), which never lists Vite's temporary files (one, beside a configuration of
140
+ // another package, would count as a module).
140
141
  const fichiersSous = dir => parcourir(dir, f => SAUTES.has(path.basename(f)));
141
142
 
142
143
  // The specifiers <texte> imports.
@@ -13,6 +13,7 @@
13
13
  //
14
14
  // That trial machine takes no place of the user's machine (scripts/places-de-la-machine.mjs): only
15
15
  // the server of trial a test names (GRILLHOUSE_PLACES_D_ESSAI).
16
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.3, §4.2.
16
17
  import { randomUUID } from 'node:crypto';
17
18
  import { rmSync } from 'node:fs';
18
19
  import { tmpdir } from 'node:os';
@@ -1,6 +1,6 @@
1
1
  // A test that measures time marks itself, so that its failure under load is « à repasser », not a
2
2
  // red (./duree.reporter.mjs), and its file, a time witness, plays at night alone, out of the day
3
- // (./cibles.mjs, grillhouse-bd7):
3
+ // (./cibles.mjs; packages/grillhouse/docs/architecture/tests.md, §3.3):
4
4
  //
5
5
  // import { mesurerAuRepos } from '@roomi-fields/grillhouse/vitest-config/mesure';
6
6
  // it('rend en moins de 50 ms', ctx => mesurerAuRepos(ctx, () => { … expect(ms).toBeLessThan(50); }));
@@ -1,6 +1,7 @@
1
1
  // The setup file of the base configuration: notes the CPU pressure (./pression.mjs) at the start
2
2
  // and at the end of each test in its `task.meta`, which reaches the duration reporter
3
3
  // (./duree.reporter.mjs). The end is noted after a delay past too: Vitest plays `afterEach` then.
4
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.3.
4
5
  import { afterEach, beforeEach } from 'vitest';
5
6
  import { lirePression } from '../../../services-du-noyau.mjs';
6
7
 
@@ -4,6 +4,7 @@
4
4
  // starts inherits (scripts/registre.mjs reads the variable first); the directory is removed at the
5
5
  // end of the test file, and at the exit of the process for one made inside a running test. A
6
6
  // register the launch names stays.
7
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.3, §4.2.
7
8
  import { mkdtempSync, rmSync } from 'node:fs';
8
9
  import { tmpdir } from 'node:os';
9
10
  import path from 'node:path';
@@ -6,7 +6,8 @@
6
6
  // package directory it runs in and its process: two packages, or the same one twice, never write
7
7
  // the same file.
8
8
  // - The variable passes through Turborepo without entering any hash (`globalPassThroughEnv` of the
9
- // root's turbo.json, which scripts/langages/typescript/turbo-des-paquets.mjs writes and checks).
9
+ // root's turbo.json, which ../turbo-des-paquets.mjs writes and checks).
10
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.1, §5.1.
10
11
  import path from 'node:path';
11
12
  import { RESULTATS } from '../../../resultats.mjs';
12
13
 
@@ -7,6 +7,7 @@
7
7
  // or a circuit that a test plays in a repository of trial writes its results there, and its reds
8
8
  // never count in the pass that plays it. The reporters of the run, set up in its main process,
9
9
  // keep the run's own directory. Without the variable, nothing changes.
10
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.3.
10
11
  import { randomUUID } from 'node:crypto';
11
12
  import path from 'node:path';
12
13
  import { RESULTATS } from '../../../resultats.mjs';
@@ -1,7 +1,7 @@
1
1
  // What the day leaves out of a project: the night tests (`*.nuit.test.*`, `*.nuit.spec.*`), too
2
2
  // long for the day, and the measures of time, the time budget benches (`*.budget.test.*`,
3
3
  // `*.budget.spec.*`) and the time witnesses (a test file that imports `mesurerAuRepos`), whose
4
- // measures move with the load of the day (grillhouse-bd7); `npm test`, `npm run verifier` and the
4
+ // measures move with the load of the day; `npm test`, `npm run verifier` and the
5
5
  // integration leave them out (the frame's base configuration of the day, the package
6
6
  // @roomi-fields/grillhouse/vitest-config, which every day configuration extends). The night
7
7
  // (scripts/nuit.sh, by ./tests-de-nuit.mjs) plays them with this configuration, from the root of
@@ -14,7 +14,8 @@
14
14
  // only for its own files (below); it takes from the base configuration the common
15
15
  // environment (git's settings) and the measure of time: the setup file that notes the CPU pressure
16
16
  // of each test and the duration reporter, which gives 75, « à repasser », to a measure that fails
17
- // under load (scripts/langages/typescript/vitest-config/duree.reporter.mjs).
17
+ // under load (./vitest-config/duree.reporter.mjs).
18
+ // Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.3 (the module typescript).
18
19
  //
19
20
  // A run plays one unit of the project: the root, under this configuration alone, or a package that
20
21
  // has a Vitest configuration (`vitest.config.*`, else `vite.config.*`, in its directory, found by
@@ -18,12 +18,14 @@
18
18
  // language; a docs/INTERFACE.md of the package, or of
19
19
  // the root for the row that names it (`.`), whose line `**Langage** : <nom>` names another
20
20
  // language; a row that names a folder of the project no module finds (a package of Python
21
- // without its pyproject.toml, grillhouse-ziy), without the manifest of its language. A folder of
21
+ // without its pyproject.toml), without the manifest of its language. A folder of
22
22
  // a module without its manifest and without row (a folder of `src/` of a project of one package)
23
23
  // is no package; a row that names neither a component nor a folder (a package not yet created,
24
24
  // a crate of another repository) is not judged.
25
25
  // - Each finding is written in SARIF under the guard's name, and on the error stream after ⛔; the
26
26
  // exit code is 1 when there is one, 0 otherwise.
27
+ //
28
+ // The list of the guards: docs/architecture/tests.md §3.4.
27
29
  import { existsSync, readFileSync, statSync } from 'node:fs';
28
30
  import path from 'node:path';
29
31
  import { fileURLToPath, pathToFileURL } from 'node:url';
@@ -15,17 +15,19 @@
15
15
  // `langageDe` their join (./composition-des-langages.mjs), which gives each file to the module
16
16
  // of its component, the module itself when one is declared. A name out of the list is refused,
17
17
  // named.
18
- // - A copy its tool no longer loads is still read: `langageDeLaCopie` gives the join whose
18
+ // - A copy its tool cannot load is still read: `langageDeLaCopie` gives the join whose
19
19
  // readings of the tree (LECTURES: the components, the test material, the class of a file; and
20
20
  // the part of a manifest its tests own) are
21
21
  // played in the main tree of the repository when they throw in the copy, the paths carried from
22
22
  // one tree to the other. A session leaves such a copy between two writes of one change (cargo:
23
- // a dependency moved in the manifest of the workspace and not yet in a crate's, osc-bridge
24
- // OB-ud1.6); the lock of its writes, its envelope and the acts of its circuit read on, as
23
+ // a dependency moved in the manifest of the workspace and not yet in a crate's); the lock of
24
+ // its writes, its envelope and the acts of its circuit read on, as
25
25
  // rust-analyzer keeps the last graph that loaded, and the write that repairs the copy passes.
26
26
  // `langageDe` stays strict: a guard, a build and the red of a reading read the tree as it is.
27
27
  // - A module is loaded once per process, synchronously (`require` of an ES module, Node 22): the
28
28
  // locks and the guards ask it in a hook, where nothing waits.
29
+ //
30
+ // What the core asks of a module: docs/architecture/tests.md §3.3 and scripts/jointure.d.ts.
29
31
  import { spawnSync } from 'node:child_process';
30
32
  import { createRequire } from 'node:module';
31
33
  import path from 'node:path';
@@ -6,7 +6,8 @@
6
6
  // language keeps there what it reads at a cost (cargo's metadata). A reading that throws is not
7
7
  // kept. The scope lives on the process under a global symbol, so that every instance of this file
8
8
  // shares it: the modules of language are loaded by `require` (./langages.mjs), which a test
9
- // runner may load apart from the core's imports.
9
+ // runner may load apart from the core's imports. The join that loads the modules:
10
+ // docs/architecture/tests.md §3.3.
10
11
 
11
12
  const PORTEE = Symbol.for('grillhouse.lecture-unique');
12
13
 
@@ -3,6 +3,7 @@
3
3
  // counted per file and rule against the debt of `grillhouse-dette.json` (`trancher`, dette.mjs).
4
4
  // An error beyond the inscribed count refuses with the file, the rule and the counts.
5
5
  // ESLint is the repository's own tool, played by its executable (the package does not depend on it).
6
+ // The debt: docs/architecture/tests.md §5.5.
6
7
  import { spawnSync } from 'node:child_process';
7
8
  import path from 'node:path';
8
9
  import { fileURLToPath, pathToFileURL } from 'node:url';
@@ -1,12 +1,12 @@
1
1
  // `grillhouse machine fermer [--attendre]` and `grillhouse machine rouvrir`: closes the machine to
2
- // new work and reopens it, as `kubectl cordon` / `drain` / `uncordon` do for a node, so that the
3
- // poste restarts without cutting a circuit in the middle of its work.
2
+ // new work and reopens it, so that the poste restarts without cutting a circuit in the middle of
3
+ // its work. Architecture: docs/architecture/machine.md (§5.7).
4
4
  //
5
5
  // - `fermer`: no place is given any more, to any project of the poste, and no ticket starts; each
6
6
  // circuit alive finishes its step, then waits without starting the next. The command returns at
7
- // once (as `cordon`), saying what still runs by project and by ticket, and « la machine est
7
+ // once, saying what still runs by project and by ticket, and « la machine est
8
8
  // vide » when nothing plays; played again, it reads that state. With `--attendre` it returns
9
- // only once the machine is empty (as `drain`): exit 0.
9
+ // only once the machine is empty: exit 0.
10
10
  // - `rouvrir`: the circuits go on by themselves at the next step.
11
11
  // - A night that holds the machine is never doubled nor lifted: the command says so (exit 0).
12
12
  // - The closure lives in the state of the places on the Temporal server: it survives a restart of
@@ -1,7 +1,8 @@
1
1
  // The types of the shared test material the package's typed tests read
2
2
  // (`@roomi-fields/grillhouse-matiere/test-fixtures`, which publishes its source, not a built
3
3
  // declaration): tsconfig.json maps the entry here, so the typing of this package stays on its own
4
- // files. Only the names these tests import are declared.
4
+ // files. Only the names these tests import are declared. The tests that import them, and what each
5
+ // proves: docs/architecture/tests.md, §3.4 and §5.
5
6
 
6
7
  /** Writes at <repo> the docs/ARCHITECTURE.md of <paquets>: a list of languages (a package each,
7
8
  * `paquet-<n>`), or a record of package name to language. */
@@ -19,6 +19,8 @@
19
19
  // that is a package, holds one or lies inside one (the declaration gives the testwriter no
20
20
  // manifest, and no package is opened to him by it). The nature of the files of a folder is not
21
21
  // bounded, as the `data` of a `filegroup(testonly)` and `tests/ui`.
22
+ //
23
+ // What a test reads out of its imports: docs/architecture/tests.md §4.1 and §7.
22
24
  import { existsSync, readFileSync, statSync } from 'node:fs';
23
25
  import path from 'node:path';
24
26
  import { luUneFois } from './lecture-unique.mjs';
@@ -1,4 +1,4 @@
1
- // The progress of a pass, as Bazel counts its actions « [1 234 / 2 000] »: the variable that names
1
+ // The progress of a pass: the variable that names
2
2
  // the progress directory of a pass, `GRILLHOUSE_AVANCEMENT`, and the writing of a record, which
3
3
  // the reporter of the module of the language writes while it is set (for typescript,
4
4
  // scripts/langages/typescript/vitest-config/avancement.reporter.mjs). The
@@ -1,6 +1,6 @@
1
- // The base of a pass: the temporary directory of a run, its own and removed at its end, as Bazel
2
- // gives each test its temporary directory (TEST_TMPDIR) under the base of its run. A pass killed
3
- // leaves its base, which the next pass sweeps, as Bazel cleans its sandboxes.
1
+ // The base of a pass: the temporary directory of a run, its own and removed at its end. A pass
2
+ // killed leaves its base, which the next pass sweeps. Architecture:
3
+ // docs/architecture/machine.md (§5.5, §6 « Le disque »).
4
4
  //
5
5
  // - A base is a directory `<dans>/grillhouse-<genre>-XXXXXX/`, `<dans>` the temporary directory of
6
6
  // whoever opens it (`os.tmpdir()`). It holds its owner (`.grillhouse-base`: the process that
@@ -24,24 +24,21 @@
24
24
  // the ticket, scripts/enveloppe/lancer.sh, and `npx grillhouse temporaire <ticket>` the
25
25
  // supervisor), kept from one session and one resumption to the next, removed when its ticket is
26
26
  // closed (`balayerLesTickets`, which the removal of the finished copies plays,
27
- // scripts/copies-finies.mjs), as a finished copy goes, and only then, frozen or not, as a
28
- // retention policy fixed in advance; or a directory
27
+ // scripts/copies-finies.mjs), frozen or not; or a directory
29
28
  // (`cacheDeLaRacine`: the cache of a build rooted in the temporary directory), swept once that
30
29
  // directory is gone, from the namespace that opened it, or, from the host (the next base of a
31
30
  // pass, out of an envelope, where the home is read-only), untouched for 7 days whatever its
32
- // namespace, as GitHub Actions removes a cache unused for 7 days. What an agent needs to resume lives in its copy or its handover, never in
31
+ // namespace. What an agent needs to resume lives in its copy or its handover, never in
33
32
  // the ticket's temporary directory alone, which holds what is made again.
34
33
  // - The caches of compilation never lie in the temporary directory, a disk in memory that the
35
34
  // sessions of the machine share: they go under `${XDG_CACHE_HOME:-~/.cache}/grillhouse/<outil>`
36
- // (`cacheDeCompilation`), as Bazel keeps its output_base under ~/.cache; a build rooted in the
37
- // temporary directory (a project of trial) keeps its outputs there too (`cacheDeLaRacine`).
35
+ // (`cacheDeCompilation`); a build rooted in the temporary directory (a project of trial) keeps
36
+ // its outputs there too (`cacheDeLaRacine`).
38
37
  // - The base is removed at the end of the pass, green or red (`fermer`), and when the pass is
39
- // interrupted (SIGINT, SIGTERM, SIGHUP: `retirerALInterruption`), as pytest's `tmp_path` and
40
- // Rust's `tempfile` remove theirs.
38
+ // interrupted (SIGINT, SIGTERM, SIGHUP: `retirerALInterruption`).
41
39
  // - The guard of a pass of tests: what its tests left in `t/` (`restes`) fails the pass, named
42
- // (`ligneDesRestes`), as the CI of osc-bridge runs its tests under a temporary directory of
43
- // their own and fails on anything left there; each module of language plays it in its runner of
44
- // tests (the base configuration of Vitest, the module cargo's `tester` and `verifier`).
40
+ // (`ligneDesRestes`); each module of language plays it in its runner of tests (the base
41
+ // configuration of Vitest, the module cargo's `tester` and `verifier`).
45
42
  // - Opening a base first sweeps `<dans>`: every base there whose owner is gone is removed, whatever
46
43
  // its genre. A base is judged by its owner's process only when that owner lives in the PID
47
44
  // namespace of the sweeper (an envelope has its own, bwrap --unshare-pid, where a number means
@@ -1,8 +1,7 @@
1
1
  // The CPU pressure of the machine, the witness of rest for every measure of time, which plays at
2
- // night (grillhouse-bd7): a measure is taken with the CPU at rest, and a failure that depends on a
3
- // duration under load is played again at rest (« à repasser »), never taken as a red nor as a
4
- // green. The model is Bazel's TIMEOUT/FLAKY and CTest's `--repeat after-timeout`: classify, then
5
- // play again.
2
+ // night: a measure is taken with the CPU at rest, and a failure that depends on a duration under
3
+ // load is played again at rest (« à repasser »), never taken as a red nor as a green.
4
+ // Architecture: docs/architecture/machine.md (§6, « Le groupe »; the cores of a measure of time).
6
5
  //
7
6
  // - The signal is the kernel's pressure stall information, `/proc/pressure/cpu`, line `some`,
8
7
  // field `avg10`: the share of the last ten seconds in which a task waited for a CPU, in %.
@@ -4,7 +4,8 @@
4
4
  // activity of the workflow of the machine (src/temporal/places/activites.ts) measures it here, and
5
5
  // whether the process of a place still lives; a signal to a process group, and whether the group
6
6
  // a sign of life names still runs, which the sessions (scripts/seances.mjs), the circuit and the
7
- // acts under Temporal (src/temporal/acte.ts) share.
7
+ // acts under Temporal (src/temporal/acte.ts) share. Architecture: docs/architecture/machine.md
8
+ // (§3.1, §5.2).
8
9
  import { readFileSync } from 'node:fs';
9
10
  import { availableParallelism, freemem, loadavg, totalmem } from 'node:os';
10
11
  import { departDe, leMemeVivant, vivant } from './mesure/base-de-passe.mjs';
@@ -1,17 +1,11 @@
1
- // The common charter arrives whole, imported by the project's CLAUDE.md from the package installed
2
- // (`@node_modules/@roomi-fields/grillhouse/charte.md`), as Claude Code loads a CLAUDE.md and its
3
- // imports whole; no hook writes it any more, since Claude Code caps a hook's output.
1
+ // The project's CLAUDE.md imports the common charter from the package installed
2
+ // (`@node_modules/@roomi-fields/grillhouse/charte.md`). Mechanism: installation.md §5.4
3
+ // (packages/grillhouse/docs/architecture/).
4
4
  //
5
- // - A CLAUDE.md that imports a charter of the frame (`@…grillhouse/charte.md`) other than the
6
- // former copy is left: it already has one (Grillhouse imports its source,
7
- // `@mods/grillhouse/charte.md`).
8
- // - The import of the former copy (`@.claude/grillhouse/charte.md`) becomes the import of the
9
- // package installed.
10
- // - The paragraph of the template that gave the charter by the plugin (« Les règles du cadre : la
11
- // charte commune, que le greffon du cadre … donne à chaque séance. ») becomes
12
- // « Les règles du cadre : @node_modules/@roomi-fields/grillhouse/charte.md ».
13
- // - A CLAUDE.md that names neither receives that line at its end, after a blank line.
14
- // - A project without CLAUDE.md is not written.
5
+ // - A CLAUDE.md that imports another charter of the frame (`@…grillhouse/charte.md`) is left.
6
+ // - The import of the former copy (`@.claude/grillhouse/charte.md`) becomes the package's, as the
7
+ // template's paragraph « Les règles du cadre : la charte commune, que le greffon… ».
8
+ // - A CLAUDE.md that names neither receives that line at its end; none, nothing written.
15
9
  import { existsSync, readFileSync, writeFileSync } from 'node:fs';
16
10
  import path from 'node:path';
17
11
 
@@ -1,12 +1,10 @@
1
- // The hooks of Claude Code come from the frame's plugin (mods/grillhouse/hooks/hooks.json): the
2
- // project's settings no longer run the frame's session scripts by their path.
1
+ // The hooks of Claude Code come from the frame's plugin (mods/grillhouse/hooks/hooks.json), not
2
+ // from the project's settings. Mechanism: installation.md §5.4 (packages/grillhouse/docs/architecture/).
3
3
  //
4
- // - In the project's `.claude/settings.json`, each hook whose command runs one of the frame's former
5
- // session scripts under `$CLAUDE_PROJECT_DIR/scripts/` (session-start.sh, structure-guard.sh,
6
- // verrous/ticket-du-sous-agent.mjs, registre.mjs) goes; a group left without a hook goes, an
7
- // event left without a group goes, and `hooks` left empty goes. A hook of the project's own stays,
8
- // and so do the other keys, in their order.
9
- // - A project without settings, or whose settings hold none of these hooks, is not written.
4
+ // - In `.claude/settings.json`, each hook running a former session script under
5
+ // `$CLAUDE_PROJECT_DIR/scripts/` (session-start.sh, structure-guard.sh,
6
+ // verrous/ticket-du-sous-agent.mjs, registre.mjs) goes, then each group, event and `hooks` left
7
+ // empty; a hook of the project's own and the other keys stay, in their order.
10
8
  import { existsSync, readFileSync, writeFileSync } from 'node:fs';
11
9
  import path from 'node:path';
12
10
 
@@ -1,16 +1,12 @@
1
- // The frame's plugin comes from the marketplace roomi-fields, which names the package npm, and
2
- // nothing of a project is published: the marketplace of the project's own, which an earlier update
3
- // wrote, goes (`grillhouse maj` then declares roomi-fields and enables `grillhouse@roomi-fields`).
1
+ // The marketplace of the project's own goes: the frame's plugin comes from the marketplace
2
+ // roomi-fields. Mechanism: installation.md §5.4 (packages/grillhouse/docs/architecture/).
4
3
  //
5
- // - The project's `.claude-plugin/marketplace.json` goes when it is the frame's: its name begins
6
- // with `grillhouse-` and each plugin it lists is `grillhouse`, from the project's package
7
- // (`./node_modules/@roomi-fields/grillhouse/…`); `.claude-plugin/` left empty goes.
8
- // - In `.claude/settings.json` and `.claude/settings.local.json` (where the add of a marketplace of
9
- // a directory wrote it), each marketplace whose name begins with `grillhouse-` and that is the
10
- // project's root (a directory, `./` or `.`) leaves `extraKnownMarketplaces`, and its plugin,
11
- // `grillhouse@<name>`, leaves `enabledPlugins`. A key left empty goes; the other keys stay, in
12
- // their order.
13
- // - A project without them is not written.
4
+ // - `.claude-plugin/marketplace.json` goes when it is the frame's (a name beginning with
5
+ // `grillhouse-`, each plugin `grillhouse` from `./node_modules/@roomi-fields/grillhouse/…`),
6
+ // `.claude-plugin/` with it when empty.
7
+ // - In `.claude/settings.json` and `settings.local.json`, each marketplace named `grillhouse-…`
8
+ // whose source is the project's root leaves `extraKnownMarketplaces`, its plugin
9
+ // `grillhouse@<name>` leaves `enabledPlugins`; a key left empty goes, the others keep their order.
14
10
  import { existsSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
15
11
  import path from 'node:path';
16
12
 
@@ -1,36 +1,13 @@
1
- // The frame's copies leave a project in 0.22.x: the package carries the scripts, its plugin the
2
- // skills, agents, charter and meta-frame, so the copies the former update placed
3
- // (`.claude/grillhouse/fichiers.txt`, each file's SHA-256 in `.claude/grillhouse/empreintes.json`)
4
- // are what this version replaces, as a codemod of `@turbo/codemod` removes what a version replaces.
5
- // The list says what to remove: nothing is guessed.
1
+ // The frame's copies placed by the former update (`.claude/grillhouse/fichiers.txt`, SHA-256 in
2
+ // `empreintes.json`) are removed: the package carries the scripts, its plugin the rest. Mechanism:
3
+ // installation.md §5.4 (packages/grillhouse/docs/architecture/).
6
4
  //
7
- // - Each file `empreintes.json` records that a line of `fichiers.txt` keeps (the file itself, or a
8
- // directory « …/ » above it; a line « - … » keeps none) goes when its bytes have the recorded
9
- // SHA-256 (as the former update computed it), or had it before the migration 0.23.0 of Vitest
10
- // rewrote its import of the base (`formesAnterieures`, below); a directory
11
- // it leaves empty goes with it. A file the template of a project holds at the same path
12
- // (`tsdoc.json`, `docs/agents/issue-tracker.md`) is the project's own since 0.23.0, as
13
- // `grillhouse init` places it, and stays.
14
- // - Under a directory the list keeps that is no workspace of the project (scripts/paquets.mjs), a
15
- // file the former generator of the packages' turbo.json wrote (its first line « // Généré par
16
- // `…turbo-des-paquets…` ») goes too: it belonged to the former workspace of a copy.
17
- // - A file whose bytes differ (the project modified it) stays: the migration leaves it to the
18
- // project (`{ aFaire }`), with the command that removes it, and the update's exit code is
19
- // non-zero; an npm script that runs it is named with it, since its removal breaks that script.
20
- // While one stays, the list and the fingerprints stay, so that the next update names it again;
21
- // once none stays, `.claude/grillhouse/` goes whole (the list, the fingerprints, the version, the
22
- // former charter). A modified copy of a role 0.24.0 removes stays too, but is named by that
23
- // migration alone (`deRoleSupprime` of 0.24.0-circuit-simplifie.mjs), once.
24
- // - Each root npm script that runs a copy removed (`node scripts/<chemin>`, `bash scripts/<chemin>`,
25
- // its arguments kept) runs its subcommand, `grillhouse <sous-commande>`, by the table of
26
- // scripts/sous-commandes.mjs; a script that still names a copy removed (no subcommand runs it) is
27
- // named, not rewritten.
28
- // - A dependency of the project's root that a copy removed imported, that the package declares in
29
- // its own `dependencies`, that the template of a project does not declare, and that no source of
30
- // the project still imports, is named, not removed: the project decides. API Extractor is named
31
- // by the migration of 0.24.2 alone (`DU_PAQUET` of 0.24.2-api-extractor-du-paquet.mjs), once.
32
- // - A project without `fichiers.txt` and `empreintes.json` is not written: a second pass finds
33
- // neither, or finds only the copies left to the project, which it names again.
5
+ // - A file the list keeps goes when its bytes have the recorded SHA-256 (or a former form,
6
+ // `formesAnterieures`), its emptied directory with it; a modified file stays, `{ aFaire }`
7
+ // with the command that removes it, and the list stays until none is left.
8
+ // - A root npm script running a removed copy (`node scripts/<chemin>`) runs `grillhouse
9
+ // <sous-commande>` (scripts/sous-commandes.mjs); one with no subcommand is named, not rewritten.
10
+ // - A dependency only a removed copy imported is named, not removed (API Extractor: 0.24.2).
34
11
  import { createHash } from 'node:crypto';
35
12
  import { existsSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
36
13
  import path from 'node:path';
@@ -1,43 +1,15 @@
1
- // The circuit of 0.24.0 has no regulator and no technical referent: the circuit makes the mechanical
2
- // gestures, and any other question goes up to the supervisor with its piece, who takes to the owner
3
- // what is his. What a project holds of the former circuit is rewritten here, as a codemod of
4
- // `@turbo/codemod` rewrites what a version changes, and nothing else.
1
+ // The circuit has no regulator and no technical referent: the project's former circuit is rewritten.
2
+ // The mechanism is installation.md §5.4 (packages/grillhouse/docs/architecture/).
5
3
  //
6
- // - The rubric « Ce qui monte au superviseur » of the project's CLAUDE.md: the paragraph of the
7
- // template of 0.22.x and 0.23.x (« Le fonctionnel que le régulateur ne tranche jamais seul : <la
8
- // liste>. Le cadre et l'architecture montent toujours (charte commune). »), its list as the
9
- // project filled it, becomes the paragraph of the template of 0.24.0, the list kept, wrapped at
10
- // 100 columns; the rest of the rubric stays. A rubric the project wrote itself that still names
11
- // a removed role is left to the project (`{ aFaire }`); one that names none is left silently.
12
- // - `docs/agents/issue-tracker.md`, the project's own since 0.23.0 (`grillhouse init` places it):
13
- // a file whose bytes are those of the template of 0.21.0 to 0.22.x, or of 0.23.x (their SHA-256
14
- // in FORMES), becomes the template's; a file the project modified that names a removed role is
15
- // left to the project.
16
- // - A copy of a removed role (`.claude/agents/<rôle>.md`, `.claude/skills/<rôle>/`) still in the
17
- // project is one the migration of the copies (0.23.2-copies-du-cadre.mjs, played before) could
18
- // not know as the frame's: the project modified it, or no list named it. It is left to the
19
- // project, with the command that removes it; the migration of the copies leaves it to this one
20
- // (deRoleSupprime), so that it is named once.
21
- // - What stays to the project (`restes`, which the update plays after its own update and its
22
- // regeneration, so that it sees the final state): a tracked file of the project (`git ls-files`,
23
- // node_modules and the changelogs aside) that still calls or names a script of the frame at its former address under `scripts/`
24
- // (`node scripts/<script>`, `$RACINE/scripts/<script>`, `file://$1/scripts/<script>`,
25
- // `path.join(…, '..', 'scripts', '<dossier>', '<script>')`, found by its words, sousScripts; a
26
- // `scripts/` under a literal directory, a package of the project or the installed package, is
27
- // another's, `.` and `..` naming none; a tracked path that is no regular file, a submodule or a
28
- // link, is skipped), where the project holds no such file any more, is named with its file:line
29
- // and what replaces it: the subcommand (`SOUS_COMMANDES` of scripts/sous-commandes.mjs), the hook
30
- // (`grillhouse hook <nom>`, `CROCHETS` of scripts/crochets.mjs) or the named entry (the
31
- // `exports` of the package). A script of the package that has none of them is named with « aucune
32
- // entrée publiée ne la remplace ». The project's scripts are its own: none is rewritten, and the
33
- // lines are a report, which never holds back the version the project records, as a codemod
34
- // reports what it leaves without failing.
35
- // - No version of the update wrote a setting of a role in `.claude/settings.json` or under
36
- // `grillhouse` of the package.json (the update of 0.22.x wrote the hooks, the status line and the
37
- // plugins; the rights of a role are given on the command line of its session, scripts/droits.mjs):
38
- // the migration writes neither.
39
- // - A project already in the new form is not written, and a second pass reports only what it left
40
- // to the project.
4
+ // - CLAUDE.md, « Ce qui monte au superviseur »: the former paragraph (« Le fonctionnel que le
5
+ // régulateur… ») becomes the new one, its list kept; a rubric naming a removed role is left
6
+ // to the project (`{ aFaire }`).
7
+ // - docs/agents/issue-tracker.md: a file of a former template (SHA-256 in FORMES) becomes the
8
+ // template's; a modified one naming a removed role is left.
9
+ // - A copy of a removed role (`.claude/agents/<rôle>.md`, `.claude/skills/<rôle>/`) is left, with
10
+ // the command that removes it (deRoleSupprime, named once).
11
+ // - `restes`: a tracked file still calling a frame script at its former address under `scripts/`
12
+ // is named with file:line and its replacement; the lines never hold back the recorded version.
41
13
  import { execFileSync } from 'node:child_process';
42
14
  import { createHash } from 'node:crypto';
43
15
  import { existsSync, lstatSync, readdirSync, readFileSync, writeFileSync } from 'node:fs';