@roomi-fields/grillhouse 0.49.1 → 0.50.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +24 -0
  3. package/bin/grillhouse.mjs +2 -0
  4. package/cadre/templates/projet/CLAUDE.md +13 -96
  5. package/cadre/templates/projet/docs/agents/issue-tracker.md +5 -5
  6. package/charte.md +77 -96
  7. package/dist/temporal/acte.js +2 -1
  8. package/dist/temporal/acte.js.map +1 -1
  9. package/dist/temporal/circuit/activites.js +2 -1
  10. package/dist/temporal/circuit/activites.js.map +1 -1
  11. package/dist/temporal/circuit/appel.js +2 -2
  12. package/dist/temporal/circuit/appel.js.map +1 -1
  13. package/dist/temporal/circuit/client.d.ts +2 -4
  14. package/dist/temporal/circuit/client.js +5 -8
  15. package/dist/temporal/circuit/client.js.map +1 -1
  16. package/dist/temporal/circuit/commande.js +5 -4
  17. package/dist/temporal/circuit/commande.js.map +1 -1
  18. package/dist/temporal/circuit/contrat.d.ts +3 -3
  19. package/dist/temporal/circuit/contrat.js +2 -2
  20. package/dist/temporal/circuit/contrat.js.map +1 -1
  21. package/dist/temporal/circuit/deroule.js +4 -4
  22. package/dist/temporal/circuit/deroule.js.map +1 -1
  23. package/dist/temporal/commande.js +1 -1
  24. package/dist/temporal/commande.js.map +1 -1
  25. package/dist/temporal/deroules.js +3 -4
  26. package/dist/temporal/deroules.js.map +1 -1
  27. package/dist/temporal/etat.js +1 -1
  28. package/dist/temporal/etat.js.map +1 -1
  29. package/dist/temporal/file/activites.js +2 -1
  30. package/dist/temporal/file/activites.js.map +1 -1
  31. package/dist/temporal/file/client.js.map +1 -1
  32. package/dist/temporal/file/contrat.js +3 -2
  33. package/dist/temporal/file/contrat.js.map +1 -1
  34. package/dist/temporal/file/deroule.js +2 -1
  35. package/dist/temporal/file/deroule.js.map +1 -1
  36. package/dist/temporal/installation.js +2 -0
  37. package/dist/temporal/installation.js.map +1 -1
  38. package/dist/temporal/nuits/activites.js +4 -3
  39. package/dist/temporal/nuits/activites.js.map +1 -1
  40. package/dist/temporal/nuits/appel.js +2 -1
  41. package/dist/temporal/nuits/appel.js.map +1 -1
  42. package/dist/temporal/nuits/choix.js +2 -1
  43. package/dist/temporal/nuits/choix.js.map +1 -1
  44. package/dist/temporal/nuits/client.js +2 -1
  45. package/dist/temporal/nuits/client.js.map +1 -1
  46. package/dist/temporal/nuits/commande.js +2 -1
  47. package/dist/temporal/nuits/commande.js.map +1 -1
  48. package/dist/temporal/nuits/contrat.js +2 -1
  49. package/dist/temporal/nuits/contrat.js.map +1 -1
  50. package/dist/temporal/nuits/deroule.js +2 -1
  51. package/dist/temporal/nuits/deroule.js.map +1 -1
  52. package/dist/temporal/places/activites.js +2 -1
  53. package/dist/temporal/places/activites.js.map +1 -1
  54. package/dist/temporal/places/client.js +1 -0
  55. package/dist/temporal/places/client.js.map +1 -1
  56. package/dist/temporal/places/deroule.js +4 -5
  57. package/dist/temporal/places/deroule.js.map +1 -1
  58. package/dist/temporal/tickets/activites.js +1 -1
  59. package/dist/temporal/tickets/activites.js.map +1 -1
  60. package/dist/temporal/tickets/deroule.js +4 -4
  61. package/dist/temporal/tickets/deroule.js.map +1 -1
  62. package/docs/ARCHITECTURE.md +3 -3
  63. package/docs/CADRE.md +10 -68
  64. package/docs/INTERFACE.md +59 -179
  65. package/docs/architecture/circuit.md +440 -0
  66. package/docs/architecture/entree.md +281 -0
  67. package/docs/architecture/greffon.md +284 -0
  68. package/docs/architecture/installation.md +306 -0
  69. package/docs/architecture/machine.md +383 -0
  70. package/docs/architecture/tests.md +337 -0
  71. package/hooks/crochet.mjs +3 -1
  72. package/package.json +1 -1
  73. package/scripts/abi-des-dependances.mjs +2 -1
  74. package/scripts/activites.mjs +8 -8
  75. package/scripts/aiguillage.mjs +4 -4
  76. package/scripts/arbitrages.mjs +1 -1
  77. package/scripts/arbres-juges.mjs +2 -1
  78. package/scripts/attente-a-l-arret.mjs +7 -8
  79. package/scripts/attente-au-tour.mjs +2 -2
  80. package/scripts/attente-de-la-machine.mjs +10 -16
  81. package/scripts/avancement.mjs +2 -0
  82. package/scripts/base-des-workflows.mjs +2 -1
  83. package/scripts/bilan.mjs +39 -61
  84. package/scripts/binaires.mjs +2 -1
  85. package/scripts/branche-de-nuit.mjs +2 -1
  86. package/scripts/cadre.mjs +37 -9
  87. package/scripts/ci-de-main.mjs +2 -1
  88. package/scripts/circuit.mjs +101 -618
  89. package/scripts/circuits-cles.mjs +4 -6
  90. package/scripts/circuits-du-serveur.mjs +1 -1
  91. package/scripts/codes-de-sortie.mjs +1 -1
  92. package/scripts/coeurs-dedies.mjs +2 -4
  93. package/scripts/commande-du-langage.mjs +2 -0
  94. package/scripts/commandes-composees.mjs +3 -3
  95. package/scripts/commandes-du-path.mjs +1 -1
  96. package/scripts/composants-affectes.mjs +3 -1
  97. package/scripts/composition-des-langages.mjs +2 -0
  98. package/scripts/conformite.d.ts +2 -1
  99. package/scripts/conformite.mjs +2 -0
  100. package/scripts/consommation-des-passes.mjs +5 -4
  101. package/scripts/consommation.mjs +1 -0
  102. package/scripts/copies-finies.mjs +9 -10
  103. package/scripts/crochet.mjs +1 -0
  104. package/scripts/crochets.mjs +2 -1
  105. package/scripts/depart-du-ticket.mjs +2 -2
  106. package/scripts/dependances-internes.mjs +4 -2
  107. package/scripts/dernier-vert.mjs +3 -3
  108. package/scripts/dette.d.ts +2 -1
  109. package/scripts/dette.mjs +2 -0
  110. package/scripts/direct.mjs +66 -6
  111. package/scripts/disque-des-copies.mjs +1 -1
  112. package/scripts/donnees-cles.mjs +2 -0
  113. package/scripts/droits.mjs +18 -13
  114. package/scripts/echantillonneur-de-la-passe.mjs +1 -1
  115. package/scripts/effets.mjs +3 -3
  116. package/scripts/engendres.mjs +1 -1
  117. package/scripts/enveloppe/codes.mjs +1 -0
  118. package/scripts/enveloppe/enveloppe.mjs +61 -84
  119. package/scripts/enveloppe/lancer.sh +5 -3
  120. package/scripts/enveloppe/paquets-du-plan.mjs +4 -6
  121. package/scripts/enveloppe/travail-de-la-copie.mjs +17 -17
  122. package/scripts/etapes.mjs +10 -9
  123. package/scripts/etat-du-depot.mjs +2 -1
  124. package/scripts/faits-du-circuit.mjs +19 -19
  125. package/scripts/fermeture-de-la-machine.mjs +2 -2
  126. package/scripts/fichier-du-poste.mjs +3 -4
  127. package/scripts/fichiers-nommes.mjs +2 -1
  128. package/scripts/file-des-tickets.mjs +3 -1
  129. package/scripts/flux-de-la-nuit.mjs +2 -1
  130. package/scripts/flux-des-paquets.mjs +2 -1
  131. package/scripts/fusion-du-changelog.mjs +2 -1
  132. package/scripts/garde-de-la-memoire.mjs +1 -1
  133. package/scripts/gardes-du-cadre.mjs +2 -0
  134. package/scripts/greffons.mjs +2 -2
  135. package/scripts/grillhouse-maj.mjs +55 -150
  136. package/scripts/groupe-cles.mjs +2 -1
  137. package/scripts/index-interfaces.mjs +2 -0
  138. package/scripts/init.mjs +2 -1
  139. package/scripts/integration/file.mjs +3 -3
  140. package/scripts/integration/integrer.mjs +5 -6
  141. package/scripts/integration/rejeu.mjs +4 -2
  142. package/scripts/integration/verdict.mjs +2 -1
  143. package/scripts/jointure.d.ts +2 -1
  144. package/scripts/journal-des-etats.mjs +2 -2
  145. package/scripts/langages/cargo/binaires.mjs +3 -2
  146. package/scripts/langages/cargo/clippy.mjs +2 -0
  147. package/scripts/langages/cargo/commandes.mjs +72 -17
  148. package/scripts/langages/cargo/composants.mjs +4 -3
  149. package/scripts/langages/cargo/elements-du-lot.mjs +2 -0
  150. package/scripts/langages/cargo/etiquettes.mjs +87 -0
  151. package/scripts/langages/cargo/executables-de-tests.mjs +3 -1
  152. package/scripts/langages/cargo/exemples.mjs +6 -4
  153. package/scripts/langages/cargo/frontieres.mjs +2 -0
  154. package/scripts/langages/cargo/index-interfaces.mjs +2 -0
  155. package/scripts/langages/cargo/index.mjs +8 -9
  156. package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +8 -8
  157. package/scripts/langages/cargo/migrations/0.34.0-executables-de-tests.mjs +7 -8
  158. package/scripts/langages/cargo/mise-a-jour.mjs +6 -3
  159. package/scripts/langages/cargo/sccache.mjs +10 -6
  160. package/scripts/langages/cargo/squelette.mjs +2 -0
  161. package/scripts/langages/cargo/tailles-des-tests.mjs +2 -0
  162. package/scripts/langages/cargo/verdict.mjs +8 -6
  163. package/scripts/langages/typescript/chemins-des-tests.mjs +2 -1
  164. package/scripts/langages/typescript/code-mort.mjs +2 -1
  165. package/scripts/langages/typescript/composants.mjs +7 -5
  166. package/scripts/langages/typescript/consommateurs-arbitres.mjs +2 -1
  167. package/scripts/langages/typescript/consommateurs.d.ts +2 -1
  168. package/scripts/langages/typescript/consommateurs.mjs +5 -7
  169. package/scripts/langages/typescript/construire.mjs +2 -1
  170. package/scripts/langages/typescript/elements-du-lot.mjs +2 -1
  171. package/scripts/langages/typescript/exemples.mjs +2 -1
  172. package/scripts/langages/typescript/frontieres.mjs +3 -2
  173. package/scripts/langages/typescript/index-interfaces.mjs +3 -2
  174. package/scripts/langages/typescript/index.mjs +3 -2
  175. package/scripts/langages/typescript/interfaces-contre-code.mjs +2 -1
  176. package/scripts/langages/typescript/lecteurs.mjs +2 -1
  177. package/scripts/langages/typescript/migrations/0.23.0-config-vitest.mjs +5 -6
  178. package/scripts/langages/typescript/migrations/0.24.4-noms-declares-inutilises.mjs +4 -8
  179. package/scripts/langages/typescript/migrations/0.24.6-lignes-mal-formees.mjs +5 -9
  180. package/scripts/langages/typescript/migrations/0.24.7-matiere-dans-les-tests.mjs +6 -10
  181. package/scripts/langages/typescript/migrations/0.25.0-chemins-des-tests.mjs +5 -6
  182. package/scripts/langages/typescript/migrations/0.25.0-tailles-des-tests.mjs +6 -8
  183. package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +5 -4
  184. package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +7 -7
  185. package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +5 -6
  186. package/scripts/langages/typescript/migrations/0.33.0-binaire-de-jour.mjs +6 -6
  187. package/scripts/langages/typescript/migrations/0.33.0-tests-du-poste.mjs +5 -5
  188. package/scripts/langages/typescript/migrations/0.34.1-cache-des-outils.mjs +4 -4
  189. package/scripts/langages/typescript/migrations/0.49.0-tests-equipes.mjs +7 -7
  190. package/scripts/langages/typescript/mise-a-jour.mjs +5 -5
  191. package/scripts/langages/typescript/module-absent.mjs +2 -1
  192. package/scripts/langages/typescript/parcours.mjs +2 -1
  193. package/scripts/langages/typescript/references-par-les-types.mjs +2 -1
  194. package/scripts/langages/typescript/regle-des-tests.mjs +2 -1
  195. package/scripts/langages/typescript/resume-du-lanceur.mjs +1 -1
  196. package/scripts/langages/typescript/resumes.mjs +2 -1
  197. package/scripts/langages/typescript/squelette.mjs +2 -1
  198. package/scripts/langages/typescript/tailles-des-tests.mjs +5 -4
  199. package/scripts/langages/typescript/tests-de-nuit.mjs +5 -4
  200. package/scripts/langages/typescript/tests-du-poste.mjs +2 -1
  201. package/scripts/langages/typescript/tests.mjs +44 -66
  202. package/scripts/langages/typescript/titres-de-tests.mjs +2 -2
  203. package/scripts/langages/typescript/tranches.mjs +2 -1
  204. package/scripts/langages/typescript/turbo-des-paquets.mjs +87 -148
  205. package/scripts/langages/typescript/verdict.mjs +2 -1
  206. package/scripts/langages/typescript/verifier.mjs +64 -99
  207. package/scripts/langages/typescript/verrou-des-dependances.mjs +2 -1
  208. package/scripts/langages/typescript/vitest-config/avancement.reporter.mjs +1 -0
  209. package/scripts/langages/typescript/vitest-config/base.mjs +5 -5
  210. package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -0
  211. package/scripts/langages/typescript/vitest-config/changements.mjs +6 -10
  212. package/scripts/langages/typescript/vitest-config/cibles.mjs +3 -3
  213. package/scripts/langages/typescript/vitest-config/delais.mjs +1 -0
  214. package/scripts/langages/typescript/vitest-config/delais.setup.mjs +1 -0
  215. package/scripts/langages/typescript/vitest-config/duree.classement.mjs +1 -1
  216. package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +4 -3
  217. package/scripts/langages/typescript/vitest-config/lances.mjs +3 -2
  218. package/scripts/langages/typescript/vitest-config/machine.setup.mjs +1 -0
  219. package/scripts/langages/typescript/vitest-config/mesure.mjs +1 -1
  220. package/scripts/langages/typescript/vitest-config/mesure.setup.mjs +1 -0
  221. package/scripts/langages/typescript/vitest-config/registre.setup.mjs +1 -0
  222. package/scripts/langages/typescript/vitest-config/resultats.mjs +2 -1
  223. package/scripts/langages/typescript/vitest-config/resultats.setup.mjs +1 -0
  224. package/scripts/langages/typescript/vitest.nuit.config.mjs +3 -2
  225. package/scripts/langages-des-paquets.mjs +3 -1
  226. package/scripts/langages.mjs +5 -3
  227. package/scripts/lecture-unique.mjs +2 -1
  228. package/scripts/ligne-etat/defaut.sh +2 -1
  229. package/scripts/ligne-etat/ligne-etat.mjs +1 -0
  230. package/scripts/lint-des-scripts.mjs +1 -0
  231. package/scripts/machine.mjs +4 -4
  232. package/scripts/matiere-de-test.d.ts +2 -1
  233. package/scripts/matieres-lues.mjs +2 -0
  234. package/scripts/messages-non-lus.mjs +2 -4
  235. package/scripts/mesure/avancement.mjs +1 -1
  236. package/scripts/mesure/base-de-passe.mjs +10 -13
  237. package/scripts/mesure/pression.mjs +3 -4
  238. package/scripts/mesure-de-la-machine.mjs +2 -1
  239. package/scripts/migrations/0.23.0-charte-importee.mjs +7 -13
  240. package/scripts/migrations/0.23.0-crochets-de-seance.mjs +6 -8
  241. package/scripts/migrations/0.23.0-marche-du-projet.mjs +8 -12
  242. package/scripts/migrations/0.23.2-copies-du-cadre.mjs +9 -32
  243. package/scripts/migrations/0.24.0-circuit-simplifie.mjs +11 -39
  244. package/scripts/migrations/0.24.12-tri-des-decouvertes.mjs +6 -9
  245. package/scripts/migrations/0.24.2-api-extractor-du-paquet.mjs +8 -19
  246. package/scripts/migrations/0.25.0-script-des-tests.mjs +7 -13
  247. package/scripts/migrations/0.27.0-langages-dans-l-architecture.mjs +9 -23
  248. package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +7 -9
  249. package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +7 -18
  250. package/scripts/migrations/0.33.0-cache-distant.mjs +6 -9
  251. package/scripts/migrations/0.33.0-ci-du-cadre.mjs +5 -8
  252. package/scripts/migrations/0.33.0-node-26.mjs +5 -8
  253. package/scripts/migrations/0.35.0-greffon-mattpocock-retire.mjs +5 -10
  254. package/scripts/migrations/0.44.0-node-26-seul.mjs +6 -9
  255. package/scripts/migrations/0.44.0-seuil-des-codes-de-tickets.mjs +6 -7
  256. package/scripts/migrations/0.47.0-ci-de-main.mjs +6 -7
  257. package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +6 -6
  258. package/scripts/migrations/0.48.0-poussee-retiree.mjs +3 -5
  259. package/scripts/migrations/0.49.0-reservation-de-trois-coeurs.mjs +3 -4
  260. package/scripts/migrations/0.50.0-reglages-hors-de-la-charte.mjs +81 -0
  261. package/scripts/migrations-des-gardes.mjs +2 -0
  262. package/scripts/migrations.mjs +4 -0
  263. package/scripts/newday.mjs +2 -2
  264. package/scripts/nuit.sh +7 -5
  265. package/scripts/outil.mjs +2 -1
  266. package/scripts/outils-cles.mjs +6 -6
  267. package/scripts/paquet-npm.mjs +3 -2
  268. package/scripts/paquet.mjs +3 -4
  269. package/scripts/paquets.d.ts +1 -1
  270. package/scripts/paquets.mjs +2 -0
  271. package/scripts/passe-de-la-machine.mjs +9 -12
  272. package/scripts/places-de-la-machine.mjs +36 -53
  273. package/scripts/places-du-serveur.mjs +5 -4
  274. package/scripts/plafond-de-la-machine.mjs +19 -19
  275. package/scripts/poussee-retiree.mjs +2 -1
  276. package/scripts/prefixe-des-tickets.mjs +1 -0
  277. package/scripts/preparation.mjs +2 -1
  278. package/scripts/recommencer.mjs +2 -2
  279. package/scripts/references-changees.mjs +1 -1
  280. package/scripts/registre-des-resultats.mjs +3 -1
  281. package/scripts/registre.mjs +14 -16
  282. package/scripts/regles-des-places.mjs +4 -6
  283. package/scripts/repli-de-la-nuit.mjs +2 -1
  284. package/scripts/reponses-du-circuit.mjs +4 -3
  285. package/scripts/reprise.mjs +3 -2
  286. package/scripts/resultats.mjs +71 -93
  287. package/scripts/retirer-copie.sh +2 -1
  288. package/scripts/retirer-les-copies-finies.mjs +2 -1
  289. package/scripts/seances.mjs +3 -2
  290. package/scripts/services-du-noyau.mjs +2 -0
  291. package/scripts/session-start.sh +33 -52
  292. package/scripts/sigle-du-projet.mjs +1 -2
  293. package/scripts/sortie.mjs +2 -1
  294. package/scripts/sources.mjs +2 -0
  295. package/scripts/sous-commandes.mjs +2 -1
  296. package/scripts/sous-modules.sh +24 -43
  297. package/scripts/structure-guard.sh +2 -1
  298. package/scripts/style-a-l-ecriture.mjs +2 -0
  299. package/scripts/suiveur.mjs +1 -1
  300. package/scripts/superviseur.mjs +36 -55
  301. package/scripts/tableau-des-composants.mjs +5 -7
  302. package/scripts/tableau.mjs +78 -121
  303. package/scripts/taches-du-graphe.mjs +3 -0
  304. package/scripts/ticket-du-circuit.mjs +1 -1
  305. package/scripts/transitions.mjs +15 -15
  306. package/scripts/un-commit-par-ticket.mjs +2 -1
  307. package/scripts/verdict-de-la-nuit.mjs +2 -1
  308. package/scripts/verrou-de-fichier.mjs +1 -0
  309. package/scripts/verrous/commande.mjs +2 -1
  310. package/scripts/verrous/ecriture-hors-enveloppe.mjs +1 -0
  311. package/scripts/verrous/ticket-du-sous-agent.mjs +1 -0
  312. package/scripts/verrous/verrou.mjs +3 -3
  313. package/scripts/workflows-du-cadre.mjs +2 -1
  314. package/skills/developpeur/SKILL.md +6 -10
  315. package/skills/explorateur/SKILL.md +1 -1
  316. package/skills/grill/SKILL.md +4 -5
  317. package/skills/grill/references/paquets.md +5 -8
  318. package/skills/pitmaster/SKILL.md +176 -268
  319. package/skills/pitmaster/references/cadre.md +7 -6
  320. package/skills/pitmaster/references/consigne-agent.md +36 -32
  321. package/skills/pitmaster/references/tour.md +2 -2
  322. package/skills/redacteur/references/documents-d-un-composant.md +9 -8
  323. package/skills/testwriter/SKILL.md +8 -11
  324. package/types/index.d.ts +3 -0
