@roomi-fields/grillhouse 0.49.1 → 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 (308) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +16 -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/package.json +1 -1
  72. package/scripts/abi-des-dependances.mjs +2 -1
  73. package/scripts/activites.mjs +8 -8
  74. package/scripts/aiguillage.mjs +4 -4
  75. package/scripts/arbitrages.mjs +1 -1
  76. package/scripts/arbres-juges.mjs +2 -1
  77. package/scripts/attente-de-la-machine.mjs +10 -16
  78. package/scripts/avancement.mjs +2 -0
  79. package/scripts/base-des-workflows.mjs +2 -1
  80. package/scripts/binaires.mjs +2 -1
  81. package/scripts/branche-de-nuit.mjs +2 -1
  82. package/scripts/cadre.mjs +12 -3
  83. package/scripts/ci-de-main.mjs +2 -1
  84. package/scripts/circuit.mjs +101 -618
  85. package/scripts/circuits-cles.mjs +4 -6
  86. package/scripts/circuits-du-serveur.mjs +1 -1
  87. package/scripts/codes-de-sortie.mjs +1 -1
  88. package/scripts/coeurs-dedies.mjs +2 -4
  89. package/scripts/commande-du-langage.mjs +2 -0
  90. package/scripts/commandes-composees.mjs +3 -3
  91. package/scripts/commandes-du-path.mjs +1 -1
  92. package/scripts/composants-affectes.mjs +3 -1
  93. package/scripts/composition-des-langages.mjs +2 -0
  94. package/scripts/conformite.d.ts +2 -1
  95. package/scripts/conformite.mjs +2 -0
  96. package/scripts/consommation-des-passes.mjs +5 -4
  97. package/scripts/consommation.mjs +1 -0
  98. package/scripts/copies-finies.mjs +9 -10
  99. package/scripts/crochets.mjs +2 -1
  100. package/scripts/depart-du-ticket.mjs +2 -2
  101. package/scripts/dependances-internes.mjs +4 -2
  102. package/scripts/dernier-vert.mjs +3 -3
  103. package/scripts/dette.d.ts +2 -1
  104. package/scripts/dette.mjs +2 -0
  105. package/scripts/direct.mjs +2 -1
  106. package/scripts/disque-des-copies.mjs +1 -1
  107. package/scripts/donnees-cles.mjs +2 -0
  108. package/scripts/droits.mjs +5 -6
  109. package/scripts/echantillonneur-de-la-passe.mjs +1 -1
  110. package/scripts/effets.mjs +3 -3
  111. package/scripts/engendres.mjs +1 -1
  112. package/scripts/enveloppe/codes.mjs +1 -0
  113. package/scripts/enveloppe/enveloppe.mjs +61 -84
  114. package/scripts/enveloppe/lancer.sh +5 -3
  115. package/scripts/enveloppe/paquets-du-plan.mjs +4 -6
  116. package/scripts/enveloppe/travail-de-la-copie.mjs +11 -16
  117. package/scripts/etapes.mjs +10 -9
  118. package/scripts/etat-du-depot.mjs +2 -1
  119. package/scripts/faits-du-circuit.mjs +19 -19
  120. package/scripts/fermeture-de-la-machine.mjs +2 -2
  121. package/scripts/fichier-du-poste.mjs +3 -4
  122. package/scripts/fichiers-nommes.mjs +2 -1
  123. package/scripts/file-des-tickets.mjs +3 -1
  124. package/scripts/flux-de-la-nuit.mjs +2 -1
  125. package/scripts/flux-des-paquets.mjs +2 -1
  126. package/scripts/fusion-du-changelog.mjs +2 -1
  127. package/scripts/garde-de-la-memoire.mjs +1 -1
  128. package/scripts/gardes-du-cadre.mjs +2 -0
  129. package/scripts/greffons.mjs +2 -2
  130. package/scripts/grillhouse-maj.mjs +55 -150
  131. package/scripts/groupe-cles.mjs +2 -1
  132. package/scripts/index-interfaces.mjs +2 -0
  133. package/scripts/init.mjs +2 -1
  134. package/scripts/integration/file.mjs +3 -3
  135. package/scripts/integration/integrer.mjs +5 -6
  136. package/scripts/integration/rejeu.mjs +4 -2
  137. package/scripts/integration/verdict.mjs +2 -1
  138. package/scripts/jointure.d.ts +2 -1
  139. package/scripts/journal-des-etats.mjs +2 -2
  140. package/scripts/langages/cargo/binaires.mjs +3 -2
  141. package/scripts/langages/cargo/clippy.mjs +2 -0
  142. package/scripts/langages/cargo/commandes.mjs +72 -17
  143. package/scripts/langages/cargo/composants.mjs +4 -3
  144. package/scripts/langages/cargo/elements-du-lot.mjs +2 -0
  145. package/scripts/langages/cargo/etiquettes.mjs +87 -0
  146. package/scripts/langages/cargo/executables-de-tests.mjs +3 -1
  147. package/scripts/langages/cargo/exemples.mjs +6 -4
  148. package/scripts/langages/cargo/frontieres.mjs +2 -0
  149. package/scripts/langages/cargo/index-interfaces.mjs +2 -0
  150. package/scripts/langages/cargo/index.mjs +8 -9
  151. package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +8 -8
  152. package/scripts/langages/cargo/migrations/0.34.0-executables-de-tests.mjs +7 -8
  153. package/scripts/langages/cargo/mise-a-jour.mjs +6 -3
  154. package/scripts/langages/cargo/sccache.mjs +10 -6
  155. package/scripts/langages/cargo/squelette.mjs +2 -0
  156. package/scripts/langages/cargo/tailles-des-tests.mjs +2 -0
  157. package/scripts/langages/cargo/verdict.mjs +8 -6
  158. package/scripts/langages/typescript/chemins-des-tests.mjs +2 -1
  159. package/scripts/langages/typescript/code-mort.mjs +2 -1
  160. package/scripts/langages/typescript/composants.mjs +7 -5
  161. package/scripts/langages/typescript/consommateurs-arbitres.mjs +2 -1
  162. package/scripts/langages/typescript/consommateurs.d.ts +2 -1
  163. package/scripts/langages/typescript/consommateurs.mjs +5 -7
  164. package/scripts/langages/typescript/construire.mjs +2 -1
  165. package/scripts/langages/typescript/elements-du-lot.mjs +2 -1
  166. package/scripts/langages/typescript/exemples.mjs +2 -1
  167. package/scripts/langages/typescript/frontieres.mjs +3 -2
  168. package/scripts/langages/typescript/index-interfaces.mjs +3 -2
  169. package/scripts/langages/typescript/index.mjs +3 -2
  170. package/scripts/langages/typescript/interfaces-contre-code.mjs +2 -1
  171. package/scripts/langages/typescript/lecteurs.mjs +2 -1
  172. package/scripts/langages/typescript/migrations/0.23.0-config-vitest.mjs +5 -6
  173. package/scripts/langages/typescript/migrations/0.24.4-noms-declares-inutilises.mjs +4 -8
  174. package/scripts/langages/typescript/migrations/0.24.6-lignes-mal-formees.mjs +5 -9
  175. package/scripts/langages/typescript/migrations/0.24.7-matiere-dans-les-tests.mjs +6 -10
  176. package/scripts/langages/typescript/migrations/0.25.0-chemins-des-tests.mjs +5 -6
  177. package/scripts/langages/typescript/migrations/0.25.0-tailles-des-tests.mjs +6 -8
  178. package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +5 -4
  179. package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +7 -7
  180. package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +5 -6
  181. package/scripts/langages/typescript/migrations/0.33.0-binaire-de-jour.mjs +6 -6
  182. package/scripts/langages/typescript/migrations/0.33.0-tests-du-poste.mjs +5 -5
  183. package/scripts/langages/typescript/migrations/0.34.1-cache-des-outils.mjs +4 -4
  184. package/scripts/langages/typescript/migrations/0.49.0-tests-equipes.mjs +7 -7
  185. package/scripts/langages/typescript/mise-a-jour.mjs +5 -5
  186. package/scripts/langages/typescript/module-absent.mjs +2 -1
  187. package/scripts/langages/typescript/parcours.mjs +2 -1
  188. package/scripts/langages/typescript/references-par-les-types.mjs +2 -1
  189. package/scripts/langages/typescript/regle-des-tests.mjs +2 -1
  190. package/scripts/langages/typescript/resume-du-lanceur.mjs +1 -1
  191. package/scripts/langages/typescript/resumes.mjs +2 -1
  192. package/scripts/langages/typescript/squelette.mjs +2 -1
  193. package/scripts/langages/typescript/tailles-des-tests.mjs +5 -4
  194. package/scripts/langages/typescript/tests-de-nuit.mjs +5 -4
  195. package/scripts/langages/typescript/tests-du-poste.mjs +2 -1
  196. package/scripts/langages/typescript/tests.mjs +44 -66
  197. package/scripts/langages/typescript/titres-de-tests.mjs +2 -2
  198. package/scripts/langages/typescript/tranches.mjs +2 -1
  199. package/scripts/langages/typescript/turbo-des-paquets.mjs +87 -148
  200. package/scripts/langages/typescript/verdict.mjs +2 -1
  201. package/scripts/langages/typescript/verifier.mjs +64 -99
  202. package/scripts/langages/typescript/verrou-des-dependances.mjs +2 -1
  203. package/scripts/langages/typescript/vitest-config/avancement.reporter.mjs +1 -0
  204. package/scripts/langages/typescript/vitest-config/base.mjs +5 -5
  205. package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -0
  206. package/scripts/langages/typescript/vitest-config/changements.mjs +6 -10
  207. package/scripts/langages/typescript/vitest-config/cibles.mjs +3 -3
  208. package/scripts/langages/typescript/vitest-config/delais.mjs +1 -0
  209. package/scripts/langages/typescript/vitest-config/delais.setup.mjs +1 -0
  210. package/scripts/langages/typescript/vitest-config/duree.classement.mjs +1 -1
  211. package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +4 -3
  212. package/scripts/langages/typescript/vitest-config/lances.mjs +3 -2
  213. package/scripts/langages/typescript/vitest-config/machine.setup.mjs +1 -0
  214. package/scripts/langages/typescript/vitest-config/mesure.mjs +1 -1
  215. package/scripts/langages/typescript/vitest-config/mesure.setup.mjs +1 -0
  216. package/scripts/langages/typescript/vitest-config/registre.setup.mjs +1 -0
  217. package/scripts/langages/typescript/vitest-config/resultats.mjs +2 -1
  218. package/scripts/langages/typescript/vitest-config/resultats.setup.mjs +1 -0
  219. package/scripts/langages/typescript/vitest.nuit.config.mjs +3 -2
  220. package/scripts/langages-des-paquets.mjs +3 -1
  221. package/scripts/langages.mjs +5 -3
  222. package/scripts/lecture-unique.mjs +2 -1
  223. package/scripts/lint-des-scripts.mjs +1 -0
  224. package/scripts/machine.mjs +4 -4
  225. package/scripts/matiere-de-test.d.ts +2 -1
  226. package/scripts/matieres-lues.mjs +2 -0
  227. package/scripts/mesure/avancement.mjs +1 -1
  228. package/scripts/mesure/base-de-passe.mjs +10 -13
  229. package/scripts/mesure/pression.mjs +3 -4
  230. package/scripts/mesure-de-la-machine.mjs +2 -1
  231. package/scripts/migrations/0.23.0-charte-importee.mjs +7 -13
  232. package/scripts/migrations/0.23.0-crochets-de-seance.mjs +6 -8
  233. package/scripts/migrations/0.23.0-marche-du-projet.mjs +8 -12
  234. package/scripts/migrations/0.23.2-copies-du-cadre.mjs +9 -32
  235. package/scripts/migrations/0.24.0-circuit-simplifie.mjs +11 -39
  236. package/scripts/migrations/0.24.12-tri-des-decouvertes.mjs +6 -9
  237. package/scripts/migrations/0.24.2-api-extractor-du-paquet.mjs +8 -19
  238. package/scripts/migrations/0.25.0-script-des-tests.mjs +7 -13
  239. package/scripts/migrations/0.27.0-langages-dans-l-architecture.mjs +9 -23
  240. package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +7 -9
  241. package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +7 -18
  242. package/scripts/migrations/0.33.0-cache-distant.mjs +6 -9
  243. package/scripts/migrations/0.33.0-ci-du-cadre.mjs +5 -8
  244. package/scripts/migrations/0.33.0-node-26.mjs +5 -8
  245. package/scripts/migrations/0.35.0-greffon-mattpocock-retire.mjs +5 -10
  246. package/scripts/migrations/0.44.0-node-26-seul.mjs +6 -9
  247. package/scripts/migrations/0.44.0-seuil-des-codes-de-tickets.mjs +6 -7
  248. package/scripts/migrations/0.47.0-ci-de-main.mjs +6 -7
  249. package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +6 -6
  250. package/scripts/migrations/0.48.0-poussee-retiree.mjs +3 -5
  251. package/scripts/migrations/0.49.0-reservation-de-trois-coeurs.mjs +3 -4
  252. package/scripts/migrations/0.50.0-reglages-hors-de-la-charte.mjs +81 -0
  253. package/scripts/migrations-des-gardes.mjs +2 -0
  254. package/scripts/migrations.mjs +4 -0
  255. package/scripts/nuit.sh +7 -5
  256. package/scripts/outil.mjs +2 -1
  257. package/scripts/outils-cles.mjs +6 -6
  258. package/scripts/paquet-npm.mjs +3 -2
  259. package/scripts/paquet.mjs +3 -4
  260. package/scripts/paquets.d.ts +1 -1
  261. package/scripts/paquets.mjs +2 -0
  262. package/scripts/passe-de-la-machine.mjs +9 -12
  263. package/scripts/places-de-la-machine.mjs +36 -53
  264. package/scripts/places-du-serveur.mjs +5 -4
  265. package/scripts/plafond-de-la-machine.mjs +19 -19
  266. package/scripts/poussee-retiree.mjs +2 -1
  267. package/scripts/prefixe-des-tickets.mjs +1 -0
  268. package/scripts/preparation.mjs +2 -1
  269. package/scripts/recommencer.mjs +2 -2
  270. package/scripts/references-changees.mjs +1 -1
  271. package/scripts/registre-des-resultats.mjs +3 -1
  272. package/scripts/regles-des-places.mjs +4 -6
  273. package/scripts/repli-de-la-nuit.mjs +2 -1
  274. package/scripts/reponses-du-circuit.mjs +4 -3
  275. package/scripts/reprise.mjs +3 -2
  276. package/scripts/resultats.mjs +71 -93
  277. package/scripts/retirer-copie.sh +2 -1
  278. package/scripts/retirer-les-copies-finies.mjs +2 -1
  279. package/scripts/seances.mjs +3 -2
  280. package/scripts/services-du-noyau.mjs +2 -0
  281. package/scripts/session-start.sh +0 -6
  282. package/scripts/sortie.mjs +2 -1
  283. package/scripts/sources.mjs +2 -0
  284. package/scripts/sous-commandes.mjs +2 -1
  285. package/scripts/sous-modules.sh +24 -43
  286. package/scripts/style-a-l-ecriture.mjs +2 -0
  287. package/scripts/tableau-des-composants.mjs +5 -7
  288. package/scripts/taches-du-graphe.mjs +3 -0
  289. package/scripts/ticket-du-circuit.mjs +1 -1
  290. package/scripts/transitions.mjs +15 -15
  291. package/scripts/un-commit-par-ticket.mjs +2 -1
  292. package/scripts/verdict-de-la-nuit.mjs +2 -1
  293. package/scripts/verrou-de-fichier.mjs +1 -0
  294. package/scripts/verrous/commande.mjs +2 -1
  295. package/scripts/verrous/ecriture-hors-enveloppe.mjs +1 -0
  296. package/scripts/verrous/ticket-du-sous-agent.mjs +1 -0
  297. package/scripts/verrous/verrou.mjs +3 -3
  298. package/scripts/workflows-du-cadre.mjs +2 -1
  299. package/skills/developpeur/SKILL.md +6 -10
  300. package/skills/explorateur/SKILL.md +1 -1
  301. package/skills/grill/SKILL.md +4 -5
  302. package/skills/grill/references/paquets.md +5 -8
  303. package/skills/pitmaster/SKILL.md +176 -268
  304. package/skills/pitmaster/references/cadre.md +7 -6
  305. package/skills/pitmaster/references/consigne-agent.md +36 -32
  306. package/skills/pitmaster/references/tour.md +2 -2
  307. package/skills/redacteur/references/documents-d-un-composant.md +9 -8
  308. package/skills/testwriter/SKILL.md +8 -11
