@roomi-fields/grillhouse 0.54.1 → 0.55.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 (236) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +69 -0
  3. package/cadre/templates/projet/.github/workflows/ci.yml +4 -2
  4. package/cadre/templates/projet/.github/workflows/machine-vierge.yml +5 -42
  5. package/cadre/templates/projet/CONTRIBUTING.md +0 -5
  6. package/cadre/templates/projet/README.md +0 -126
  7. package/cadre/templates/projet/_npmignore +1 -6
  8. package/cadre/templates/projet/package.json +5 -32
  9. package/cadre/templates/projet/tsconfig.json +4 -4
  10. package/cadre/templates/projet/vitest.config.cjs +3 -2
  11. package/charte/tests.md +14 -0
  12. package/dist/machine/part-par-sorte.d.ts +9 -9
  13. package/dist/machine/part-par-sorte.js +20 -24
  14. package/dist/machine/part-par-sorte.js.map +1 -1
  15. package/dist/machine/table-des-consommations.d.ts +65 -0
  16. package/dist/machine/table-des-consommations.js +94 -0
  17. package/dist/machine/table-des-consommations.js.map +1 -0
  18. package/dist/temporal/circuit/activites.d.ts +2 -0
  19. package/dist/temporal/circuit/activites.js +87 -3
  20. package/dist/temporal/circuit/activites.js.map +1 -1
  21. package/dist/temporal/circuit/client.js +9 -4
  22. package/dist/temporal/circuit/client.js.map +1 -1
  23. package/dist/temporal/circuit/contrat.d.ts +32 -4
  24. package/dist/temporal/circuit/deroule.js +54 -4
  25. package/dist/temporal/circuit/deroule.js.map +1 -1
  26. package/dist/temporal/circuit/versions.d.ts +12 -0
  27. package/dist/temporal/circuit/versions.js +22 -0
  28. package/dist/temporal/circuit/versions.js.map +1 -0
  29. package/dist/temporal/consommation/activites.d.ts +2 -0
  30. package/dist/temporal/consommation/activites.js +9 -0
  31. package/dist/temporal/consommation/activites.js.map +1 -0
  32. package/dist/temporal/consommation/actualisation.d.ts +2 -0
  33. package/dist/temporal/consommation/actualisation.js +71 -0
  34. package/dist/temporal/consommation/actualisation.js.map +1 -0
  35. package/dist/temporal/consommation/client.d.ts +12 -0
  36. package/dist/temporal/consommation/client.js +28 -0
  37. package/dist/temporal/consommation/client.js.map +1 -0
  38. package/dist/temporal/consommation/commande.d.ts +5 -0
  39. package/dist/temporal/consommation/commande.js +32 -0
  40. package/dist/temporal/consommation/commande.js.map +1 -0
  41. package/dist/temporal/consommation/contrat.d.ts +15 -0
  42. package/dist/temporal/consommation/contrat.js +13 -0
  43. package/dist/temporal/consommation/contrat.js.map +1 -0
  44. package/dist/temporal/consommation/deroule.d.ts +2 -0
  45. package/dist/temporal/consommation/deroule.js +14 -0
  46. package/dist/temporal/consommation/deroule.js.map +1 -0
  47. package/dist/temporal/deroules.d.ts +2 -1
  48. package/dist/temporal/deroules.js +3 -2
  49. package/dist/temporal/deroules.js.map +1 -1
  50. package/dist/temporal/file/contrat.d.ts +2 -0
  51. package/dist/temporal/file/deroule.js +14 -4
  52. package/dist/temporal/file/deroule.js.map +1 -1
  53. package/dist/temporal/installation.d.ts +6 -0
  54. package/dist/temporal/installation.js +15 -0
  55. package/dist/temporal/installation.js.map +1 -1
  56. package/dist/temporal/nuits/activites.d.ts +2 -1
  57. package/dist/temporal/nuits/activites.js +127 -3
  58. package/dist/temporal/nuits/activites.js.map +1 -1
  59. package/dist/temporal/nuits/client.d.ts +19 -5
  60. package/dist/temporal/nuits/client.js +33 -23
  61. package/dist/temporal/nuits/client.js.map +1 -1
  62. package/dist/temporal/nuits/commande.js +16 -11
  63. package/dist/temporal/nuits/commande.js.map +1 -1
  64. package/dist/temporal/nuits/contrat.d.ts +29 -0
  65. package/dist/temporal/nuits/contrat.js +10 -0
  66. package/dist/temporal/nuits/contrat.js.map +1 -1
  67. package/dist/temporal/nuits/deroule.d.ts +5 -0
  68. package/dist/temporal/nuits/deroule.js +18 -1
  69. package/dist/temporal/nuits/deroule.js.map +1 -1
  70. package/dist/temporal/nuits/pc2.d.ts +72 -0
  71. package/dist/temporal/nuits/pc2.js +206 -0
  72. package/dist/temporal/nuits/pc2.js.map +1 -0
  73. package/dist/temporal/places/activites.d.ts +23 -1
  74. package/dist/temporal/places/activites.js +38 -2
  75. package/dist/temporal/places/activites.js.map +1 -1
  76. package/dist/temporal/places/client.d.ts +16 -0
  77. package/dist/temporal/places/client.js +25 -1
  78. package/dist/temporal/places/client.js.map +1 -1
  79. package/dist/temporal/places/contrat.d.ts +79 -14
  80. package/dist/temporal/places/contrat.js +7 -0
  81. package/dist/temporal/places/contrat.js.map +1 -1
  82. package/dist/temporal/places/deroule.js +159 -23
  83. package/dist/temporal/places/deroule.js.map +1 -1
  84. package/dist/temporal/places/reservation.d.ts +54 -0
  85. package/dist/temporal/places/reservation.js +69 -0
  86. package/dist/temporal/places/reservation.js.map +1 -0
  87. package/dist/temporal/planification.d.ts +6 -0
  88. package/dist/temporal/planification.js +26 -0
  89. package/dist/temporal/planification.js.map +1 -0
  90. package/dist/temporal/tickets/activites.d.ts +0 -2
  91. package/dist/temporal/tickets/activites.js +2 -52
  92. package/dist/temporal/tickets/activites.js.map +1 -1
  93. package/dist/temporal/tickets/contrat.d.ts +7 -26
  94. package/dist/temporal/tickets/deroule.js +35 -23
  95. package/dist/temporal/tickets/deroule.js.map +1 -1
  96. package/dist/temporal/travailleur.js +2 -0
  97. package/dist/temporal/travailleur.js.map +1 -1
  98. package/docs/ARCHITECTURE.md +2 -2
  99. package/docs/CADRE.md +1 -1
  100. package/docs/INTERFACE.md +16 -11
  101. package/docs/architecture/circuit.md +62 -58
  102. package/docs/architecture/entree.md +87 -63
  103. package/docs/architecture/greffon.md +24 -21
  104. package/docs/architecture/installation.md +35 -30
  105. package/docs/architecture/machine.md +48 -40
  106. package/docs/architecture/tests.md +37 -33
  107. package/docs/lexique.md +4 -3
  108. package/package.json +1 -1
  109. package/scripts/activites.mjs +351 -180
  110. package/scripts/aiguillage.mjs +1 -0
  111. package/scripts/attente-de-la-machine.mjs +3 -22
  112. package/scripts/avancement.mjs +21 -30
  113. package/scripts/bilan.mjs +22 -2
  114. package/scripts/branche-de-nuit.mjs +1 -1
  115. package/scripts/circuit.mjs +75 -39
  116. package/scripts/codes-de-sortie.mjs +0 -6
  117. package/scripts/consommation-des-passes.mjs +67 -31
  118. package/scripts/consommation.mjs +152 -24
  119. package/scripts/copies-finies.mjs +15 -35
  120. package/scripts/dernier-vert.mjs +4 -5
  121. package/scripts/dette.mjs +5 -3
  122. package/scripts/droits.mjs +2 -2
  123. package/scripts/echantillonneur-de-la-passe.mjs +7 -31
  124. package/scripts/engendres.mjs +5 -61
  125. package/scripts/enveloppe/enveloppe.mjs +30 -34
  126. package/scripts/enveloppe/travail-de-la-copie.mjs +5 -0
  127. package/scripts/etapes.mjs +21 -7
  128. package/scripts/etat-du-depot.mjs +61 -0
  129. package/scripts/faits-du-circuit.mjs +7 -4
  130. package/scripts/fermeture-de-la-machine.d.mts +6 -4
  131. package/scripts/fermeture-de-la-machine.mjs +12 -16
  132. package/scripts/fichier-du-poste.d.mts +9 -0
  133. package/scripts/file-des-tickets.d.mts +0 -18
  134. package/scripts/file-des-tickets.mjs +0 -42
  135. package/scripts/fusion-du-changelog.mjs +1 -1
  136. package/scripts/grillhouse-maj.mjs +1 -1
  137. package/scripts/index-des-rouges.d.mts +40 -0
  138. package/scripts/index-des-rouges.mjs +104 -0
  139. package/scripts/integration/file.mjs +13 -63
  140. package/scripts/integration/integrer.mjs +157 -424
  141. package/scripts/integration/jugement.mjs +109 -0
  142. package/scripts/integration/rejeu.mjs +94 -71
  143. package/scripts/jointure.d.ts +34 -27
  144. package/scripts/journal-des-etats.d.mts +1 -1
  145. package/scripts/langages/c/commandes.mjs +27 -12
  146. package/scripts/langages/cargo/commandes.mjs +148 -94
  147. package/scripts/langages/cargo/index.mjs +2 -1
  148. package/scripts/langages/cargo/lectures-des-tests.mjs +132 -0
  149. package/scripts/langages/cargo/migrations/lectures-des-tests.mjs +31 -0
  150. package/scripts/langages/python/commandes.mjs +31 -15
  151. package/scripts/langages/python/index.mjs +2 -1
  152. package/scripts/langages/python/lectures-des-tests.mjs +148 -0
  153. package/scripts/langages/python/migrations/lectures-des-tests.mjs +31 -0
  154. package/scripts/langages/typescript/consommateurs-arbitres.mjs +2 -2
  155. package/scripts/langages/typescript/index.mjs +4 -0
  156. package/scripts/langages/typescript/lectures-des-tests.mjs +95 -0
  157. package/scripts/langages/typescript/migrations/lectures-des-tests.mjs +31 -0
  158. package/scripts/langages/typescript/tests-de-nuit.mjs +9 -15
  159. package/scripts/langages/typescript/tests.mjs +11 -37
  160. package/scripts/langages/typescript/titres-de-tests.mjs +5 -4
  161. package/scripts/langages/typescript/verifier.mjs +74 -44
  162. package/scripts/langages/typescript/vitest-config/base.mjs +3 -3
  163. package/scripts/langages/typescript/vitest-config/machine.setup.mjs +6 -25
  164. package/scripts/lectures-communes.mjs +234 -0
  165. package/scripts/machine.mjs +11 -18
  166. package/scripts/mesure/base-de-passe.mjs +1 -2
  167. package/scripts/mesure-de-la-machine.d.mts +40 -3
  168. package/scripts/mesure-de-la-machine.mjs +201 -11
  169. package/scripts/migrations/0.33.0-ci-du-cadre.mjs +3 -3
  170. package/scripts/migrations/nuit-yml-retire.mjs +25 -0
  171. package/scripts/migrations/part-retiree.mjs +31 -0
  172. package/scripts/migrations.mjs +4 -0
  173. package/scripts/montee.mjs +9 -0
  174. package/scripts/nuit-de-pc2.mjs +628 -0
  175. package/scripts/nuit.sh +8 -131
  176. package/scripts/paquets.mjs +1 -1
  177. package/scripts/passe-de-la-machine.mjs +340 -103
  178. package/scripts/place-du-circuit.d.mts +15 -0
  179. package/scripts/place-du-circuit.mjs +32 -0
  180. package/scripts/places-de-la-machine.mjs +148 -626
  181. package/scripts/places-du-serveur.mjs +26 -13
  182. package/scripts/plafond-de-la-machine.d.mts +8 -13
  183. package/scripts/plafond-de-la-machine.mjs +26 -56
  184. package/scripts/registre-des-entrees.mjs +57 -0
  185. package/scripts/regles-des-places.d.mts +82 -50
  186. package/scripts/regles-des-places.mjs +192 -156
  187. package/scripts/retirer-copie.sh +2 -2
  188. package/scripts/seances.mjs +181 -63
  189. package/scripts/secours.mjs +95 -0
  190. package/scripts/services-du-noyau.mjs +11 -19
  191. package/scripts/sous-commandes.mjs +1 -0
  192. package/scripts/sous-modules.sh +1 -1
  193. package/scripts/superviseur.mjs +16 -7
  194. package/scripts/table-des-consommations.d.mts +9 -0
  195. package/scripts/table-des-consommations.mjs +35 -0
  196. package/scripts/tableau.mjs +33 -19
  197. package/scripts/taches-du-graphe.mjs +124 -2
  198. package/scripts/transitions.d.mts +27 -5
  199. package/scripts/transitions.mjs +122 -104
  200. package/scripts/verdict-de-la-nuit.d.mts +13 -0
  201. package/scripts/verdict-de-la-nuit.mjs +34 -7
  202. package/scripts/verrou-de-fichier.mjs +1 -2
  203. package/scripts/workflows-du-cadre.mjs +2 -2
  204. package/skills/developpeur/SKILL.md +8 -2
  205. package/skills/direct/SKILL.md +5 -0
  206. package/skills/explorateur/SKILL.md +10 -1
  207. package/skills/grill/SKILL.md +2 -4
  208. package/skills/pitmaster/SKILL.md +7 -5
  209. package/skills/pitmaster/references/consigne-agent.md +1 -1
  210. package/skills/relecteur/SKILL.md +4 -1
  211. package/skills/testwriter/SKILL.md +15 -2
  212. package/cadre/templates/projet/.env.example +0 -57
  213. package/cadre/templates/projet/.github/workflows/nuit.yml +0 -139
  214. package/cadre/templates/projet/deployment/README.md +0 -98
  215. package/cadre/templates/projet/deployment/docs/01-INSTALL.md +0 -145
  216. package/cadre/templates/projet/deployment/docs/02-CONFIGURATION.md +0 -117
  217. package/cadre/templates/projet/deployment/docs/03-API.md +0 -264
  218. package/cadre/templates/projet/deployment/docs/04-TROUBLESHOOTING.md +0 -262
  219. package/cadre/templates/projet/deployment/scripts/install.ps1 +0 -100
  220. package/cadre/templates/projet/deployment/scripts/start.ps1 +0 -61
  221. package/cadre/templates/projet/deployment/scripts/stop.ps1 +0 -37
  222. package/cadre/templates/projet/deployment/scripts/test.ps1 +0 -118
  223. package/cadre/templates/projet/ecosystem.config.cjs +0 -73
  224. package/cadre/templates/projet/src/config.ts +0 -68
  225. package/cadre/templates/projet/src/errors.ts +0 -102
  226. package/cadre/templates/projet/src/index.ts +0 -46
  227. package/cadre/templates/projet/src/services/.gitkeep +0 -8
  228. package/cadre/templates/projet/src/types/index.ts +0 -24
  229. package/cadre/templates/projet/src/utils/logger.ts +0 -106
  230. package/cadre/templates/projet/tests/unit/config.spec.ts +0 -68
  231. package/cadre/templates/projet/tests/unit/errors.spec.ts +0 -132
  232. package/cadre/templates/projet/tests/unit/types.spec.ts +0 -73
  233. package/cadre/templates/projet/tsconfig.build.json +0 -14
  234. package/scripts/flux-de-la-nuit.mjs +0 -39
  235. package/scripts/garde-de-la-memoire.mjs +0 -231
  236. package/scripts/repli-de-la-nuit.mjs +0 -184