@@ -1,4 +1,5 @@
1
- // The base of a pass in the workflows: a workflow that plays `verifier` gives it a base
1
+ // The base of a pass in the workflows (packages/grillhouse/docs/architecture/entree.md §5.2, the
2
+ // CI flow): a workflow that plays `verifier` gives it a base
2
3
  // (`--base <commit>`, scripts/dernier-vert.mjs) for a push alone. A pull request, the call of the
3
4
  // workflow by the release (workflow_call), the nightly schedule and any run without a push event play
4
5
  // the complete pass, as `turbo --affected` takes its base (`TURBO_SCM_BASE`) from a push event.
package/scripts/bilan.mjs CHANGED
@@ -9,79 +9,57 @@
9
9
  // prints the bilan of <ticket>, read from the main tree of the current directory; `--garder` keeps
10
10
  // it too, as the circuit does, so the next ticket's bilan names it as its base.
11
11
  //
12
- // - Its sources are structured results, never a text (tests/unit/circuit-sans-texte-libre.spec.ts):
13
- // the register of finished agents (`~/.claude/grillhouse/registre.jsonl`, GRILLHOUSE_REGISTRE
14
- // replaces it), each agent's latest line on the ticket (its project the main tree, or a folder
15
- // of it), its turns, its tokens, its cache reads and its cost, and the lines of the role
16
- // `circuit` of the steps the circuit leads itself; the results the circuit keeps,
17
- // `.claude/worktrees/<ticket>.fiches.jsonl`, each with its time: the launch of each session the
18
- // circuit opens or resumes (`lancement`: its role and its session id, the register line's
19
- // `agent`), the sheet of each session (`{ role, fiche }`), the outcome of each proof
20
- // (`resultat`: `ok`, its counts, `vide`) and of each check (`resultat`: `issue` vert, rouge or a-repasser, `finale`, its reds `rouges`), each
21
- // stop (`arret`, its name, `finale`, the outcome of the checks it stops), each developpeur session that changed no file of the plan (`inchange`), the
22
- // end of the questioning of the plan (`questionnement`: its `objet`, the questions the
23
- // questionneur asked, `questions`, whether an answer changed the plan, `change`, its `issue`,
24
- // AUCUNE, QUESTIONS or DÉSACCORD, and the questions left open, `ouvertes`), the end of the tri
25
- // of the discoveries (`tri`: the discoveries it read, `decouvertes`, whether its sheet
26
- // conformed, `conforme`, its verdicts by kind, `verdicts`; its sessions, the launches of object
27
- // `tri`), each end of a run on
28
- // a stop (`montee`: its code, its stop and the supervisor's session that ran it, `superviseur`);
29
- // where the circuit ended (`{ etape, raison, code }`), which the end of the circuit gives its
30
- // bilan (the effect `bilan`, scripts/effets.mjs) and the command reads from the Temporal server;
31
- // the night the project declares in its package.json (`grillhouse.plageDeNuit`); the transcript
32
- // of each supervisor's session a stop names (`~/.claude/projects/<projet>/<séance>.jsonl`), of
33
- // which the origin and the time of each message, as ccusage measures from the transcripts. It
34
- // reads no comment of the ticket. Every agent declares nothing: the bilan measures.
35
- // - The steps and the roles are those of scripts/etapes.mjs; a register line's role is read as the
36
- // board reads it (`roleDeLAgent`: bare, or scoped by the frame's plugin, `grillhouse:<rôle>`, as
37
- // the register writes it). Only the circuit's roles count, the
38
- // explorateur of the plan among them. Only the sessions the circuit launched count in
39
- // the window, the categories, the tokens and the cost; a session of a circuit's role on the
40
- // ticket the circuit did not launch, the supervisor's, counts apart (`seances.horsCircuit`: its
41
- // number, by role, its cost).
42
- // - The window: from the first turn of a session or a step to the last result of the circuit or
43
- // the last turn; its length is the wall time.
12
+ // - Its sources are structured results, never a text (tests/unit/circuit-sans-texte-libre.spec.ts),
13
+ // and no comment of the ticket: the register of finished agents (`~/.claude/grillhouse/
14
+ // registre.jsonl`, GRILLHOUSE_REGISTRE replaces it), each agent's latest line on the ticket
15
+ // (turns, tokens, cache reads, cost) and the lines of the role `circuit`; the results the circuit
16
+ // keeps, `.claude/worktrees/<ticket>.fiches.jsonl`, each with its time (`lancement`, the sheet
17
+ // `{ role, fiche }`, `resultat` of a proof or of a check, `arret`, `inchange`, `questionnement`,
18
+ // `tri`, `montee`), and where the circuit ended (`{ etape, raison, code }`, given by the effect
19
+ // `bilan` of scripts/effets.mjs and read from the Temporal server by the command); the night
20
+ // the project declares (`grillhouse.plageDeNuit`); the transcript of each supervisor's session
21
+ // a stop names (`~/.claude/projects/<projet>/<séance>.jsonl`), for the origin and the time of
22
+ // each message.
23
+ // - The steps and the roles are those of scripts/etapes.mjs; a register line's role is read as
24
+ // the board reads it (`roleDeLAgent`: bare, or scoped `grillhouse:<rôle>`). Only the circuit's
25
+ // roles count; only the sessions the circuit launched count in the window, the categories, the
26
+ // tokens and the cost; a session of a circuit's role the circuit did not launch counts apart
27
+ // (`seances.horsCircuit`: its number, by role, its cost).
28
+ // - The window runs from the first turn of a session or a step to the last result of the circuit
29
+ // or the last turn; its length is the wall time. A step `controles` whose outcome or stop is
30
+ // the final pass's (`finale`) is the final pass.
44
31
  // - Each turn of a session and each step finds its result: a step, the last outcome or stop of