@@ -1,7 +1,9 @@
1
1
  #!/usr/bin/env bash
2
2
  # Launches a role agent on one ticket, as its own Claude session inside the envelope of its
3
3
  # plan, the packages it writes (one session of the testwriter or the developpeur for the whole
4
- # ticket, `.` as its component and the plan as `--paquets`, grillhouse-3uv.95.6). The supervisor runs it in the background and is told when the session ends.
4
+ # ticket, `.` as its component and the plan as `--paquets`). The supervisor runs it in the
5
+ # background and is told when the session ends. Architecture: docs/architecture/machine.md (§3.1,
6
+ # §5.5).
5
7
  #
6
8
  # npx grillhouse lancer [--modele <m>] [--effort <e>] [--seance <id> | --reprise <id>] [--paquets <liste>] [--fiche <sorte>] <ticket> <rôle> <composant> <fichier de consigne>
7
9
  #
@@ -74,7 +76,7 @@
74
76
  # input from a temporary file the launcher writes and removes (an argument may not pass the
75
77
  # 128 KiB Linux allows one, MAX_ARG_STRLEN), the instruction file
76
78
  # followed by the section « Ce que les composants d'avant publient », for each package of the
77
- # plan (one part per package when the plan holds several, grillhouse-3uv.95.6): for each
79
+ # plan (one part per package when the plan holds several): for each
78
80
  # component whose `## Consommateurs` section names the package, its line, the names of the