@@ -4,17 +4,22 @@
4
4
  // `{ pid, depart, seanceId }` at its launch and at each step of its watch, stops on a motionless
5
5
  // transcript (`IMMOBILE_MS` of scripts/circuit.mjs, `ctx.immobileMs`), and, cancelled, kills its
6
6
  // group; a launch that finds alive the group a launch before left (its last sign of life) waits
7
- // for it, under the same watch, before it takes its place (`lancer`): the second attempt of
7
+ // for it, under the same watch, before it launches (`lancer`): the second attempt of
8
8
  // `jusquALaFiche`, and the fresh session that follows a failed resumption in `seance`; the id of
9
9
  // each session comes from its caller, which gives a new one to each session it launches. `lancer` launches one session, `jusquALaFiche` until its
10
10
  // sheet, `seance` that of the testwriter, the developpeur or the agent direct on the whole ticket, with the instruction of
11
11
  // the templates (`consigne`) and the findings of the reviewer open for its role
12
12
  // (`constatsDeLaSeance`). Each session of a role ends on the judgment of its lot (`jugerLeLot`,
13
- // machine.md §5.5). The circuit (scripts/circuit.mjs) calls them.
13
+ // machine.md §5.5). A session takes no place of the machine and no part: the workflow of its
14
+ // circuit reserves its step of the arbiter (machine.md §5.1), and it runs in a group under the
15
+ // slice of the frame (`lancementHorsEnveloppe`; `lancementDeLaSeance` of
16
+ // scripts/enveloppe/enveloppe.mjs for a session in the envelope). The circuit
17
+ // (scripts/circuit.mjs) calls them.
14
18
  import { spawn, spawnSync } from 'node:child_process';