45
32
  // its step kept during it, before the next step of its name; a session, the first sheet of its
46
- // role kept after its turn, before the next turn of any other. Every step is one for the whole ticket. A step `controles` whose
47
- // outcome or stop is the final pass's (`finale`) is the final pass.
33
+ // role kept after its turn, before the next turn of any other.
48
34
  // - The categories, each instant once:
49
35
  // - travail resté au lot: a session that delivered, the reviewer's included;
50
- // - relance sans effet: a developer whose session changed no file of the plan (`inchange`, which
51
- // the circuit measures), whatever stop follows it; a testwriter whose next
52
- // proof finds the lot of the proof before it (the same counts of reds, greens of the lot,
53
- // broken files and greens of HEAD), after a refused proof, or no file of the lot (`vide`:
54
- // reds that exist already or of a build alone, no green of the lot); that proof; checks that
55
- // play the same measure again (their outcome and their reds) with no delivery of the testwriter or the developpeur since the
56
- // checks of their kind before (the final pass: since the final pass before);
57
- // - questionnement: a session of the questionneur (kept: a look that did not write the plan, as
58
- // a review);
59
- // - attente du superviseur, attente du responsable, nuit: as the lead time of DORA separates the
60
- // wait for review from the work, each wait runs from an end of a run on a stop (`montee`) to
61
- // the first turn of a session or step after it, or the next result of the circuit, the first
62
- // of the two; it is the owner's when he wrote during it, a message of the person
63
- // (`origin.kind` « human ») in the supervisor's session the stop names; else the supervisor's;
64
- // but its part in the night: the hours of
65
- // `grillhouse.plageDeNuit` in the project's package.json (`{ debut, fin }`, in local time), from 23 h to 8 h without it;
36
+ // - relance sans effet: a developer whose session changed no file of the plan (`inchange`); a
37
+ // testwriter whose next proof finds the lot of the proof before it (same counts of reds,
38
+ // greens of the lot, broken files, greens of HEAD) or no file of the lot (`vide`), and that
39
+ // proof; checks that play the same measure again with no delivery since the checks of their
40
+ // kind before (the final pass: since the final pass before);
41
+ // - questionnement: a session of the questionneur;
42
+ // - attente du superviseur, attente du responsable, nuit: each wait runs from an end of a run on
43
+ // a stop (`montee`) to the first turn of a session or step after it, or the next result of the
44
+ // circuit; it is the owner's when a message of the person (`origin.kind` « human ») came in
45
+ // the supervisor's session the stop names, else the supervisor's; its part in the night is
46
+ // the hours of `grillhouse.plageDeNuit` (`{ debut, fin }`, local time), 23 h to 8 h without it;
66
47
  // - étapes automatiques: the other steps the circuit leads, but the final passes;