79
81
  # elements declared for the package, and the address of the rubric « Rend » of its frame, the
80
82
  # rest of its elements left to the index of the interfaces (`grillhouse index-interfaces
@@ -96,7 +98,7 @@
96
98
  # - A role that ends on a sheet (scripts/resultats.mjs: the testwriter, the developpeur) runs with
97
99
  # `--output-format json --json-schema <its schema>` (`npx grillhouse resultats --schema
98
100
  # <rôle>`); --fiche <sorte> names the schema of a sheet that is not its role's (`geste`, the
99
- # explorateur's gesture of a mechanical ticket, grillhouse-sos), taking a value as --modele does:
101
+ # explorateur's gesture of a mechanical ticket), taking a value as --modele does:
100
102
  # claude's JSON result, its sheet in `structured_output`, goes to `resultat.json` in the folder
101
103
  # of the session (.claude/worktrees/<ticket>.travail/seances/<id>/, <id> the session's
102
104
  # --seance or --reprise, `courante` without one), which a launch removes first and the circuit
@@ -1,12 +1,10 @@
1
1
  // The packages of the plan of the envelope a command runs in. The envelope names them to every
2
2
  // command of its session, in the variable `GRILLHOUSE_ENVELOPPE`: the list of the paths the plan
3
3
  // names inside the copy (`packages/a`, or `src/parser` in a one-package project), joined by the
4
- // separator of a list of paths (`path.delimiter`, as NODE_PATH and PATH join theirs). As the
5
- // visibility of Bazel and the module boundaries of Nx refuse a dependency while the code stays
6
- // readable, the session reads the whole copy and writes these packages only: a command of the
7
- // frame that reads the list builds, judges and writes them alone.
8
- //
9
- // This module uses Node alone, as the modules of scripts/paquets.mjs.
4
+ // separator of a list of paths (`path.delimiter`). The session reads the whole copy and writes
5
+ // these packages only: a command of the frame that reads the list builds, judges and writes them
6
+ // alone. This module uses Node alone, as the modules of scripts/paquets.mjs. Architecture:
7
+ // docs/architecture/machine.md (§4.1, §5.5).
10
8
  import path from 'node:path';
11
9
  import { paquets } from '../paquets.mjs';
12
10
 
@@ -4,7 +4,8 @@
4
4
  // (scripts/circuit.mjs, `avantLaPasse`), in the copy alone: git's stash (refs/stash) is common to
5
5
  // every copy of a repository, so the work never goes there; the copy keeps it, as a merge or a
6
6
  // rebase in conflict does (its conflicts marked in the files, the unmerged entries in its own
7
- // index).
7
+ // index). Architecture: docs/architecture/machine.md (§5.5), which does not describe the carrying
8
+ // of the work of a copy.
8
9
  //
9
10
  // node scripts/enveloppe/travail-de-la-copie.mjs reporter <copie> <base> <pointe>
10
11
  // node scripts/enveloppe/travail-de-la-copie.mjs preparer <copie> [<cible>]
@@ -17,8 +18,7 @@
17
18
  // package.json, the installation (`npm install --no-save`, under that mount) when node_modules
18
19
  // is missing or the lock file is newer than the installation (`node_modules/.package-lock.json`).
19
20
  // It prints on stdout the list its pose fixes, its messages on stderr; exit 1 on the first step
20
- // that fails, named, its output after (BPScript: the lock file changed 27 times in two weeks,
21
- // and the submodule vendor/bp3-engine, both stale in a copy moved forward without them).
21
+ // that fails, named, its output after.
22
22
  // - `reporter`: the lot from <base> to <pointe> (`git diff --binary`), a branch the queue sent
23
23
  // back, becomes local work of the copy: applied three ways (`git apply --3way`), a conflict
24
24
  // marked in its file, the rest of the lot there; the index is then left as HEAD has it, so that
@@ -67,19 +67,14 @@
67
67
  // again in the copy, the lot applied, with the tools of the project (`grillhouse.outils`), out
68
68
  // of the envelope. The output of a command that passes is a message, never the data of the
69
69
  // preparation: it goes where the faults go (stderr, the log of the preparation for the circuit),
