@roomi-fields/grillhouse 0.29.0 → 0.30.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 (222) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +739 -0
  3. package/bin/grillhouse.mjs +79 -18
  4. package/cadre/templates/projet/.github/workflows/ci.yml +2 -13
  5. package/cadre/templates/projet/CLAUDE.md +5 -1
  6. package/cadre/templates/projet/docs/agents/issue-tracker.md +1 -1
  7. package/cadre/templates/projet/package.json +2 -2
  8. package/charte.md +24 -0
  9. package/dist/temporal/acte.d.ts +24 -0
  10. package/dist/temporal/acte.js +139 -0
  11. package/dist/temporal/acte.js.map +1 -0
  12. package/dist/temporal/attributs.d.ts +6 -0
  13. package/dist/temporal/attributs.js +15 -0
  14. package/dist/temporal/attributs.js.map +1 -0
  15. package/dist/temporal/circuit/activites.d.ts +13 -0
  16. package/dist/temporal/circuit/activites.js +33 -0
  17. package/dist/temporal/circuit/activites.js.map +1 -0
  18. package/dist/temporal/circuit/client.d.ts +72 -0
  19. package/dist/temporal/circuit/client.js +247 -0
  20. package/dist/temporal/circuit/client.js.map +1 -0
  21. package/dist/temporal/circuit/commande.d.ts +2 -0
  22. package/dist/temporal/circuit/commande.js +238 -0
  23. package/dist/temporal/circuit/commande.js.map +1 -0
  24. package/dist/temporal/circuit/contrat.d.ts +305 -0
  25. package/dist/temporal/circuit/contrat.js +24 -0
  26. package/dist/temporal/circuit/contrat.js.map +1 -0
  27. package/dist/temporal/circuit/deroule.d.ts +3 -0
  28. package/dist/temporal/circuit/deroule.js +540 -0
  29. package/dist/temporal/circuit/deroule.js.map +1 -0
  30. package/dist/temporal/client.d.ts +47 -0
  31. package/dist/temporal/client.js +69 -0
  32. package/dist/temporal/client.js.map +1 -0
  33. package/dist/temporal/commande.d.ts +2 -0
  34. package/dist/temporal/commande.js +95 -0
  35. package/dist/temporal/commande.js.map +1 -0
  36. package/dist/temporal/deroules.d.ts +5 -0
  37. package/dist/temporal/deroules.js +10 -0
  38. package/dist/temporal/deroules.js.map +1 -0
  39. package/dist/temporal/etat.d.ts +33 -0
  40. package/dist/temporal/etat.js +59 -0
  41. package/dist/temporal/etat.js.map +1 -0
  42. package/dist/temporal/file/activites.d.ts +10 -0
  43. package/dist/temporal/file/activites.js +25 -0
  44. package/dist/temporal/file/activites.js.map +1 -0
  45. package/dist/temporal/file/client.d.ts +4 -0
  46. package/dist/temporal/file/client.js +6 -0
  47. package/dist/temporal/file/client.js.map +1 -0
  48. package/dist/temporal/file/contrat.d.ts +158 -0
  49. package/dist/temporal/file/contrat.js +14 -0
  50. package/dist/temporal/file/contrat.js.map +1 -0
  51. package/dist/temporal/file/deroule.d.ts +15 -0
  52. package/dist/temporal/file/deroule.js +235 -0
  53. package/dist/temporal/file/deroule.js.map +1 -0
  54. package/dist/temporal/installation.d.ts +124 -0
  55. package/dist/temporal/installation.js +408 -0
  56. package/dist/temporal/installation.js.map +1 -0
  57. package/dist/temporal/places/activites.d.ts +8 -0
  58. package/dist/temporal/places/activites.js +13 -0
  59. package/dist/temporal/places/activites.js.map +1 -0
  60. package/dist/temporal/places/client.d.ts +28 -0
  61. package/dist/temporal/places/client.js +64 -0
  62. package/dist/temporal/places/client.js.map +1 -0
  63. package/dist/temporal/places/contrat.d.ts +106 -0
  64. package/dist/temporal/places/contrat.js +21 -0
  65. package/dist/temporal/places/contrat.js.map +1 -0
  66. package/dist/temporal/places/deroule.d.ts +3 -0
  67. package/dist/temporal/places/deroule.js +198 -0
  68. package/dist/temporal/places/deroule.js.map +1 -0
  69. package/dist/temporal/sonde/activites.d.ts +6 -0
  70. package/dist/temporal/sonde/activites.js +52 -0
  71. package/dist/temporal/sonde/activites.js.map +1 -0
  72. package/dist/temporal/sonde/contrat.d.ts +35 -0
  73. package/dist/temporal/sonde/contrat.js +10 -0
  74. package/dist/temporal/sonde/contrat.js.map +1 -0
  75. package/dist/temporal/sonde/deroule.d.ts +3 -0
  76. package/dist/temporal/sonde/deroule.js +39 -0
  77. package/dist/temporal/sonde/deroule.js.map +1 -0
  78. package/dist/temporal/tickets/activites.d.ts +7 -0
  79. package/dist/temporal/tickets/activites.js +81 -0
  80. package/dist/temporal/tickets/activites.js.map +1 -0
  81. package/dist/temporal/tickets/client.d.ts +10 -0
  82. package/dist/temporal/tickets/client.js +31 -0
  83. package/dist/temporal/tickets/client.js.map +1 -0
  84. package/dist/temporal/tickets/contrat.d.ts +56 -0
  85. package/dist/temporal/tickets/contrat.js +13 -0
  86. package/dist/temporal/tickets/contrat.js.map +1 -0
  87. package/dist/temporal/tickets/deroule.d.ts +3 -0
  88. package/dist/temporal/tickets/deroule.js +94 -0
  89. package/dist/temporal/tickets/deroule.js.map +1 -0
  90. package/dist/temporal/travailleur.d.ts +2 -0
  91. package/dist/temporal/travailleur.js +69 -0
  92. package/dist/temporal/travailleur.js.map +1 -0
  93. package/docs/ARCHITECTURE.md +609 -80
  94. package/docs/CADRE.md +17 -0
  95. package/docs/INTERFACE.md +134 -42
  96. package/hooks/crochet.mjs +19 -2
  97. package/hooks/hooks.json +11 -0
  98. package/package.json +16 -4
  99. package/scripts/activites.mjs +2182 -0
  100. package/scripts/aiguillage.d.mts +37 -0
  101. package/scripts/aiguillage.mjs +7 -3
  102. package/scripts/avancement.mjs +128 -16
  103. package/scripts/bilan.mjs +37 -19
  104. package/scripts/cadre.mjs +11 -2
  105. package/scripts/circuit.mjs +881 -4059
  106. package/scripts/circuits-cles.d.mts +4 -0
  107. package/scripts/circuits-cles.mjs +21 -0
  108. package/scripts/circuits-du-serveur.mjs +105 -0
  109. package/scripts/codes-de-sortie.mjs +9 -0
  110. package/scripts/commandes-composees.mjs +45 -41
  111. package/scripts/commandes-du-path.d.mts +7 -0
  112. package/scripts/commandes-du-path.mjs +25 -0
  113. package/scripts/composition-des-langages.mjs +16 -12
  114. package/scripts/conformite.mjs +6 -13
  115. package/scripts/copies-finies.mjs +52 -47
  116. package/scripts/depart-du-ticket.d.mts +53 -0
  117. package/scripts/depart-du-ticket.mjs +124 -0
  118. package/scripts/dependances-internes.mjs +115 -0
  119. package/scripts/dernier-vert.mjs +7 -15
  120. package/scripts/donnees-cles.mjs +228 -0
  121. package/scripts/droits.mjs +11 -1
  122. package/scripts/effets.mjs +352 -0
  123. package/scripts/enveloppe/enveloppe.mjs +119 -8
  124. package/scripts/enveloppe/lancer.sh +14 -18
  125. package/scripts/enveloppe/paquets-du-plan.mjs +2 -2
  126. package/scripts/enveloppe/travail-de-la-copie.mjs +5 -1
  127. package/scripts/etapes.mjs +5 -2
  128. package/scripts/faits-du-circuit.mjs +493 -0
  129. package/scripts/file-des-tickets.d.mts +21 -0
  130. package/scripts/file-des-tickets.mjs +58 -0
  131. package/scripts/flux-des-paquets.mjs +187 -0
  132. package/scripts/gardes-du-cadre.mjs +12 -2
  133. package/scripts/integration/file.mjs +475 -420
  134. package/scripts/integration/integrer.mjs +17 -19
  135. package/scripts/integration/rejeu.mjs +19 -4
  136. package/scripts/jointure.d.ts +145 -27
  137. package/scripts/langages/cargo/commandes.mjs +289 -109
  138. package/scripts/langages/cargo/composants.mjs +130 -34
  139. package/scripts/langages/cargo/exemples.mjs +12 -21
  140. package/scripts/langages/cargo/index.mjs +18 -8
  141. package/scripts/langages/cargo/sccache.mjs +8 -14
  142. package/scripts/langages/python/commandes.mjs +216 -100
  143. package/scripts/langages/python/composants.mjs +53 -21
  144. package/scripts/langages/python/exemples.mjs +6 -16
  145. package/scripts/langages/python/index.mjs +24 -8
  146. package/scripts/langages/python/lot.mjs +1 -36
  147. package/scripts/langages/typescript/construire.mjs +6 -163
  148. package/scripts/langages/typescript/exemples.mjs +3 -11
  149. package/scripts/langages/typescript/frontieres.mjs +1 -1
  150. package/scripts/langages/typescript/index.mjs +43 -61
  151. package/scripts/langages/typescript/interfaces-contre-code.mjs +4 -4
  152. package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +63 -0
  153. package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +31 -0
  154. package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +40 -0
  155. package/scripts/langages/typescript/mise-a-jour.mjs +1 -2
  156. package/scripts/langages/typescript/tailles-des-tests.mjs +40 -9
  157. package/scripts/langages/typescript/tests-de-nuit.mjs +12 -9
  158. package/scripts/langages/typescript/tests.mjs +17 -8
  159. package/scripts/langages/typescript/titres-de-tests.mjs +297 -0
  160. package/scripts/langages/typescript/turbo-des-paquets.mjs +183 -38
  161. package/scripts/langages/typescript/verdict.mjs +1 -1
  162. package/scripts/langages/typescript/verifier.mjs +31 -11
  163. package/scripts/langages/typescript/vitest-config/base.mjs +22 -1
  164. package/scripts/langages/typescript/vitest-config/bornes.mjs +13 -0
  165. package/scripts/langages/typescript/vitest-config/cibles.mjs +36 -14
  166. package/scripts/langages/typescript/vitest-config/delais.mjs +54 -0
  167. package/scripts/langages/typescript/vitest-config/delais.setup.mjs +11 -0
  168. package/scripts/langages/typescript/vitest-config/duree.classement.mjs +100 -0
  169. package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +49 -63
  170. package/scripts/langages/typescript/vitest-config/machine.setup.mjs +3 -0
  171. package/scripts/langages/typescript/vitest.nuit.config.mjs +4 -0
  172. package/scripts/mesure/pression.mjs +3 -3
  173. package/scripts/mesure-de-la-machine.d.mts +21 -0
  174. package/scripts/mesure-de-la-machine.mjs +76 -0
  175. package/scripts/migrations/0.23.2-copies-du-cadre.mjs +8 -2
  176. package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +120 -0
  177. package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +81 -0
  178. package/scripts/migrations.mjs +5 -0
  179. package/scripts/nuit.sh +10 -3
  180. package/scripts/outils-cles.d.mts +24 -0
  181. package/scripts/outils-cles.mjs +0 -1
  182. package/scripts/paquet-npm.mjs +147 -0
  183. package/scripts/paquet.mjs +73 -4
  184. package/scripts/paquets.mjs +34 -6
  185. package/scripts/passe-de-la-machine.mjs +66 -0
  186. package/scripts/places-de-la-machine.mjs +360 -0
  187. package/scripts/places-du-serveur.mjs +170 -0
  188. package/scripts/prefixe-des-tickets.mjs +68 -0
  189. package/scripts/preparation.mjs +10 -3
  190. package/scripts/registre.mjs +3 -2
  191. package/scripts/regles-des-places.d.mts +36 -0
  192. package/scripts/regles-des-places.mjs +70 -0
  193. package/scripts/reponses-du-circuit.d.mts +6 -0
  194. package/scripts/reponses-du-circuit.mjs +28 -0
  195. package/scripts/resultats.mjs +7 -9
  196. package/scripts/retirer-les-copies-finies.mjs +25 -0
  197. package/scripts/sans-reponse.d.mts +4 -0
  198. package/scripts/sans-reponse.mjs +13 -0
  199. package/scripts/seances.mjs +918 -0
  200. package/scripts/services-du-noyau.mjs +26 -8
  201. package/scripts/session-start.sh +2 -2
  202. package/scripts/sortie.mjs +3 -3
  203. package/scripts/sous-commandes.mjs +38 -9
  204. package/scripts/style-a-l-ecriture.mjs +229 -0
  205. package/scripts/superviseur.mjs +122 -111
  206. package/scripts/tableau.mjs +148 -110
  207. package/scripts/taches-du-graphe.mjs +328 -0
  208. package/scripts/ticket-du-circuit.mjs +206 -0
  209. package/scripts/transitions.d.mts +148 -0
  210. package/scripts/transitions.mjs +901 -0
  211. package/scripts/verrou-de-fichier.mjs +2 -2
  212. package/scripts/verrou-de-machine.mjs +28 -13
  213. package/skills/explorateur/SKILL.md +2 -1
  214. package/skills/pitmaster/SKILL.md +17 -18
  215. package/skills/pitmaster/references/consigne-agent.md +5 -1
  216. package/skills/release/SKILL.md +3 -3
  217. package/skills/relecteur/SKILL.md +4 -2
  218. package/skills/testwriter/SKILL.md +36 -24
  219. package/scripts/demon.mjs +0 -251
  220. package/scripts/integration/file-attente.mjs +0 -61
  221. package/scripts/langages/cargo/touches.mjs +0 -93
  222. package/scripts/langages/typescript/script-des-tests.mjs +0 -6