15
19
  import { createHash, randomUUID } from 'node:crypto';
16
20
  import {
17
21
  appendFileSync,
22
+ chmodSync,
18
23
  closeSync,
19
24
  existsSync,
20
25
  mkdirSync,
@@ -47,15 +52,20 @@ import {
47
52
  VARIABLE_TESTS_ETENDUS,
48
53
  } from './enveloppe/paquets-du-plan.mjs';
49
54
  import { langageDe, langageDeLaCopie } from './langages.mjs';
50
- import { DEMANDE_UN_PLAN, leRole, nomDuRole } from './etapes.mjs';
55
+ import { DEMANDE_UN_PLAN, leRole, nomDuRole, phaseDeLaSeance } from './etapes.mjs';
51
56
  import { departDe, VARIABLE_SEANCE } from './mesure/base-de-passe.mjs';
52
57
  import { groupeVivant, signalerGroupe } from './mesure-de-la-machine.mjs';
53
58
  import {
54
59
  commandeDuGroupe,
60
+ groupeIndisponible,
55
61
  lancementDeLaPasse,
56
62
  mesureDeLaSeance,
57
63
  } from './passe-de-la-machine.mjs';
58
- import { prendreUnePlace } from './places-de-la-machine.mjs';
64
+ import {
65
+ reservationDeLEtape,
66
+ VARIABLE_PHASE_DE_SEANCE,
67
+ VARIABLE_RESERVATION_D_ETAPE,
68
+ } from './places-de-la-machine.mjs';
59
69
  import { transcriptionsDeLaCopie } from './registre.mjs';
60
70
  import { cleDuConstat, lireFiche, reponsesAuxConstats, schemaDeFiche } from './resultats.mjs';
61
71
  import {
@@ -73,9 +83,9 @@ import {
73
83
  nomsDe,
74
84
  } from './ticket-du-circuit.mjs';
75
85
  import { emettre } from './effets.mjs';
86
+ import { resteAuLot } from './transitions.mjs';
76
87
  import { fichierNommeAuTicket } from './fichiers-nommes.mjs';
77
88
  import { limiteDUsage } from './limite-d-usage.mjs';
78
- import { AttenteDeLaMachine } from './attente-de-la-machine.mjs';
79
89
 
80
90
  // The number of the next files of a session in the working directory <dossier> of the ticket: one
81
91
  // past the highest its files carry (`consigne-<n>.md`, `erreurs-<n>.txt`), read
@@ -215,6 +225,23 @@ function resultatRange(rang, id, { horsEnveloppe = false } = {}) {
215
225
  };
216
226
  }
217
227
 
228
+ /**
229
+ * What a session out of the envelope launches: its command <cmd> with <args>, in a control group
230
+ * of its own (`systemd-run --scope`, named <unite> when it is, which the measure of the session
231
+ * reads) under the slice of the frame, its CPU weight drawn from the cores of the reservation
232
+ * <part>, its memory and its cores bound to the ceiling of its phase; the command as it is, with `sansBorne` saying why, when the system
233
+ * gives no manager of groups (<sonde>, the probe of the system by default).
234
+ * @param {{ cmd: string, args: string[], unite?: string | null,
235
+ * part: { coeurs: number, memoire: number }, sonde?: () => boolean }} o
236
+ * @returns {{ cmd: string, args: string[], sansBorne: string | null }}
237
+ */
238
+ export function lancementHorsEnveloppe({ cmd, args, unite = null, part, sonde }) {
239
+ const sansBorne = groupeIndisponible({ env: {}, ...(sonde ? { sonde } : {}) });
240
+ return sansBorne === null
241
+ ? { ...commandeDuGroupe({ part, cmd, args, unite, plafond: true, tranche: true }), sansBorne }
242
+ : { cmd, args, sansBorne };
243
+ }
244
+
218
245
  // One launch of a session: `{ code, seance, bloque, erreur, sortie, id, demarree }`, `seance` the
219
246
  // session's exit code (from lancer.sh's end file for a session in the envelope), null when the
220
247
  // launch stopped before it, `sortie` claude's JSON result, its sheet in `structured_output`, `id`
@@ -242,8 +269,9 @@ function resultatRange(rang, id, { horsEnveloppe = false } = {}) {
242
269
  // schema <fiche>, by default its role's. It is an activity (`jouerLeGroupe`): <signeDeVie>
243
270
  // receives the sign of life of its group, which names the launch, <annulation> (an AbortSignal)
244
271
  // kills it, and a group a previous attempt left running (<precedent>, its last sign of life) is
245
- // waited for before the place is taken (<prendrePlace>, `prendreUnePlace` of
246
- // scripts/places-de-la-machine.mjs by default). Only an attempt Temporal plays again
272
+ // waited for before it launches. The session takes no place: the reservation of its step is the
273
+ // workflow's (`ctx.reservation`, src/temporal/places/reservation.ts), and it runs under the slice
274
+ // of the frame (`lancementHorsEnveloppe`, `lancementDeLaSeance`). Only an attempt Temporal plays again
247
275
  // (`ctx.essaiDeLActe` 2 or more), at the launch <precedent> names, takes, once that group has
248
276
  // ended, the result the session of the dead attempt ranged (its `seanceId`), with no second
249
277
  // session, and writes the launch line that died with that attempt; a session dead without a
@@ -267,7 +295,6 @@ export async function lancer(
267
295
  precedent = null,
268
296
  evenement,
269
297
  relance = 1,
270
- prendrePlace = prendreUnePlace,
271
298
  } = {}
272
299
  ) {
273
300
  // The traces of the session: its transcripts and the ticket's log.
@@ -310,7 +337,7 @@ export async function lancer(
310
337
  // The lot a dead attempt left unjudged is judged before anything of this launch moves the copy.
311
338
  const juge = estJuge(role, horsEnveloppe);
312
339
  if (juge) {
313
- jugerLeLot(ctx, role);
340
+ jugerLeLot(ctx, role, { avantLeLancement: true });
314
341
  }
315
342
  const rang = rangDeLaSeance(ctx, id);
316
343
  mkdirSync(rang.dossier, { recursive: true });
@@ -388,26 +415,6 @@ export async function lancer(
388
415
  cwd: ctx.racine,
389
416
  };
390
417
  }
391
- // Each session of an agent takes a place of the machine (scripts/places-de-la-machine.mjs) at
392
- // its start and gives it back at its end: the circuit holds none between two sessions, nor on a
393
- // question. The wait keeps the rank of the circuit's arrival, says its reason in the log, and is
394
- // bounded as the lock of the machine's: « à repasser » (75).
395
- let place;
396
- try {
397
- place = prendrePlace({
398
- ticket: ctx.ticket,
399
- rang: ctx.rang ?? undefined,
400
- dire: l => appendFileSync(ctx.journal, `${l}\n`),
401
- });
402
- } catch (e) {
403
- for (const fd of new Set(fds.filter(f => typeof f === 'number'))) {
404
- closeSync(fd);
405
- }
406
- if (!(e instanceof AttenteDeLaMachine)) {
407
- throw e;
408
- }
409
- throw new Arret('a-repasser', e.message);
410
- }
411
418
  // The key of the API (`cleDeLAPI`): taken for the first attempt, never for the second.
412
419
  const cle = cleDeLAPI();
413
420
  const fermer = () => {
@@ -415,9 +422,10 @@ export async function lancer(
415
422
  closeSync(fd);
416
423
  }
417
424
  };
418
- // The session writes at the ticket under the author of its role (the mark of its place,
419
- // `place.env`); the passes it plays out of the envelope take their own part of the machine,
420
- // those it plays in its envelope none (its place covers them).
425
+ // The session writes at the ticket under the author of its role; the passes it plays out of the
426
+ // envelope take their own part of the machine, those it plays in its envelope none (its
427
+ // reservation covers them). Its reservation, the cores and the memory its step holds, goes to
428
+ // its envelope in its environment.
421
429
  // A session out of the envelope (the relecteur, which plays tests) plays them on its share of
422
430
  // the cores, under nice and ionice; the launcher of an enveloped one does it in the envelope.
423
431
  const jouer = async base => {
@@ -427,22 +435,46 @@ export async function lancer(
427
435
  ? { [VARIABLE_TESTS_ETENDUS]: ecrireLaListe(ctx.testsEtendus) }
428
436
  : {};
429
437
  const marque = horsEnveloppe ? { [VARIABLE_SEANCE]: '1' } : {};
430
- const env = { ...base, ...place.env, ...testsEtendus, ...marque, [ACTEUR]: role };
438
+ // The phase of the session in the register of the consumptions, which its measure reads, in
439
+ // this process or in its envelope.
440
+ const phase = phaseDeLaSeance(role, objet);
441
+ const env = {
442
+ ...base,
443
+ ...(ctx.reservation
444
+ ? {
445
+ [VARIABLE_RESERVATION_D_ETAPE]: JSON.stringify({
446
+ id: ctx.reservation.id,
447
+ coeurs: ctx.reservation.coeurs,
448
+ memoire: ctx.reservation.memoire,
449
+ limite: ctx.reservation.limite,
450
+ limiteCoeurs: ctx.reservation.limiteCoeurs,
451
+ }),
452
+ }
453
+ : {}),
454
+ ...testsEtendus,
455
+ ...marque,
456
+ [VARIABLE_PHASE_DE_SEANCE]: phase ?? '',
457
+ [ACTEUR]: role,
458
+ };
431
459
  const lancement = horsEnveloppe
432
460
  ? lancementDeLaPasse({ lourde: false, cmd: commande.cmd, args: commande.args, env })
433
461
  : { cmd: commande.cmd, args: commande.args, env };
434
462
  // A session out of the envelope runs in a group of its own, which measures its peak into the
435
463
  // register (an enveloped one is measured by its envelope): the default weight, no bound.
436
464
  const mesure = horsEnveloppe
437
- ? mesureDeLaSeance({ racine: ctx.racine, role, ticket: ctx.ticket, env: lancement.env })
465
+ ? mesureDeLaSeance({
466
+ racine: ctx.racine,
467
+ role,
468
+ ticket: ctx.ticket,
469
+ env: lancement.env,
470
+ })
438
471
  : null;
439
472
  const lancee = mesure
440
- ? commandeDuGroupe({
441
- part: { coeurs: 1, memoire: 0 },
473
+ ? lancementHorsEnveloppe({
442
474
  cmd: lancement.cmd,
443
475
  args: lancement.args,
444
476
  unite: mesure.unite,
445
- memoire: false,
477
+ part: reservationDeLEtape(lancement.env) ?? { coeurs: 1, memoire: 0 },
446
478
  })
447
479
  : lancement;
448
480
  const r = await jouerLeGroupe({
@@ -457,13 +489,8 @@ export async function lancer(
457
489
  traces,
458
490
  signeDeVie,
459
491
  annulation,
460
- lance: enfant => {
492
+ lance: () => {
461
493
  fermer();
462
- // The place is the session's own from now on: its process and its start, so that it is
463
- // freed with the session, even if the circuit dies before.
464
- if (enfant.pid) {
465
- place.rattacher({ pid: enfant.pid, depart: departDe(enfant.pid) });
466
- }
467
494
  },
468
495
  });
469
496
  mesure?.garder({
@@ -475,7 +502,6 @@ export async function lancer(
475
502
  fermer();
476
503
  }
477
504
  if (r.annulee) {
478
- place.rendre();
479
505
  throw new SeanceAnnulee(role);
480
506
  }
481
507
  return r;
@@ -503,7 +529,6 @@ export async function lancer(
503
529
  r = await jouer(sansCle);
504
530
  sortie = lireLaSortie(rang);
505
531
  }
506
- place.rendre();
507
532
  let seance;
508
533
  if (horsEnveloppe) {
509
534
  seance = existsSync(rang.fin)
@@ -845,7 +870,8 @@ async function uneSeance(
845
870
  // The sheet of an author of the circuit carries what its lot holds out of the rule of its role.
846
871
  const repondu = fiche => {
847
872
  const constats = fiche ? repondre(gardes, fiche) : gardes;
848
- const horsRole = fiche && AUTEURS_JUGES.has(role) ? jugerLeLot(ctx, role) : null;
873
+ const horsRole =
874
+ fiche && AUTEURS_JUGES.has(role) ? jugerLeLot(ctx, role, { relire: true }) : null;
849
875
  return { fiche: horsRole ? { ...fiche, horsRole } : fiche, constats };
850
876
  };
851
877
  if (reprise) {
@@ -860,10 +886,10 @@ async function uneSeance(
860
886
  (rapport?.startsWith(TITRE_DU_LOT)
861
887
  ? 'le jugement du lot, joué après ta séance, trouve ton lot hors de la règle de ton rôle'
862
888
  : role === 'testwriter'
863
- ? 'la preuve du rouge, jouée après ta séance, refuse ton lot'
864
- : role === 'direct'
865
- ? 'la passe finale, jouée après ta séance, est rouge'
866
- : 'les contrôles, joués après ta séance, sont rouges'),
889
+ ? 'la preuve du rouge, jouée après ta séance, refuse ton lot'
890
+ : role === 'direct'
891
+ ? 'la passe finale, jouée après ta séance, est rouge'
892
+ : 'les contrôles, joués après ta séance, sont rouges'),
867
893
  rapport: rapport ?? 'aucun',
868
894
  tache,
869
895
  ouverts,
@@ -1019,7 +1045,7 @@ export async function seance(ctx, role, options) {
1019
1045
  `Sa séance devait lever un conflit de la copie (${autres.join(', ')}) avant celle du ${nomDuRole(role)}.`
1020
1046
  );
1021
1047
  }
1022
- if (fiche.horsRole) {
1048
+ if (fiche.horsRole && resteAuLot(fiche.horsRole)) {
1023
1049
  throw new Arret('controles', fiche.horsRole.rapport);
1024
1050
  }
1025
1051
  return uneSeance(ctx, role, { ...options, constats });
@@ -1552,6 +1578,8 @@ function ouvrirLeLot(ctx, role, { id, horsEnveloppe, depot }) {
1552
1578
  principal: teteDe(ctx.racine),
1553
1579
  },
1554
1580
  fautifs: estLArbrePrincipal(ctx, depot) ? {} : lot.fautifs,
1581
+ verdict: null,
1582
+ enAttente: lot.enAttente ?? null,
1555
1583
  });
1556
1584
  }
1557
1585
 
@@ -1568,19 +1596,35 @@ function avantLaSeance(ctx, enCours) {
1568
1596
 
1569
1597
  /**
1570
1598
  * Judges the lot of <role> (the section's header): the session under way, once, then each faulty
1571
- * file kept, on the tree the folder holds now. Returns `{ fichiers, rapport }`, or null for a lot
1572
- * in the rule of its role. Throws an Arret when no tree says which languages judge the lot.
1573
- * @returns {{ fichiers: string[], rapport: string } | null}
1599
+ * file kept, on the tree the folder holds now. Gives each faulty file of a copy back to its
1600
+ * state before the session (`rendreLesFichiers`), none on the main tree. Returns
1601
+ * `{ fichiers, rendus, rapport }`, or null for a lot in the rule of its role. Throws an Arret when
1602
+ * no tree says which languages judge the lot.
1603
+ * @returns {{ fichiers: string[], rendus: string[], rapport: string } | null}
1574
1604
  */
1575
- function jugerLeLot(ctx, role) {
1605
+ function jugerLeLot(ctx, role, { relire = false, avantLeLancement = false } = {}) {
1576
1606
  const lot = lotGarde(ctx, role);
1577
1607
  const { depot, enCours } = lot;
1578
1608
  if (!depot || !existsSync(depot)) {
1579
1609
  return null;
1580
1610
  }
1611
+ // The same session judged again (its result read twice): the circuit gave its files back once.
1612
+ if (relire && !enCours && lot.verdict) {
1613
+ return lot.verdict;
1614
+ }
1581
1615
  const principal = estLArbrePrincipal(ctx, depot);
1582
1616
  const avant = enCours ? avantLaSeance(ctx, enCours) : null;
1583
1617
  const apres = avant || !principal ? photographier(depot) : null;
1618
+ const soigne = !principal && AUTEURS_JUGES.has(role);
1619
+ if (apres && soigne) {
1620
+ // A faulty file kept is judged on what the sessions of its role left: a file another role wrote
1621
+ // since is no longer the fault of this one, and is not given back.
1622
+ for (const [chemin, f] of Object.entries(lot.fautifs)) {
1623
+ if (f.juge === undefined || etatDuFichier(depot, apres.arbre, chemin) !== f.juge) {
1624
+ delete lot.fautifs[chemin];
1625
+ }
1626
+ }
1627
+ }
1584
1628
  if (avant && apres) {
1585
1629
  const entres = new Set(
1586
1630
  principal && avant.tete !== apres.tete
@@ -1591,7 +1635,14 @@ function jugerLeLot(ctx, role) {
1591
1635
  if (entres.has(c.chemin) && c.apres === etatDuFichier(depot, apres.tete, c.chemin)) {
1592
1636
  continue;
1593
1637
  }
1594
- lot.fautifs[c.chemin] ??= { avant: c.avant, principal: enCours.principal };
1638
+ const entree = { avant: c.avant, juge: c.apres, principal: enCours.principal };
1639
+ // On the main tree the state before is the first session's; in a copy, each session's own,
1640
+ // the earlier faulty files having been given back or dropped above.
1641
+ if (!soigne) {
1642
+ lot.fautifs[c.chemin] ??= entree;
1643
+ } else {
1644
+ lot.fautifs[c.chemin] = entree;
1645
+ }
1595
1646
  }
1596
1647
  }
1597
1648
  if (apres) {
@@ -1608,23 +1659,90 @@ function jugerLeLot(ctx, role) {
1608
1659
  }
1609
1660
  }
1610
1661
  }
1611
- garderLeLot(ctx, role, { ...lot, enCours: null });
1612
1662
  const fautifs = Object.entries(lot.fautifs).sort(([a], [b]) => a.localeCompare(b));
1613
- if (!fautifs.length) {
1663
+ const rendus = soigne ? rendreLesFichiers(ctx, role, depot, fautifs) : [];
1664
+ for (const chemin of rendus) {
1665
+ delete lot.fautifs[chemin];
1666
+ }
1667
+ // What a judgment before the launch gave back waits for the session it precedes, whose sheet
1668
+ // carries it.
1669
+ const enSeance = Boolean(enCours) && !avantLeLancement;
1670
+ const attente = enSeance
1671
+ ? (lot.enAttente ?? { fautifs: [], rendus: [] })
1672
+ : { fautifs: [], rendus: [] };
1673
+ const tous = [
1674
+ ...attente.fautifs.filter(([c]) => !fautifs.some(([d]) => d === c)),
1675
+ ...fautifs,
1676
+ ].sort(([a], [b]) => a.localeCompare(b));
1677
+ const tousRendus = [...new Set([...attente.rendus, ...rendus])];
1678
+ if (!tous.length) {
1679
+ garderLeLot(ctx, role, { ...lot, enCours: null, verdict: null, enAttente: null });
1614
1680
  return null;
1615
1681
  }
1616
1682
  const regle = REGLES_DU_LOT[role] ?? 'ce rôle n’écrit rien, son lot reste vide';
1617
- const lignes = fautifs.map(
1683
+ const lignes = tous.map(
1618
1684
  ([chemin, f]) =>
1619
- `- ${chemin}${f.parties ? ` (hors de la part de ses tests : ${f.parties.join(', ')})` : ''}`
1685
+ `- ${chemin}${f.parties ? ` (hors de la part de ses tests : ${f.parties.join(', ')})` : ''}${tousRendus.includes(chemin) ? ' (rendu par le circuit)' : ''}`
1620
1686
  );
1621
1687
  const geste = principal
1622
1688
  ? 'D’autres écrivent l’arbre principal : défais seulement ce que tu as toi-même écrit.'
1623
- : 'Remets chacun à son état d’avant la séance qui l’a changé.';
1624
- return {
1625
- fichiers: fautifs.map(([chemin]) => chemin),
1689
+ : tousRendus.length === tous.length
1690
+ ? 'Le circuit a rendu chacun à son état d’avant la séance.'
1691
+ : 'Le circuit a rendu ceux qu’il marque, remets chacun des autres à son état d’avant la séance qui l’a changé.';
1692
+ const verdict = {
1693
+ fichiers: tous.map(([chemin]) => chemin),
1694
+ rendus: tousRendus,
1626
1695
  rapport: `${TITRE_DU_LOT} : ${regle}.\n${lignes.join('\n')}\n${geste}`,
1627
1696
  };
1697
+ garderLeLot(ctx, role, {
1698
+ ...lot,
1699
+ enCours: null,
1700
+ verdict: enSeance && tousRendus.length ? verdict : null,
1701
+ enAttente: !enSeance && rendus.length ? { fautifs, rendus } : null,
1702
+ });
1703
+ return verdict;
1704
+ }
1705
+
1706
+ // Gives each faulty file of <fautifs> ([chemin, { avant, juge }]) of the copy <depot> back to its
1707
+ // state before the session, from the git object the lot kept; the gesture goes to the ticket, and
1708
+ // what the session had written to the journal. Returns the paths given back; a file that is no
1709
+ // regular file (a link) stays for its author.
1710
+ function rendreLesFichiers(ctx, role, depot, fautifs) {
1711
+ const rendus = [];
1712
+ for (const [chemin, f] of fautifs) {
1713
+ const mode = f.avant === null ? null : f.avant.split(' ')[0];
1714
+ if (mode !== null && mode !== '100644' && mode !== '100755') {
1715
+ continue;
1716
+ }
1717
+ const cible = path.join(depot, chemin);
1718
+ const ecrit = f.juge ? texteDeLEtat(depot, f.juge) : null;
1719
+ appendFileSync(
1720
+ ctx.journal,
1721
+ `\n[le circuit rend ${chemin} à son état d'avant la séance du ${role}; elle y avait écrit :]\n${ecrit === null ? '(fichier supprimé)' : ecrit.slice(0, 20000)}\n`
1722
+ );
1723
+ if (f.avant === null) {
1724
+ rmSync(cible, { force: true });
1725
+ } else {
1726
+ const blob = spawnSync('git', ['-C', depot, 'cat-file', 'blob', f.avant.split(' ')[1]], {
1727
+ maxBuffer: 256 * 1024 * 1024,
1728
+ });
1729
+ if (blob.status !== 0) {
1730
+ continue;
1731
+ }
1732
+ mkdirSync(path.dirname(cible), { recursive: true });
1733
+ writeFileSync(cible, blob.stdout, { mode: mode === '100755' ? 0o755 : 0o644 });
1734
+ chmodSync(cible, mode === '100755' ? 0o755 : 0o644);
1735
+ }
1736
+ rendus.push(chemin);
1737
+ }
1738
+ if (rendus.length) {
1739
+ commenter(
1740
+ ctx,
1741
+ role,
1742
+ `le lot de la séance sort de la règle de son rôle ; le circuit rend à leur état d'avant la séance : ${rendus.join(', ')}.`
1743
+ );
1744
+ }
1745
+ return rendus;
1628
1746
  }
1629
1747
 
1630
1748
  // Whether the file <chemin> of a copy, in the state <etat>, is back to main's after main changed it
@@ -0,0 +1,95 @@
1
+ // The rescue way of the verification (`npm run verifier -- --secours <ticket>`; entree.md §5.1,
2
+ // circuit.md §5.8): out of the circuit, the one place beside the rise (scripts/montee.mjs) where a
3
+ // tree is registered as judged (scripts/arbres-juges.mjs). A whole verification green of a ticket
4
+ // that `npx grillhouse direct --panne` opened registers the tree of the working directory as
5
+ // measured at its entry (the one `git commit -a` gives), and writes it at the ticket; any other
6
+ // pass registers nothing and says why (« arbre non inscrit »).
7
+ import { spawnSync } from 'node:child_process';
8
+ import { garderLArbreJuge } from './arbres-juges.mjs';
9
+
10
+ // The words that open the comment `npx grillhouse direct --panne` writes (scripts/direct.mjs).
11
+ const USAGE = 'Voie de secours (`npx grillhouse direct`), panne du moteur';
12
+
13
+ /**
14
+ * The line that refuses a ticket the rescue way does not serve, naming the one thing missing;
15
+ * null when it serves it: open, labelled `direct`, with a comment that writes the use and its
16
+ * failure.
17
+ * @param {{ id: string, statut: string, etiquettes: string[], commentaires: string[] }} ticket
18
+ * @returns {string | null}
19
+ */
20
+ export function refusDuSecours(ticket) {
21
+ if (ticket.statut === 'closed') {
22
+ return `le ticket ${ticket.id} est fermé : la voie de secours sert un ticket ouvert.`;
23
+ }
24
+ if (!ticket.etiquettes.includes('direct')) {
25
+ return `le ticket ${ticket.id} n'a pas l'étiquette \`direct\` que pose \`npx grillhouse direct\`.`;
26
+ }
27
+ if (!ticket.commentaires.some(t => t.startsWith(USAGE))) {
28
+ return `aucun commentaire du ticket ${ticket.id} n'écrit la panne du moteur : \`npx grillhouse direct ${ticket.id} --panne <texte>\` l'écrit.`;
29
+ }
30
+ return null;
31
+ }
32
+
33
+ /**
34
+ * The end of a pass of the rescue way: registers the tree <etat>.arbre as judged and comments the
35
+ * ticket when the pass is green (<code> 0), whole (not <partielle>), of a ticket the way serves
36
+ * and when the tree measured at the end (<fin>) is the one measured at the entry; otherwise
37
+ * registers nothing. `{ inscrit, ligne }`: the line says which.
38
+ * @param {{ racine: string, ticket: any, etat: { arbre: string, commit: string }, fin: string,
39
+ * code: number, partielle: boolean, commenter: (id: string, texte: string) => void }} o
40
+ */
41
+ export function terminerLeSecours({ racine, ticket, etat, fin, code, partielle, commenter }) {
42
+ const non = cause => ({ inscrit: false, ligne: `↳ arbre non inscrit : ${cause}.` });
43
+ const refus = refusDuSecours(ticket);
44
+ if (refus) {
45
+ return non(refus.replace(/\.$/, ''));
46
+ }
47
+ if (code === 75) {
48
+ return non('la vérification est à repasser');
49
+ }
50
+ if (code !== 0) {
51
+ return non('la vérification est rouge');
52
+ }
53
+ if (partielle) {
54
+ return non('la vérification est partielle (filtre, tranche, sans tests ou module rouge)');
55
+ }
56
+ if (fin !== etat.arbre) {
57
+ return non(`le dossier a été modifié pendant la passe (arbre ${fin.slice(0, 12)} à la fin)`);
58
+ }
59
+ garderLArbreJuge(racine, etat.arbre);
60
+ commenter(
61
+ ticket.id,
62
+ `Voie de secours : vérification entière verte, arbre ${etat.arbre} inscrit au registre des arbres jugés, sur le commit ${etat.commit}.`
63
+ );
64
+ return {
65
+ inscrit: true,
66
+ ligne: `↳ arbre ${etat.arbre.slice(0, 12)} inscrit (voie de secours, ticket ${ticket.id}).`,
67
+ };
68
+ }
69
+
70
+ /**
71
+ * The ticket <id> as Beads holds it, for the rescue way: `{ id, statut, etiquettes, commentaires }`;
72
+ * `{ erreur }` when it cannot be read.
73
+ * @param {string} racine
74
+ * @param {string} id
75
+ */
76
+ export function lireLeTicket(racine, id) {
77
+ const bd = (...a) => spawnSync('bd', a, { cwd: racine, encoding: 'utf8', maxBuffer: 256 * 1024 * 1024 });
78
+ const show = bd('show', id, '--json');
79
+ const comments = bd('comments', id, '--json');
80
+ if (show.status !== 0 || comments.status !== 0) {
81
+ return { erreur: `ticket ${id} illisible : ${show.stderr || comments.stderr || show.error?.message || ''}`.trim() };
82
+ }
83
+ const t = JSON.parse(show.stdout)[0] ?? {};
84
+ return {
85
+ id,
86
+ statut: String(t.status ?? ''),
87
+ etiquettes: t.labels ?? [],
88
+ commentaires: (JSON.parse(comments.stdout || '[]') ?? []).map(c => String(c.text ?? '')),
89
+ };
90
+ }
91
+
92
+ /** Writes the comment <texte> at the ticket <id>. */
93
+ export function commenterLeTicket(racine, id, texte) {
94
+ spawnSync('bd', ['comments', 'add', id, texte], { cwd: racine, encoding: 'utf8', maxBuffer: 256 * 1024 * 1024 });
95
+ }
@@ -9,7 +9,6 @@
9
9
  // at each call, and a script of the core it loads before running one would not run again.
10
10
  //
11
11
  // What the core asks of a module, and the boundary: docs/architecture/tests.md §3.3 and §3.5.
12
- import { fileURLToPath } from 'node:url';
13
12
 
14
13
  // `generateursDe`, which the update alone reads, stays inside the core.
15
14
  export {
@@ -22,10 +21,11 @@ export {
22
21
  } from './langages.mjs';
23
22
 
24
23
  // The services of the core to a module of language: the plan of an envelope, the progress of a
25
- // pass and its measure, the tasks of the graph of the packages, the base of a pass, the pressure of the machine, its place and its lock, the last
24
+ // pass and its measure, the base of the lot of a copy, the tasks of the graph of the packages, the base of a pass, the pressure of the machine, its place and its lock, the last
26
25
  // green, the arbitrages of a ticket, the source files of a project, the search of a command in the
27
26
  // PATH, the copy of a template a project lacks.
28
27
  export { arbitrageTranche, estArbitrage } from './arbitrages.mjs';
28
+ export { baseDuLot } from './etat-du-depot.mjs';
29
29
  export { garderLeTotal, inscrireLePlan, ouvrirAvancement } from './avancement.mjs';
30
30
  export { sources } from './sources.mjs';
31
31
  export { trouverDansLePath } from './commandes-du-path.mjs';
@@ -40,10 +40,13 @@ export {
40
40
  GRAPHE_JOUE,
41
41
  joueCeQuiNeSeDivisePas,
42
42
  LA_FORME,
43
+ lancerEntiersEtFichiers,
43
44
  lancerLesTaches,
45
+ lancerLesTests,
44
46
  lireLaTranche,
45
47
  nomDuPaquet,
46
48
  PASSE_ROUGE,
49
+ passeComplete,
47
50
  SCRIPT_DES_TESTS,
48
51
  SCRIPTS_DE_GARDES,
49
52
  tachesCoteACote,
@@ -53,9 +56,10 @@ export {
53
56
  TRACE,
54
57
  tracesDuPlan,
55
58
  } from './taches-du-graphe.mjs';
59
+ export { etatDuDepot } from './etat-du-depot.mjs';
60
+ export { commenterLeTicket, lireLeTicket, refusDuSecours, terminerLeSecours } from './secours.mjs';
56
61
  export { luUneFois } from './lecture-unique.mjs';
57
62
  export { avecLeFichierDuPoste } from './fichier-du-poste.mjs';
58
- export { fluxDuProjetJoueLesMesures } from './flux-de-la-nuit.mjs';
59
63
  export { BASE_DU_LOT, CHANGEMENTS, DEPUIS_LE_VERT, garderLeVert, mesure } from './dernier-vert.mjs';
60
64
  export {
61
65
  consignerLesRegressions,
@@ -73,22 +77,10 @@ export {
73
77
  ouvrirBase,
74
78
  retirerALInterruption,
75
79
  } from './mesure/base-de-passe.mjs';
76
- export { A_REPASSER, MEMOIRE_COUPEE } from './codes-de-sortie.mjs';
77
- /** The watch of the memory of a pass (./garde-de-la-memoire.mjs), the script a pass runs under. */
78
- export const GARDE_DE_LA_MEMOIRE = fileURLToPath(
79
- new URL('./garde-de-la-memoire.mjs', import.meta.url)
80
- );
81
- export {
82
- attendreLeRepos,
83
- ecrirePression,
84
- lirePression,
85
- SEUIL_PRESSION,
86
- } from './mesure/pression.mjs';
80
+ export { A_REPASSER } from './codes-de-sortie.mjs';
81
+ export { ecrirePression, lirePression, SEUIL_PRESSION } from './mesure/pression.mjs';
87
82
  export { avecLaPasse, surUnePart } from './passe-de-la-machine.mjs';
88
- export {
89
- nommerLAvancement,
90
- travailleursDeLaSeance,
91
- VARIABLE_TRAVAILLEURS,
92
- } from './places-de-la-machine.mjs';
83
+ export { travailleursDeLaSeance, VARIABLE_TRAVAILLEURS } from './places-de-la-machine.mjs';
93
84
  export { attendreDeLaPlace, AttenteDeLaMachine } from './attente-de-la-machine.mjs';
94
85
  export { CONFIG_BEADS, ecrireLePrefixe, prefixe } from './prefixe-des-tickets.mjs';
86
+ export { analyse, constatsDes as constatsDesLectures } from './lectures-communes.mjs';
@@ -63,6 +63,7 @@ export const SOUS_COMMANDES = {
63
63
  maj: 'grillhouse-maj.mjs',
64
64
  'messages-non-lus': 'messages-non-lus.mjs',
65
65
  newday: 'newday.mjs',
66
+ 'nuit-de-pc2': 'nuit-de-pc2.mjs',
66
67
  nuit: '../dist/temporal/nuits/commande.js',
67
68
  outil: 'outil.mjs',
68
69
  paquet: 'paquet.mjs',
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
  # The preparation of a working copy's submodules, called by the three places that create a copy:
3
- # the integration copy (scripts/integration/integrer.mjs), the agent copy
3
+ # the queue's copy (scripts/integration/rejeu.mjs), the agent copy
4
4
  # (scripts/enveloppe/lancer.sh) and the night copy (scripts/nuit.sh).
5
5
  #
6
6
  # npx grillhouse sous-modules pose <copie> every submodule, set or shared