70
- // so the standard output of `preparer` holds the list of its pose alone (BPScript, 2026-11-22:
71
- // the output of « npm install --package-lock-only » read as the list of the shared submodules,
72
- // the mount refused on « usage: sous-modules.sh … »). A command that fails stops, exit 1, the
73
- // command, its code and its output named, the rest of the lot in the copy; a faulty key
74
- // refuses, named, before the copy is
75
- // touched (OSC Bridge, 2026-10-31: four conflicts in one day on the generated files of synthhub
76
- // and open-synth-descriptors, each copy moved by hand). A lot in conflict on another file is not
77
- // regenerated: its conflicts come first. A reference the frame generates itself and writes in
78
- // full (`fichiersEngendres` of the module of the language, its `entiers`: the index of the
79
- // interfaces, the turbo.json of the packages) follows the same rule, with no key of the project:
80
- // main's version, then the frame's generator, whose code is not read, a real failure aside
81
- // (BPScript, 2026-11-22: « UU docs/agents/index-des-interfaces.md » at the advance of two
82
- // copies). The reports of API (INTERFACE.api.md and the generated part of an INTERFACE.md) and
70
+ // so the standard output of `preparer` holds the list of its pose alone. A command that fails
71
+ // stops, exit 1, the command, its code and its output named, the rest of the lot in the copy;
72
+ // a faulty key refuses, named, before the copy is touched. A lot in conflict on another file
73
+ // is not regenerated: its conflicts come first. A reference the frame generates itself and
74
+ // writes in full (`fichiersEngendres` of the module of the language, its `entiers`: the index
75
+ // of the interfaces, the turbo.json of the packages) follows the same rule, with no key of the
76
+ // project: main's version, then the frame's generator, whose code is not read, a real failure
77
+ // aside. The reports of API (INTERFACE.api.md and the generated part of an INTERFACE.md) and
83
78
  // the debt of the guards, which the frame does not give as written in full (no `entiers`), are
84
79
  // still merged. A copy whose references the module of the language does not read (no language
85
80
  // declared) is advanced all the same, its references merged as files written by hand, and the
@@ -1,7 +1,8 @@
1
- // The steps of a ticket, the tree of its circuit, as a pipeline of GitLab CI shows its stages and
2
- // their jobs and GitHub Actions its jobs and their steps, and the stops of its circuit: the one
3
- // list, which the circuit (scripts/circuit.mjs), the board (scripts/tableau.mjs), the bilan
4
- // (scripts/bilan.mjs) and the texts read.
1
+ // The steps of a ticket, the tree of its circuit, and the stops of its circuit: the one list,
2
+ // which the circuit (scripts/circuit.mjs), the board (scripts/tableau.mjs), the bilan
3
+ // (scripts/bilan.mjs) and the texts read. The list of the steps is told here and at circuit.md
4
+ // §5.1 alone; the gestures and the stops, at §5.4 and §5.5. The code today holds the long and the
5
+ // short circuits; the direct one is a target (circuit.md §9.1).
5
6
  //
6
7
  // - A step (ETAPES): its number (« 2 », « 4.1 »), its title, who works there (`qui`: the role
7
8
  // agents, or AUTO for a step the circuit leads itself; none for a step that only holds its
@@ -15,8 +16,8 @@
15
16
  // The tri of the discoveries (5.3) is the explorateur's too, once the queue has brought the lot
16
17
  // onto main, as Chromium and Mozilla give each new report a verdict before it is filed; so is the
17
18
  // gesture of a mechanical ticket (1.1), the command its plan names played in the copy, as Rosie
18
- // and ClangMR let a tool make a large-scale change at Google (grillhouse-sos); the role's own step
19
- // stays the plan (`etapeDuRole`).
19
+ // and ClangMR let a tool make a large-scale change at Google; the role's own step stays the plan
20
+ // (`etapeDuRole`).
20
21
  // SUITE is the tree in its order, each step before its sub-steps.
21
22
  // - A step carries as many bounded loops as it needs (`boucles`), each spanning the step and its
22
23
  // sub-steps: each its key (`cle`, which keys its count in the state's `boucles`), its label and
@@ -51,7 +52,7 @@ export const ETAPES = [
51
52
  questionnement: 'plan',
52
53
  arrets: ['questionnement'],
53
54
  // The gesture of a mechanical ticket, in the copy, in place of the testwriter and the
54
- // developpeur (grillhouse-sos).
55
+ // developpeur.
55
56
  sous: [{ numero: '1.1', titre: 'Geste mécanique', qui: [EXPLORATEUR], etat: 'geste' }],
56
57
  },
