@roomi-fields/grillhouse 0.46.0 → 0.47.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 (64) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +14 -0
  3. package/cadre/templates/c/package.json +19 -0
  4. package/cadre/templates/projet/.github/workflows/ci.yml +34 -49
  5. package/cadre/templates/projet/CLAUDE.md +6 -0
  6. package/cadre/templates/projet/docs/agents/issue-tracker.md +1 -1
  7. package/charte.md +17 -9
  8. package/dist/temporal/circuit/client.d.ts +14 -5
  9. package/dist/temporal/circuit/client.js +39 -9
  10. package/dist/temporal/circuit/client.js.map +1 -1
  11. package/dist/temporal/file/activites.d.ts +2 -0
  12. package/dist/temporal/file/activites.js +7 -0
  13. package/dist/temporal/file/activites.js.map +1 -1
  14. package/dist/temporal/file/contrat.d.ts +26 -18
  15. package/dist/temporal/file/contrat.js +8 -5
  16. package/dist/temporal/file/contrat.js.map +1 -1
  17. package/dist/temporal/file/deroule.d.ts +1 -1
  18. package/dist/temporal/file/deroule.js +91 -42
  19. package/dist/temporal/file/deroule.js.map +1 -1
  20. package/dist/temporal/tickets/activites.js +4 -13
  21. package/dist/temporal/tickets/activites.js.map +1 -1
  22. package/docs/ARCHITECTURE.md +117 -82
  23. package/docs/INTERFACE.md +36 -19
  24. package/hooks/register.tsx +1 -1
  25. package/package.json +1 -1
  26. package/scripts/activites.mjs +5 -11
  27. package/scripts/arbres-juges.mjs +59 -0
  28. package/scripts/avancement.mjs +2 -38
  29. package/scripts/branche-de-nuit.mjs +14 -45
  30. package/scripts/ci-de-main.mjs +273 -0
  31. package/scripts/dernier-vert.mjs +12 -8
  32. package/scripts/etapes.mjs +1 -1
  33. package/scripts/faits-du-circuit.mjs +41 -25
  34. package/scripts/integration/file.mjs +126 -587
  35. package/scripts/integration/integrer.mjs +6 -5
  36. package/scripts/langages/c/binaires.json +4 -0
  37. package/scripts/langages/c/binaires.mjs +83 -0
  38. package/scripts/langages/c/clang-format.mjs +62 -0
  39. package/scripts/langages/c/clang-tidy.mjs +93 -0
  40. package/scripts/langages/c/clang.mjs +42 -0
  41. package/scripts/langages/c/commandes.mjs +530 -0
  42. package/scripts/langages/c/composants.mjs +209 -0
  43. package/scripts/langages/c/exemples.mjs +250 -0
  44. package/scripts/langages/c/index-interfaces.mjs +77 -0
  45. package/scripts/langages/c/index.mjs +120 -0
  46. package/scripts/langages/c/lot.mjs +41 -0
  47. package/scripts/langages/c/mise-a-jour.mjs +70 -0
  48. package/scripts/langages/c/squelette.mjs +61 -0
  49. package/scripts/langages/c/verdict.mjs +99 -0
  50. package/scripts/langages/typescript/turbo-des-paquets.mjs +16 -5
  51. package/scripts/langages-des-paquets.mjs +30 -2
  52. package/scripts/langages.mjs +1 -0
  53. package/scripts/mesure/avancement.mjs +1 -1
  54. package/scripts/migrations/0.47.0-ci-de-main.mjs +48 -0
  55. package/scripts/migrations.mjs +2 -2
  56. package/scripts/session-start.sh +0 -9
  57. package/scripts/sortie.mjs +1 -1
  58. package/scripts/superviseur.mjs +146 -88
  59. package/scripts/tableau.mjs +23 -8
  60. package/skills/grill/SKILL.md +6 -5
  61. package/skills/pitmaster/SKILL.md +9 -7
  62. package/skills/redacteur/references/documents-d-un-composant.md +1 -1
  63. package/scripts/ci-des-branches.mjs +0 -93
  64. package/scripts/migrations/0.33.0-ci-des-branches-de-ticket.mjs +0 -31
@@ -59,7 +59,6 @@
59
59
  // pushed (`fermerLEntree`); `effet-de-la-file`, one effect they gave back, under the key of its
60
60
  // activity. Their lines go to the error output.
61
61
  import { appendFileSync, readFileSync } from 'node:fs';
62
- import path from 'node:path';
63
62
  import { pathToFileURL } from 'node:url';