67
48
  // - passes finales: the final passes, but those without effect or replayed;
68
- // - rejeu d'étapes déjà vertes: the same, on a lot unchanged since green: checks green again,
69
- // a testwriter run again on a proven lot, its proof;
49
+ // - rejeu d'étapes déjà vertes: the same, on a lot unchanged since green;
70
50
  // - entre deux étapes: the rest of the window.
71
51
  // What is lost is the wall time out of the work, the questioning, the automatic steps and the
72
52
  // final passes. The text gives the wall time and the wall time out of the night spent waiting
73
53
  // (« hors nuit d'attente »: a night at work stays in it), the time lost and the time lost out of
74
54
  // the waits.
75
- // - The bilan counts the sessions by role, the steps by their titles, the stops by kind (`arret`),
76
- // the ends on a stop (the waits), the questions of the plan asked, the plans they changed and the
77
- // questions left open, the tri of the discoveries on a line of its own when there was one (its
78
- // sessions, its discoveries and its verdicts, or its sheet that did not conform), the tokens,
79
- // the cache reads and the cost (a session without a cost
80
- // counts 0); a session's tokens go to its turns by their time.
55
+ // - It counts the sessions by role, the steps by title, the stops by kind (`arret`), the waits,
56
+ // the questions of the plan asked, the plans they changed and the questions left open, the tri
57
+ // of the discoveries on a line of its own, the tokens, the cache reads and the cost (a session
58
+ // without a cost counts 0); a session's tokens go to its turns by their time.
81
59
  // - It is kept in the main tree, `.claude/worktrees/<ticket>.bilan.json`, and compares itself with