57
58
  {
@@ -101,7 +102,7 @@ export const ETAPES = [
101
102
  sous: [
102
103
  { numero: '5.1', titre: 'Commit', qui: [AUTO], etat: 'integration' },
103
104
  { numero: '5.2', titre: 'File : passe finale, main', qui: [AUTO], etat: 'file' },
104
- // The tri of the discoveries of the ticket, on the lot entered on main (grillhouse-0yu.5).
105
+ // The tri of the discoveries of the ticket, on the lot entered on main.
105
106
  { numero: '5.3', titre: 'Tri des découvertes', qui: [EXPLORATEUR], etat: 'tri' },
106
107
  ],
107
108
  },
@@ -135,7 +136,7 @@ export const ARRETS = {
135
136
  integration: 17,
136
137
  // The resumption of the integration of a lot already on main: a lot neither on main nor in the
137
138
  // copy (`lot-absent`), or a copy that does not get removed (`copie-gardee`); both at the code of
138
- // the integration stop (grillhouse-bf5.2).
139
+ // the integration stop.
139
140
  'lot-absent': 17,
140
141
  'copie-gardee': 17,
141
142
  'hors-portee': 19,
@@ -1,4 +1,5 @@
1
- // The state of a git repository and the place of the per-branch files the frame keeps beside it:
1
+ // The state of a git repository (packages/grillhouse/docs/architecture/entree.md §4.1: the trees
2
+ // judged, the last green and the results are per-repository files) and the place of the per-branch files the frame keeps beside it:
2
3
  // the layer the last green (scripts/dernier-vert.mjs) and the registry of results
3
4
  // (scripts/registre-des-resultats.mjs) share. Each keeps `{ … }` per branch under
4
5
  // `<git common dir>/grillhouse/<sous>/<branche>.json`, and each measures what counts against the
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- // One act of the circuit of a ticket for its workflow under Temporal (src/temporal/circuit/), in a
3
- // process of its own, as Buildkite's agent and GitLab's runner play each job in a child process:
4
- // the circuit's code waits on its passes synchronously, so the worker that awaits this process
5
- // keeps serving, and sends its heartbeats, while the act plays. The worker's activities
6
- // (src/temporal/circuit/activites.ts) start it in the main tree of the repository:
2
+ // One act of the circuit of a ticket for its workflow under Temporal, in a process of its own: the
3
+ // circuit's code waits on its passes synchronously, so the worker that awaits this process keeps
4
+ // serving, and sends its heartbeats, while the act plays (circuit.md §3.1, « Actes du circuit »;
5
+ // §2.3). The worker's activities (src/temporal/circuit/activites.ts) start it in the main tree of
6
+ // the repository:
7
7
  //
8
8
  // node scripts/faits-du-circuit.mjs <acte> (its input in JSON on the standard input)
9
9
  //
@@ -12,19 +12,19 @@
12
12
  // killed (scripts/seances.mjs). The act ends with its worker: once the worker is gone, it exits
13
13
  // at once, the group of its session left running, which the attempt played again waits for.
14
14
  //
15
- // The acts of a ticket write nothing outside themselves (docs/ARCHITECTURE.md, « une activité, un
16
- // effet, une clé »): each gathers the effects the circuit's code emits (scripts/effets.mjs) and
17
- // gives them back with its outcome (`effets`), its own readings seeing those it already emitted;
18
- // the workflow then plays each one in an activity of its own, the act `effet`, under the key of
19
- // that activity (`cle`: its workflow, its run, its activity, the same for each of its attempts).
20
- // A fact (the act `fait`) is read again on an attempt played again: a reading, a measure, a pass
21
- // of the checks, a regeneration and the integration (no second commit for a lot already in the
22
- // queue) replay without harm. Under the opening and a fact, a session draws its id from the key of
23
- // its activity, its event and the attempt of the activity (`idDeSeance` of scripts/seances.mjs,
24
- // `<séance>-e<essai>`), and ranges its result under it (`rangDeLaSeance`). Only an attempt Temporal plays again (its
25
- // attempt 2 or more, `essai`), at the launch the dead attempt made last, takes the result of a
26
- // session the dead attempt launched in its envelope once its group has ended, with no second
27
- // session (scripts/seances.mjs `lancer`); a session out of the envelope (the explorateur's, the
15
+ // The acts of a ticket write nothing outside themselves: each gathers the effects the circuit's
16
+ // code emits (scripts/effets.mjs) and gives them back with its outcome (`effets`), its own
17
+ // readings seeing those it already emitted; the workflow then plays each one in an activity of its
18
+ // own, the act `effet`, under the key of that activity (`cle`: its workflow, its run, its
19
+ // activity, the same for each of its attempts). A fact (the act `fait`) is read again on an
20
+ // attempt played again: a reading, a measure, a pass of the checks, a regeneration and the
21
+ // integration (no second commit for a lot already in the queue) replay without harm. Under the
22
+ // opening and a fact, a session draws its id from the key of its activity, its event and the
23
+ // attempt of the activity (`idDeSeance` of scripts/seances.mjs, `<séance>-e<essai>`), and ranges
24
+ // its result under it (`rangDeLaSeance`). Only an attempt Temporal plays again (its attempt 2 or
25
+ // more, `essai`), at the launch the dead attempt made last, takes the result of a session the
26
+ // dead attempt launched in its envelope once its group has ended, with no second session
27
+ // (scripts/seances.mjs `lancer`); a session out of the envelope (the explorateur's, the
28
28
  // questionneur's, the reviewer's), which writes nothing in the lot, is launched again. The acts of
29
29
  // the queue of a project follow the same model: each of their gestures replays without harm (main
30
30
  // moved onto a lot already on main enters it, a ticket closed stays closed, a commit pushed is
@@ -49,7 +49,7 @@
49
49
  // - `effet`, one effect an act gave back, written under the key of its activity (`ecrireLEffet`):
50
50
  // an effect not written has its outcome, said on the error output or the failure of its
51
51
  // activity;
52
- // - the acts of the queue of a project (scripts/integration/file.mjs, grillhouse-4nr.8): `situer`,
52
+ // - the acts of the queue of a project (scripts/integration/file.mjs): `situer`,
53
53
  // where the lot of a ticket stands (`situerLeLot`); `brancher`, the branch made the candidate the
54
54
  // final pass judges (`preparerLaBranche`); `avancer`,
55
55
  // main moved onto the candidate (`avancerMain`); each of `brancher` and `avancer` telling the
@@ -1,5 +1,5 @@
1
- // The closure of the machine by the supervisor, as `kubectl cordon` and `drain` close a node to new
2
- // work: the decision of each command on the reservation of the machine in place, and the lines it
1
+ // The closure of the machine by the supervisor (docs/architecture/machine.md, §5.7):
2
+ // the decision of each command on the reservation of the machine in place, and the lines it
3
3
  // says, what still runs by project and by ticket (sessions: the places of the workflow of the
4
4
  // machine; passes: their parts), « la machine est vide » when nothing plays, and how long the
5
5
  // closure has lasted. Pure: the workflow of the places (src/temporal/places/deroule.ts) bundles
@@ -1,9 +1,8 @@
1
1
  // The variables of the poste a tool of a language reads: a file of the poste, out of every
2
2
  // repository, under the frame's directory of configuration (`$XDG_CONFIG_HOME/grillhouse/`,
3
- // `~/.config/grillhouse/` without it, as the XDG Base Directory Specification places a user's
4
- // configuration), whose name the module of the language gives (`environnementDuPoste`,
5
- // scripts/jointure.d.ts): the server of a remote cache, its token, which never enter a
6
- // repository.
3
+ // `~/.config/grillhouse/` without it), whose name the module of the language gives
4
+ // (`environnementDuPoste`, scripts/jointure.d.ts): the server of a remote cache, its token, which
5
+ // never enter a repository. Architecture: docs/architecture/machine.md (§4.1).
7
6
  //
8
7
  // - The file holds one `VARIABLE=valeur` per line, as a `.env` of the shell: `export ` before the
9
8
  // name, a value between quotes, a blank line and a line of comment (`#`) are read too; any
@@ -3,7 +3,8 @@
3
3
  // ticket's plan covers by its own word: a write out of the plan in it extends the plan, with the
4
4
  // piece that names it. A parent directory, a base name alone, another section, and the documents
5
5
  // the responsable owns (ARCHITECTURE.md, CADRE.md, INTERFACE.md) are not named. The plan keeps the
6
- // component of the title that holds a file named there (`fichiersNommesAuTicket`).
6
+ // component of the title that holds a file named there (`fichiersNommesAuTicket`;
7
+ // docs/architecture/circuit.md §3.3).
7
8
 
8
9
  const DOCUMENTS_DU_RESPONSABLE = /(^|\/)(ARCHITECTURE|CADRE|INTERFACE)\.md$/;
9
10
 
@@ -1,7 +1,9 @@
1
1
  // The rule of the queue of the tickets of a project: the tickets the owner validated (label
2
2
  // `circuit`) whose dependencies are all closed start by themselves, by Beads priority, as Zuul and
3
3
  // the merge queues start a change once what it depends on has merged. The queue of the tickets
4
- // under Temporal (src/temporal/tickets/) reads the tickets and applies this rule.
4
+ // under Temporal (src/temporal/tickets/) reads the tickets and applies this rule (circuit.md
5
+ // §5.7, « La file des tickets »; the code still asks for the section « ## Architecture » where
6
+ // the target reads « Régi par », circuit.md §9.1).
5
7
  //
6
8
  // - A ticket starts when it is open, labelled `circuit`, with no circuit already on it, its
7
9
  // description holds its section « ## Architecture » (a line that begins so), and every
@@ -1,4 +1,5 @@
1
- // What the Nuit flow of a project plays (`.github/workflows/nuit.yml`), read from the flow's own
1
+ // What the Nuit flow of a project plays (packages/grillhouse/docs/architecture/entree.md §3.1
2
+ // « Repli de la nuit », §5.3 « Les deux parts »; `.github/workflows/nuit.yml`), read from the flow's own
2
3
  // commands and never from a word of it: the night of the poste (scripts/nuit.sh) leaves the flow
3
4
  // what the flow declares it plays, and plays the rest (the frame's charter, « Une mesure de temps
4
5
  // joue la nuit »: the measures of time play on dedicated cores, which a shared flow lacks unless it
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
- // The guard of the flows of the CI: each flow declares the packages it exercises, and the reviewer
2
+ // The guard of the flows of the CI (packages/grillhouse/docs/architecture/entree.md §3.1
3
+ // « Flux CI », §5.2): each flow declares the packages it exercises, and the reviewer
3
4
  // reads it when a lot touches one of them, as a CODEOWNERS file names who reads a path.
4
5
  //
5
6
  // npx grillhouse flux-des-paquets (one of the frame's guards, scripts/gardes-du-cadre.mjs)
@@ -1,4 +1,5 @@
1
- // The frame's merge driver of the CHANGELOG, on the model of gnulib's git-merge-changelog: two
1
+ // The frame's merge driver of the CHANGELOG (packages/grillhouse/docs/architecture/entree.md §5.1:
2
+ // a lot enters main by a three-way application that never loses an entry), on the model of gnulib's git-merge-changelog: two
2
3
  // lots that each add an entry under the same heading both keep their entry, wherever git merges
3
4
  // three ways (the integration's `git apply --3way --index`, the relaunch's `git apply --3way`, the
4
5
  // copy's `git merge --ff-only --autostash`, a rebase, a cherry-pick).
@@ -1,5 +1,5 @@
1
1
  // The watch of the memory of a pass: a heavy pass runs its command under it, and is cut before the
2
- // kernel kills, as earlyoom and systemd-oomd end a group before the kernel's own OOM killer does.
2
+ // kernel kills. Architecture: docs/architecture/machine.md (§3.1, §5.3).
3
3
  //
4
4
  // node garde-de-la-memoire.mjs --temoin <file> -- <command> [<argument>…]
5
5
  //
@@ -20,6 +20,8 @@
20
20
  // the debt, `a-elaguer`, is none) has one written for it, without location, its name (its
21
21
  // script's, without extension) and its code: a red no reader can place.
22
22
  // - The build is not among them: Turborepo builds before this task (turbo.json).
23
+ //
24
+ // The list and what each guard refuses: docs/architecture/tests.md §3.1 and §3.4.
23
25
  import { spawnSync } from 'node:child_process';
24
26
  import path from 'node:path';
25
27
  import { pathToFileURL } from 'node:url';
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  // The frame's plugins, installed for the project by one mechanism: `scripts/preparation.mjs` (the
3
3
  // preparation of `grillhouse init`) and `scripts/grillhouse-maj.mjs` (update, its command line) both
4
- // call it, and the session start
5
- // asks it which are absent.
4
+ // call it, and the session start asks it which are absent. The mechanism is installation.md §5.3
5
+ // (step 2) and §5.6, in packages/grillhouse/docs/architecture/.
6
6
  //
7
7
  // npx grillhouse greffons [<project>] installs the declared plugins (the current directory by default)
8
8
  // npx grillhouse greffons --absents [<project>] prints what the project lacks, one line each (see below)
@@ -1,157 +1,62 @@
1
1
  #!/usr/bin/env node
2
2
  // The frame's update: brings what the frame writes in a project to the version of the package
3
3
  // installed, as `npx @turbo/codemod migrate` brings a repository to the version of Turborepo.
4
- //
5
4
  // npx grillhouse maj update (npm run grillhouse:maj), after `npm install` of the version wanted
5
+ // The mechanism is installation.md §5.2 (the migrations, §5.4), under
6
+ // packages/grillhouse/docs/architecture/. The update reads the package's own scripts and template
7
+ // (scripts/cadre.mjs, `miseAJour.gabarit` of each declared language), never the network. Any
8
+ // argument is refused, `--help` included: the usage is shown, the exit code is non-zero, nothing
9
+ // is updated. The frame copies no other file into a project.
10
+ //
11
+ // In order:
12
+ // - The languages (`declarerLesLangages`): the column « Langage » of docs/ARCHITECTURE.md
13
+ // (scripts/langages.mjs); migration 0.27.0 writes a former declaration there, before every
14
+ // other. No package.json, no language declared, or a declaration the migration leaves to the
15
+ // project: refused on the error stream, exit code 1. A project of several languages receives
16
+ // the share of each, in the order of the declaration (`langagesDe`).
17
+ // - The migrations (scripts/migrations.mjs): each one newer than `grillhouse.version` (none
18
+ // recorded, all), in the order of their versions; the report names each that changed something.
19
+ // An `aFaire` goes on the error stream with its command, exit code non-zero, the version stays
20
+ // so that the next update plays it again; the `restes` are reported last, « reste au projet »,
21
+ // with no effect on the exit code nor on the version.
22
+ // - The workflows (scripts/workflows-du-cadre.mjs): `ci.yml` and `nuit.yml` carrying the frame's
23
+ // mark on their first line are rewritten when they differ; a missing one is written once the
24
+ // project holds one; a workflow without the mark is the project's.
25
+ // - `.claude/settings.json`, when it exists: the marketplace `roomi-fields`
26
+ // (`roomi-fields/claude-plugins`) and `grillhouse@roomi-fields` enabled, each added after the
27
+ // keys held; `statusLine` becomes `LIGNE_ETAT` (`refreshInterval` 10) when absent or naming
28
+ // `ligne-etat`, a status line of the project's own stays.
29
+ // - `package.json`: the scripts `tableau`, `grillhouse:maj`, `grillhouse:gardes`,
30
+ // `grillhouse:dette:inscrire`, `grillhouse:dette:elaguer` and `api`, each read in the template's
31
+ // (none written when it has none), and `prepare` beginning with `grillhouse hooks` (the project's
32
+ // own `prepare` follows, `&&`). The former wiring goes: a `pretest` that is `npm run --silent
33
+ // grillhouse:gardes`, alone or at the head of a longer one; an `integration:gardes` loses each
34
+ // head that is a former frame command, the rest moving to `gardes` when the project has none.
35
+ // The language's share (`miseAJour.appliquer`; typescript, cargo: scripts/langages/*/mise-a-jour.mjs)
36
+ // comes first; its `aFaire` goes on the error stream, exit code 1, the verification not played.
37
+ // - The tools of the declared language (`outils`), and none other, added to `devDependencies` at
38
+ // the template's version unless the project declares them in one of the three dependency fields,
39
+ // `devDependencies` sorted by name; `packageManager` from the template when the project has none.
40
+ // - The `.gitignore`: `<nom>/` for each of IGNORES_DU_CADRE and each `ignorer` of the languages
41
+ // not yet ignored. The `.gitattributes` line `CHANGELOG.md merge=grillhouse-changelog` (scripts/fusion-du-changelog.mjs)
42
+ // and the git hooks (scripts/crochets.mjs: `commit-msg`, `pre-push`, in `core.hooksPath` or the
43
+ // default folder; the project's own lines stay, the frame's former ones give way).
44
+ // - The generators of the declared language (`miseAJour.generateurs`), run by the project's
45
+ // `node_modules/.bin/grillhouse` for each file the project holds (all, in a project `init`
46
+ // creates); a failing one, or a missing command, has its line saying to run it after `npm install`.
47
+ // - The binaries of the language (`binaires`; cargo: nextest, cargo-deny): installed when missing
48
+ // or at another version by `miseAJour.installation`; one that fails has its line, exit code non-zero.
49
+ // `npx grillhouse binaires` plays the same alone (scripts/binaires.mjs).
50
+ // - The plugins (scripts/greffons.mjs): installed for the project, the frame's mod brought to the
51
+ // package's version; a failure has its line naming the command, exit code non-zero.
52
+ // - The group: `grillhouse.groupe` of the main tree (`groupeDe`) sets each other project as a Beads
53
+ // `external_projects.<name>`, the ones set left alone; a group badly declared is refused first.
6
54
  //
7
- // - The versions pass by npm: the project installs the version of @roomi-fields/grillhouse it wants
8
- // (`npm install -D @roomi-fields/grillhouse@<version>`), then the update brings the project to it.
9
- // What the update reads of the frame is the package's own (scripts/cadre.mjs): the template of a
10
- // project of the declared language (`miseAJour.gabarit` of its module: `templates/projet/` for
11
- // typescript, `templates/cargo/` for cargo), whose package.json gives the frame's scripts and
12
- // the versions of the tools. Any argument is refused: the usage is shown (the exit code is
13
- // non-zero) and nothing is updated, `--help` included.
14
- // - The migrations first (scripts/migrations.mjs): each migration of the package newer than the
15
- // version the project recorded (`grillhouse.version` of its package.json; none recorded, every
16
- // migration), in the order of their versions; each is replayable without effect, and the report
17
- // names each one that changed something, with what it changed. What a migration leaves to the
18
- // project (a copy of the frame the project modified, scripts/migrations/0.23.2-copies-du-cadre.mjs)
19
- // is written on the error stream, with the command that does it, and the exit code is non-zero;
20
- // the project keeps the version it recorded, so that the next update plays that migration again.
21
- // Last, after the update and the regeneration, what stays to the project (`restes` of a
22
- // migration played, scripts/migrations.mjs: in 0.24.0, a file that still calls a former copy of
23
- // the frame; in 0.24.2, API Extractor still declared by the project) is reported on the standard output, « reste au projet », with no effect on the exit
24
- // code nor on the version recorded.
25
- // - The frame's workflows of GitHub Actions (scripts/workflows-du-cadre.mjs): each workflow of the
26
- // template's `.github/workflows/` (the CI of a lot, `ci.yml`; the night of a shared machine,
27
- // `nuit.yml`) that the project holds with the frame's mark on its first line is rewritten when
28
- // it differs, and one it lacks is written once the project holds one of them; a workflow without
29
- // the mark is the project's, and stays. Their machine is the repository's variable RUNNER on
30
- // GitHub, which no file holds. The report names each workflow written.
31
- // - The frame copies no other file into a project: its scripts are the package's, its skills, agents,
32
- // hooks of Claude Code, common charter and meta-frame the plugin's, which the package carries
33
- // (scripts/cadre.mjs): the frame arrives in one piece, at the version npm installs.
34
- // - The frame's plugin is a setting of the project: in a project whose `.claude/settings.json`
35
- // exists, `extraKnownMarketplaces` declares the marketplace `roomi-fields` (GitHub,
36
- // `roomi-fields/claude-plugins`), which names the package npm as the plugin's source, and
37
- // `enabledPlugins` enables its plugin, `grillhouse@roomi-fields`, each added after the keys the
38
- // settings hold, which keep their order. What is a project's own (its charter, its settings, its
39
- // version of the package) lives in the project, never in what is published: the machine knows a
40
- // marketplace by its name, once for every project. A migration takes off the marketplace of the
41
- // project's own an earlier update wrote (scripts/migrations/0.23.0-marche-du-projet.mjs).
42
- // - The status line is a setting of the project, as Husky writes the project's own configuration:
43
- // in a project whose `.claude/settings.json` exists, `statusLine` becomes the frame's
44
- // (`"$CLAUDE_PROJECT_DIR/node_modules/.bin/grillhouse" ligne-etat`, `refreshInterval` 10: the line
45
- // redraws on a clock, as a session at rest sends no event) when it is absent or names the
46
- // frame's status line (`ligne-etat`, whatever its former form), which is then rewritten whole;
47
- // a status line of the project's own stays. The settings keep their other keys, in their order.
48
- // - `package.json`, when there is one: the version of the frame it is brought to
49
- // (`grillhouse.version`, the package's version once no migration leaves anything to do), the
50
- // frame's npm scripts (`tableau`,
51
- // `grillhouse:maj`), its `prepare` beginning with `grillhouse hooks` (the frame's git hooks at
52
- // each `npm install`, as Husky's `prepare`; a `prepare` of the project's own follows it,
53
- // `grillhouse hooks && …`), and `grillhouse:gardes` (scripts/gardes-du-cadre.mjs, the frame's controls), `grillhouse:dette:inscrire` and
54
- // `grillhouse:dette:elaguer` (the known debt of the guards, scripts/dette.mjs), and `api` (`npm run api`, which writes
55
- // the API reports and the generated part of each `docs/INTERFACE.md`), each read as it is in the
56
- // template's `package.json` (a template without one writes none). `npm run verifier` plays
57
- // `grillhouse:gardes` and the project's own guards, the root script `gardes`, beside the tests:
58
- // the frame's former wiring goes, a `pretest` that is the
59
- // frame's call (`npm run --silent grillhouse:gardes`) removed or taken off the head of a longer
60
- // one (`… && <its pretest>`, the rest kept; a `pretest` of the project's own stays). An
61
- // `integration:gardes`, the script the former integration played, loses each head that is a
62
- // former frame command (that call, `npm run --silent pretest`,
63
- // `node scripts/integration/gardes.mjs`); what remains is the project's own guards, which move to
64
- // `gardes` when the project has none (the report says so), else stay where nothing plays them
65
- // (the report names both); nothing remaining, the script goes.
66
- // - The share of the declared language (`miseAJour.appliquer` of its module, as each plugin of Nx
67
- // brings its `init` generator): what its tools ask of the project, in its package.json and its
68
- // other files, and the lines of the report; the core writes the package.json after. Typescript
69
- // (scripts/langages/typescript/mise-a-jour.mjs): the frame's test scripts in a project that runs
70
- // its tests, the frame's package declared where the code or the tests read it, the typing of
71
- // each package, the project's first configuration of its task runner. Cargo
72
- // (scripts/langages/cargo/mise-a-jour.mjs): the files of its template a project lacks, and its
73
- // test scripts. What the share leaves to the project (`aFaire`: for cargo, a Cargo.lock that git
74
- // does not track) is written on the error stream, the exit code 1, and the verification is not
75
- // played.
76
- // - A project of several languages (scripts/langages.mjs, `langagesDe`) receives the share of each,
77
- // in the order of the declaration: its template's tools, its share of the update, its binaries,
78
- // its generators (each once) and what its tools write; the frame's scripts of a template come
79
- // from the first template that has each.
80
- // - The languages first (`declarerLesLangages`): the languages of the project are the column
81
- // « Langage » of the table of the components of its docs/ARCHITECTURE.md (scripts/langages.mjs),
82
- // written at its design; the update writes there the declaration of a former version of the
83
- // frame (the migration of 0.27.0, ./migrations/0.27.0-langages-dans-l-architecture.mjs), played
84
- // before every other, since the migrations of the declared languages play with the core's. A
85
- // directory without package.json, a project that declares no language, or one whose former
86
- // declaration the migration leaves to it, is refused, named on the error stream, the exit code
87
- // 1: the frame guesses no language from the files. No import of the project is rewritten.
88
- // - The tools of the declared language (the `outils` of its module: what it runs as commands and
89
- // what its scripts import), and none other, are added to the project's `devDependencies` at the
90
- // version the template's `devDependencies` give; a tool the project already declares in
91
- // `dependencies`, `devDependencies` or `optionalDependencies` keeps its declaration, one a
92
- // previous version added stays, and `devDependencies` are written sorted by name. The report
93
- // names each tool added and `npm install`, which installs them. A project without
94
- // `packageManager` receives the template's.
95
- // - What the frame writes in a project (IGNORES_DU_CADRE: the copies of the tickets,
96
- // `.claude/worktrees`, and Turborepo's `.turbo`, the tool every language plays its tasks by) and
97
- // what the tools of the declared language write there (`ignorer` of its module: typescript's
98
- // `.vitest-reports`, cargo's `target`): a `.gitignore` that does not ignore one
99
- // receives its line, `<nom>/`. The template's `.gitignore` lists none of them: the update is
100
- // their one source, for a project `init` creates as for an existing one.
101
- // - The binaries of the declared language (`binaires` of its module: cargo's nextest and
102
- // cargo-deny), after the files: the command line runs the commands of its module
103
- // (`miseAJour.installation`), which list what is installed and install each one missing or at
104
- // another version (cargo's: `cargo install --list`, then `cargo binstall --no-confirm --locked
105
- // <nom>@<version>`, cargo-binstall installed by cargo first when it lacks), as `npm install`
106
- // brings what is installed to what is declared; the report
107
- // names each one installed. One that cannot be installed has its line, the error stream of its
108
- // command naming the command to type, and the exit code is non-zero. A language without
109
- // binaries runs nothing. The same installation runs alone by `npx grillhouse binaires`
110
- // (scripts/binaires.mjs), which a CI plays after `npm ci`.
111
- // - The git hooks: both of the frame (commit-msg « a closed ticket refuses a second commit, a reopened ticket takes its corrections », pre-push night branch
112
- // guard) are placed by scripts/crochets.mjs, the mechanism `grillhouse hooks` (the project's
113
- // `prepare`) also runs, in the hooks folder git reads for the project (`core.hooksPath`, else the
114
- // default one; the configuration stays). A hook of the project keeps its lines, which still run;
115
- // the frame's lines of a former version give way to the current ones.
116
- // - The merge driver of the CHANGELOG (scripts/fusion-du-changelog.mjs): a `.gitattributes`
117
- // without the line `CHANGELOG.md merge=grillhouse-changelog` receives it, after its own lines,
118
- // and the driver's command is written in the repository's configuration with the hooks
119
- // (scripts/crochets.mjs): two lots that each add an entry under the same heading both enter main.
120
- // - The plugins: after the files, the command line installs the plugins the project's settings
121
- // declare, for the project, by scripts/greffons.mjs (the mechanism `grillhouse init` also calls;
122
- // `mettreAJour` itself never calls claude), and brings the frame's mod to the package's version,
123
- // as `npm install` brings what is installed to what is declared. A plugin that cannot be
124
- // installed, or a mod left at another version, has its line naming the command to type; the
125
- // update has finished its files, and the exit code is non-zero.
126
- // - The group: when the package.json of the main tree of the project declares `grillhouse.groupe`
127
- // (`groupeDe` of scripts/groupe-cles.mjs: the update launched in a copy of work reads the same
128
- // group), the update sets in the Beads of the project each other project of the group as an
129
- // `external_projects.<name>` (its path relative to the main tree), the ones already set left
130
- // alone; a group badly declared is refused by its key before any work.
131
- // - The generated files: after the package.json, each generator of the declared language
132
- // (`miseAJour.generateurs` of its module) is run in the project by the project's command
133
- // (`node_modules/.bin/grillhouse`, its installed package) for the file it writes when the project
134
- // holds that file (every one of them for a project `grillhouse init` creates), and a generator
135
- // without file in a repository with `workspaces`, so that the frame's checks accept them; a
136
- // generator that fails, or a project without its command, has its line, which says to run it
137
- // after `npm install` (the frame's package and tools), and the exit code is non-zero.
138
- // - The report names first the version of the frame, the package's, and the command that installs
139
- // another before the update (`LIGNE_DU_CADRE`): npm reads a range `^0.25.5` as `>=0.25.5
140
- // <0.26.0` (node-semver, caret ranges), so `npm install` never brings the next minor of a 0.x
141
- // (grillhouse-qmk, OSC Bridge at 0.25.5 under ^0.25.5).
142
- // - Last, the update plays the project's verification, `npm run verifier`, from its root, its
143
- // output shown, as Nx affected moves its base to the last green commit of main: its green keeps
144
- // the last green (scripts/dernier-vert.mjs), HEAD and the tree of the working tree, the update's
145
- // changes included, so that once they are committed as they stand, a copy that starts from that
146
- // commit measures nothing changed (witness: BPScript 320.3.9, whose full pass measured 26 files
147
- // since main's last green, 11 from the updates 0.24.5 and 0.24.6 committed without one). The
148
- // update exits with its code (a failure before it, a plugin's, keeps 1), and the report's last
149
- // line says it: green, the last green kept; red, its code, the last green as it was; 75, « à
150
- // repasser ». It is not played, the line saying why, when the update leaves its files to finish
151
- // (a migration's `aFaire`, a generator that fails: on the error stream, the exit code already
152
- // non-zero), when the project has no `verifier` script (the line of the language's share says
153
- // why), or when the report asks for `npm install` first (a tool or the frame's package newly
154
- // declared).
55
+ // The report names first the frame's version and, in `LIGNE_DU_CADRE`, the command that installs
56
+ // another one (npm never brings the next minor of a 0.x). Last, `npm run verifier` is played from
57
+ // the root, unless files are left to finish, there is no `verifier` script, or `npm install` is
58
+ // asked first; its green keeps the last green (scripts/dernier-vert.mjs). The last line says the
59
+ // outcome: green; red, its code; 75, « à repasser ».
155
60
  import { spawnSync } from 'node:child_process';
156
61
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
157
62
  import path from 'node:path';
@@ -215,7 +120,7 @@ const lireJson = (f, defaut) => {
215
120
  /**
216
121
  * The directories the frame itself writes in a project, which its `.gitignore` ignores: the copies
217
122
  * of the tickets, and the runs and cache of Turborepo (`.turbo`), the tool every language of the
218
- * frame plays its tasks by (grillhouse-x2w), written whatever the project's language. The template's
123
+ * frame plays its tasks by, written whatever the project's language. The template's
219
124
  * `.gitignore` lists none of them, nor what the tools of its language write: the update lays both,
220
125
  * in a new project as in an existing one.
221
126
  */
@@ -1,4 +1,4 @@
1
- // The reading of the key `grillhouse.groupe` of a package.json (grillhouse-pie), read as written:
1
+ // The reading of the key `grillhouse.groupe` of a package.json, read as written:
2
2
  // a list of projects, each by its path (absolute, or relative to the project's root), every
3
3
  // project of the group, the project itself included. The projects of a group are ordered together:
4
4
  // their tickets that wait for a place leave by priority (scripts/regles-des-places.mjs), and
@@ -8,6 +8,7 @@
8
8
  // The key is the project's: `groupeDe` reads it in the package.json of the main tree of the
9
9
  // repository, never of a copy, and resolves its relative paths from that tree, so that a command
10
10
  // launched in a copy of work reads the same group as one launched in the main tree.
11
+ // Architecture: docs/architecture/machine.md (§5.4).
11
12
  import { createHash } from 'node:crypto';
12
13
  import { existsSync, readFileSync } from 'node:fs';
13
14
  import path from 'node:path';
@@ -16,6 +16,8 @@
16
16
  // - The finding of the check carries the name `index-interfaces`, as each module's.
17
17
  // - Any other argument goes to the command `index-interfaces` of each module that describes it,
18
18
  // which writes nothing then: what the providers of a component publish.
19
+ //
20
+ // The guard of the index: docs/architecture/tests.md §3.4.
19
21
  import { mkdirSync, writeFileSync } from 'node:fs';
20
22
  import path from 'node:path';
21
23
  import { fileURLToPath, pathToFileURL } from 'node:url';
package/scripts/init.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  // A new project, created from the frame's template of a project, as create-turbo creates one from
3
- // its example. The first Claude session opened in it proposes the initialisation grill.
3
+ // its example. The first Claude session opened in it proposes the initialisation grill. The
4
+ // mechanism is installation.md §5.1 (packages/grillhouse/docs/architecture/).
4
5
  //
5
6
  // npx @roomi-fields/grillhouse init <dossier> [<préfixe des tickets>]
6
7
  //