64
63
  import {
65
64
  aLaFin,
@@ -83,17 +82,19 @@ import {
83
82
  } from './circuit.mjs';
84
83
  import {
85
84
  avancerMain,
86
- conclureLaCI,
87
85
  direLIssue,
88
86
  fermerLEntree,
89
- inscrireLesFluxDeMain,
90
- lireLesPassagesDeLaCI,
91
- relireLesLecturesDues,
87
+ jugerLeCandidat,
92
88
  outilsDeLaFile,
93
89
  preparerLaBranche,
94
90
  situerLeLot,
95
91
  } from './integration/file.mjs';
96
- import { avancementDeLaCI } from './avancement.mjs';
92
+ import {
93
+ ghDans,
94
+ lireLaCiDeMain,
95
+ lotsDepuisLeVert,
96
+ ouvrirLeDefautDeMain,
97
+ } from './ci-de-main.mjs';
97
98
 
98
99
  import { ecrireLEffet } from './effets.mjs';
99
100
  import { Arret, commenter, geste } from './ticket-du-circuit.mjs';
@@ -467,29 +468,44 @@ Object.assign(ACTES, {
467
468
  const o = laFile(racine);
468
469
  return { ...fermerLEntree(o, { ticket, branche, commit }), effets: o.rendus };
469
470
  },
470
- // A reading of the CI of every expected workflow of the commit (`lireLesPassagesDeLaCI`), its
471
- // steps written to the progress directory of the ticket.
472
- async passages({ racine, ticket, sha, branche }) {
473
- const travail = path.join(racine, '.claude', 'worktrees', `${ticket}.travail`);
474
- const avancement = avancementDeLaCI(travail);
475
- return lireLesPassagesDeLaCI(laFile(racine, avancement), { sha, branche });
471
+ // The final pass on the candidate, played in the queue's copy (`jugerLeCandidat`).
472
+ async juger({ racine, ticket, branche, commit }) {
473
+ const o = laFile(racine);
474
+ const r = jugerLeCandidat(o, { ticket, branche, commit });
475
+ return { ...r, effets: o.rendus };
476
+ },
477
+ // The CI of main read once, in the main tree: the defect ticket of a red passage opened for the
478
+ // owner (`ouvrirLeDefautDeMain`, one per passage), the lots entered since the last green named by
479
+ // git. `{ etat }`: `verte`, `rouge` or `non-lue`.
480
+ async 'surveiller-la-ci-de-main'({ racine }) {
481
+ const o = laFile(racine);
482
+ const lecture = lireLaCiDeMain({ racine, gh: ghDans(racine) });
483
+ if (lecture.etat === 'rouge') {
484
+ const pointe = o.principale ?? 'main';
485
+ const lots = lotsDepuisLeVert(racine, { vert: lecture.vert, pointe });
486
+ const r = ouvrirLeDefautDeMain({ racine, bd: o.bd }, lecture, lots);
487
+ if (r.faute) {
488
+ o.dire(`⚠ ${r.faute}`);
489
+ }
490
+ }
491
+ return { etat: lecture.etat };
492
+ },
493
+ // The acts of the former path of the queue (the CI of a ticket's branch, the readings of the
494
+ // workflows of main), kept for the executions in flight whose history replays them, retired
495
+ // by grillhouse-3uv.131 once they are drained: they read nothing and judge nothing, the lot
496
+ // having been prepared as the queue's former path did, and the final pass of its circuit
497
+ // having judged it.
498
+ async passages() {
499
+ return { etat: 'verte', passage: 'ancien-chemin' };
476
500
  },
477
- // The reading of the workflows of main recorded as due after the push of a lot (nothing read).
478
- async 'inscrire-flux-de-main'({ racine, ...e }) {
479
- inscrireLesFluxDeMain(laFile(racine), e);
501
+ async 'inscrire-flux-de-main'() {
480
502
  return null;
481
503
  },
482
- // Every reading due of the workflows of main read once, without waiting; its comments given back.
483
- async 'relire-flux-de-main'({ racine, maintenant, ci }) {
484
- const o = laFile(racine);
485
- return {
486
- ...relireLesLecturesDues(o, { maintenant, ci }),
487
- effets: o.rendus,
488
- };
504
+ async 'relire-flux-de-main'() {
505
+ return { dues: 0, effets: [] };
489
506
  },
490
- async conclure({ racine, ...e }) {
491
- const o = laFile(racine);
492
- return { ...conclureLaCI(o, e), effets: o.rendus };
507
+ async conclure() {
508
+ return { avancer: true, effets: [] };
493
509
  },
494
510
  // One effect an act of the queue gave back, under the key of its activity, with the outcome of
495
511
  // the queue when it is not written (`ecrireLEffet`).