82
- // the latest other ticket of the project whose bilan is kept, its bilan computed again by this
83
- // version from its sources (`precedent`), or with nothing when they give none: no figure kept by
84
- // an earlier version, and none of another project, is written here.
60
+ // the latest other ticket of the project whose bilan is kept, recomputed by this version from
61
+ // its sources (`precedent`), or with nothing when none is: no figure kept by an earlier version,
62
+ // and none of another project, is written here.
85
63
  import { spawnSync } from 'node:child_process';
86
64
  import {
87
65
  closeSync,
@@ -2,7 +2,8 @@
2
2
  // The binaries of the languages of a project, installed on the machine alone, as `rustup` or
3
3
  // `actions/setup-*` bring a toolchain without touching the repository: what a CI runs after
4
4
  // `npm ci`, so that `npm run verifier` finds the programs its languages run (cargo's sccache,
5
- // nextest and cargo-deny; python's uv).
5
+ // nextest and cargo-deny; python's uv). The mechanism is installation.md §5.3 (step 3) and §5.2
6
+ // (packages/grillhouse/docs/architecture/).
6
7
  //
7
8
  // npx grillhouse binaires from the root of the project
8
9
  //
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
- // The judged main guard: a push to origin of the branch main carries only a commit whose tree a
2
+ // The judged main guard (packages/grillhouse/docs/architecture/entree.md §3.1 « Garde de main »,
3
+ // §3.3, §5.1): a push to origin of the branch main carries only a commit whose tree a
3
4
  // final pass of the circuit, or the verification of a lot of the direct way, judged green
4
5
  // (scripts/arbres-juges.mjs), as bors and the merge queues enter only a tree already judged
5
6
  // (`refusSurMain`), in every project. Run by the pre-push hook of the frame with git's arguments
package/scripts/cadre.mjs CHANGED
@@ -7,7 +7,8 @@
7
7
  // package is the plugin, as a package of ESLint carries its plugin: its root holds the plugin's
8
8
  // files, so the marketplace names the package by a source npm, which has no subdirectory; and
9
9
  // it carries a copy of the template under `cadre/`, as create-vite carries its templates. The
10
- // frame arrives in one piece.
10
+ // frame arrives in one piece. The mechanism is installation.md §4.4 and §4.5
11
+ // (packages/grillhouse/docs/architecture/).
11
12
  //
12
13
  // node scripts/cadre.mjs --empaqueter copies them into the package (the package's prepack)
13
14
  // node scripts/cadre.mjs --nettoyer removes the copies (the package's postpack)
@@ -17,14 +18,17 @@
17
18
  // repository, two levels above the package. CADRE is the root the template is read from:
18
19
  // `cadre/` of the installed package, else the repository. So the package reads the same files
19
20
  // wherever it is installed, and the repository keeps one address for each.
20
- // - The copy of the plugin, ELEMENTS_DU_GREFFON, is each entry of `mods/grillhouse/` but its tests
21
- // (`tests/`) and its configuration of TypeScript (`tsconfig.json`), at the package's root,
21
+ // - The copy of the plugin, ELEMENTS_DU_GREFFON, is each entry of `mods/grillhouse/` that git does
22
+ // not ignore, but its tests
23
+ // (`tests/`), its configuration of TypeScript (`tsconfig.json`) and what makes it a package of the
24
+ // workspace (`package.json`, `turbo.json`, `.turbo`, `node_modules`), at the package's root,
22
25
  // beside the package's own entries, PROPRES_DU_PAQUET; an entry of the plugin of the same name
23
26
  // stops the copy. Its manifest (`.claude-plugin/plugin.json`)
24
27
  // receives VERSION: the plugin takes the package's version, its manifest in the repository
25
28
  // carries none.
26
29
  // - VERSION is the `version` of the package's package.json, the one version of the package and its
27
30
  // plugin.
31
+ import { spawnSync } from 'node:child_process';
28
32
  import { cpSync, existsSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
29
33
  import path from 'node:path';
30
34
  import { pathToFileURL } from 'node:url';
@@ -55,14 +59,38 @@ export const PROPRES_DU_PAQUET = [
55
59
  ];
56
60
 
57
61
  /** The entries of the plugin's source the package leaves out. */
58
- export const HORS_DU_GREFFON = ['tests', 'tsconfig.json'];
62
+ export const HORS_DU_GREFFON = [
63
+ 'tests',
64
+ 'tsconfig.json',
65
+ 'package.json',
66
+ 'turbo.json',
67
+ '.turbo',
68
+ 'node_modules',
69
+ ];
70
+
71
+ /**
72
+ * The entries of a plugin's source directory the package copies: each one but HORS_DU_GREFFON and
73
+ * what git ignores (a cache a tool wrote there), as `npm pack` leaves out what .gitignore names.
74
+ */
75
+ export function elementsDuGreffon(source) {
76
+ if (!existsSync(source)) {
77
+ return [];
78
+ }
79
+ const entrees = readdirSync(source).filter(e => !HORS_DU_GREFFON.includes(e));
80
+ if (entrees.length === 0) {
81
+ return [];
82
+ }
83
+ const { stdout } = spawnSync('git', ['check-ignore', '-z', '--stdin'], {
84
+ cwd: source,
85
+ input: entrees.join('\0'),
86
+ encoding: 'utf8',
87
+ });
88
+ const ignorees = new Set(stdout.split('\0').filter(Boolean));
89
+ return entrees.filter(e => !ignorees.has(e)).sort();
90
+ }
59
91
 
60
92
  /** The entries of the plugin, which `--empaqueter` copies at the package's root. */
61
- export const ELEMENTS_DU_GREFFON = existsSync(SOURCE_DU_GREFFON)
62
- ? readdirSync(SOURCE_DU_GREFFON)
63
- .filter(e => !HORS_DU_GREFFON.includes(e))
64
- .sort()
65
- : [];
93
+ export const ELEMENTS_DU_GREFFON = elementsDuGreffon(SOURCE_DU_GREFFON);
66
94
 
67
95
  /** The root of the frame's files: the package's copy when installed, else the repository. */
68
96
  export const CADRE = INSTALLE ? COPIE : DEPOT;
@@ -1,4 +1,5 @@
1
- // The CI of main, read after the lots entered, as Google's TAP plays the whole suite after the
1
+ // The reading and the start of the CI of main (packages/grillhouse/docs/architecture/entree.md
2
+ // §3.1 « Lecture et déclenchement de la CI de main », §5.2), read after the lots entered, as Google's TAP plays the whole suite after the
2
3
  // submit, by batches of changes, and a red looks for its culprit among the lots entered since the
3
4
  // last green. A lot enters main on its final pass (scripts/integration/file.mjs); the CI plays on
4
5
  // main, started by the queue itself after a lot entered, one pass an hour at most, and this module