@@ -1,61 +0,0 @@
1
- // The waiting side of the integration, kept in git's common directory: the queue's entries, and
2
- // the git directory the integration's locks live in (taken through scripts/verrou-de-fichier.mjs).
3
- // The integration writes an entry when it commits a ticket on its branch; the queue
4
- // (scripts/integration/file.mjs) reads them in their order of arrival.
5
- //
6
- // - An entry is one JSON file `<arrival>-<process>.json` under `file-integration/` holding the
7
- // branch and its one ticket; the name sorts in the order of arrival. One branch has one
8
- // entry: writing it again replaces the earlier one.
9
- import { spawnSync } from 'node:child_process';
10
- import { mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
11
- import path from 'node:path';
12
-
13
- // The git common directory of the repository at <racine>, absolute.
14
- export function dossierCommun(racine) {
15
- return spawnSync(
16
- 'git',
17
- ['-C', racine, 'rev-parse', '--path-format=absolute', '--git-common-dir'],
18
- { encoding: 'utf8' }
19
- ).stdout.trim();
20
- }
21
-
22
- const dossierEntrees = racine => path.join(dossierCommun(racine), 'file-integration');
23
-
24
- // The entries waiting, in their order of arrival: { fichier, branche, ticket }.
25
- export function lireEntrees(racine) {
26
- const dossier = dossierEntrees(racine);
27
- let noms = [];
28
- try {
29
- noms = readdirSync(dossier)
30
- .filter(n => n.endsWith('.json'))
31
- .sort();
32
- } catch {
33
- return [];
34
- }
35
- const entrees = [];
36
- for (const n of noms) {
37
- try {
38
- const e = JSON.parse(readFileSync(path.join(dossier, n), 'utf8'));
39
- entrees.push({ fichier: path.join(dossier, n), branche: e.branche, ticket: e.ticket });
40
- } catch {
41
- // an entry being written is read at the next turn
42
- }
43
- }
44
- return entrees;
45
- }
46
-
47
- // Puts the branch at the end of the queue, replacing its earlier entry.
48
- export function inscrireEntree(racine, branche, ticket) {
49
- for (const e of lireEntrees(racine)) {
50
- if (e.branche === branche) rmSync(e.fichier, { force: true });
51
- }
52
- const dossier = dossierEntrees(racine);
53
- mkdirSync(dossier, { recursive: true });
54
- const arrivee = String(Date.now()).padStart(15, '0');
55
- const fichier = path.join(dossier, `${arrivee}-${String(process.pid).padStart(8, '0')}.json`);
56
- writeFileSync(fichier, JSON.stringify({ branche, ticket }), { flag: 'wx' });
57
- }
58
-
59
- export function retirerEntree(entree) {
60
- rmSync(entree.fichier, { force: true });
61
- }
@@ -1,93 +0,0 @@
1
- // The crates touched since a commit, the demand `touches` of the join (scripts/jointure.d.ts), as
2
- // Turborepo's `--filter=...[<commit>]` reads the packages a change reaches and its global
3
- // dependencies touch them all.
4
- //
5
- // - The files changed: what git sees changed since the commit, the working tree and the untracked
6
- // files included (`git diff --name-only --no-renames <depuis>`, `git ls-files -o
7
- // --exclude-standard`).
8
- // - Each file in the crate of the longest folder that holds it (./composants.mjs). A file of the
9
- // workspace itself, its Cargo.toml or its Cargo.lock at the root, reaches every build: it touches
10
- // every crate. Any other file out of every crate is out of the graph (`horsGraphe`).
11
- // - The dependents: the members that depend on a touched crate by its path, of any kind, the
12
- // development dependencies included, transitively.
13
- import { spawnSync } from 'node:child_process';
14
- import path from 'node:path';
15
- import { composantDans, crates } from './composants.mjs';
16
-
17
- // The files of the workspace itself, from its root: a change to one rebuilds every crate.
18
- export const DE_L_ESPACE = ['Cargo.toml', 'Cargo.lock'];
19
-
20
- const lignesDeGit = (racine, args) => {
21
- const r = spawnSync('git', ['-C', racine, ...args, '-z'], {
22
- encoding: 'utf8',
23
- maxBuffer: 256 * 1024 * 1024,
24
- });
25
- if (r.status !== 0) {
26
- throw new Error(`⛔ git ${args.join(' ')} : ${r.stderr.trim()}`);
27
- }
28
- return r.stdout.split('\0').filter(Boolean);
29
- };
30
-
31
- /**
32
- * The crates the files <fichiers> (from <racine>) touch, their dependents, and the files out of
33
- * the graph: `{ touches, dependants, horsGraphe }`, each list sorted.
34
- * @param {string} racine the root of the workspace
35
- * @param {Iterable<string>} fichiers the files changed
36
- */
37
- export function touchesDesFichiers(racine, fichiers) {
38
- const tous = crates(racine);
39
- const liste = tous.map(c => c.composant);
40
- const touches = new Set();
41
- const horsGraphe = [];
42
- for (const f of new Set(fichiers)) {
43
- if (DE_L_ESPACE.includes(path.normalize(f))) {
44
- for (const c of liste) {
45
- touches.add(c);
46
- }
47
- continue;
48
- }
49
- const c = composantDans(liste, racine, f);
50
- if (c) {
51
- touches.add(c);
52
- } else {
53
- horsGraphe.push(f);
54
- }
55
- }
56
- const parDossier = new Map(liste.map(c => [c.dossier, c]));
57
- const lecteursDe = new Map(liste.map(c => [c, new Set()]));
58
- for (const c of tous) {
59
- for (const d of c.deps) {
60
- const lu = parDossier.get(d.dossier);
61
- if (lu && lu !== c.composant) {
62
- lecteursDe.get(lu).add(c.composant);
63
- }
64
- }
65
- }
66
- const dependants = new Set();
67
- const suivre = c => {
68
- for (const l of lecteursDe.get(c)) {
69
- if (touches.has(l) || dependants.has(l)) {
70
- continue;
71
- }
72
- dependants.add(l);
73
- suivre(l);
74
- }
75
- };
76
- for (const c of touches) {
77
- suivre(c);
78
- }
79
- const parNom = (a, b) => a.nom.localeCompare(b.nom);
80
- return {
81
- touches: [...touches].sort(parNom),
82
- dependants: [...dependants].sort(parNom),
83
- horsGraphe: horsGraphe.sort(),
84
- };
85
- }
86
-
87
- /** The crates touched in <racine> since the commit <depuis>, their dependents, the files out. */
88
- export function touches(racine, { depuis }) {
89
- return touchesDesFichiers(racine, [
90
- ...lignesDeGit(racine, ['diff', '--name-only', '--no-renames', depuis]),
91
- ...lignesDeGit(racine, ['ls-files', '-o', '--exclude-standard']),
92
- ]);
93
- }
@@ -1,6 +0,0 @@
1
- // The script of the tests of a package of the module typescript, and its task of Turborepo: the one
2
- // name the module reads and runs (`joueDesTests` of ./index.mjs, ./tests.mjs, ./verifier.mjs,
3
- // ./verdict.mjs, ./turbo-des-paquets.mjs), neutral for every language (decision 4 of grillhouse-pkl).
4
-
5
- /** The name of the script and of the task of the tests. */
6
- export const SCRIPT_DES_TESTS = 'test:unit';