@roomi-fields/grillhouse 0.45.1 → 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 (114) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +52 -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/.github/workflows/machine-vierge.yml +101 -0
  6. package/cadre/templates/projet/CLAUDE.md +28 -5
  7. package/cadre/templates/projet/docs/agents/issue-tracker.md +1 -1
  8. package/charte.md +61 -23
  9. package/dist/temporal/circuit/appel.d.ts +7 -0
  10. package/dist/temporal/circuit/appel.js +17 -0
  11. package/dist/temporal/circuit/appel.js.map +1 -1
  12. package/dist/temporal/circuit/client.d.ts +28 -5
  13. package/dist/temporal/circuit/client.js +56 -13
  14. package/dist/temporal/circuit/client.js.map +1 -1
  15. package/dist/temporal/circuit/commande.js +16 -4
  16. package/dist/temporal/circuit/commande.js.map +1 -1
  17. package/dist/temporal/circuit/contrat.d.ts +22 -2
  18. package/dist/temporal/circuit/contrat.js +76 -0
  19. package/dist/temporal/circuit/contrat.js.map +1 -1
  20. package/dist/temporal/circuit/deroule.js +68 -11
  21. package/dist/temporal/circuit/deroule.js.map +1 -1
  22. package/dist/temporal/file/activites.d.ts +2 -0
  23. package/dist/temporal/file/activites.js +7 -0
  24. package/dist/temporal/file/activites.js.map +1 -1
  25. package/dist/temporal/file/contrat.d.ts +28 -18
  26. package/dist/temporal/file/contrat.js +8 -5
  27. package/dist/temporal/file/contrat.js.map +1 -1
  28. package/dist/temporal/file/deroule.d.ts +1 -1
  29. package/dist/temporal/file/deroule.js +91 -42
  30. package/dist/temporal/file/deroule.js.map +1 -1
  31. package/dist/temporal/tickets/activites.d.ts +1 -0
  32. package/dist/temporal/tickets/activites.js +37 -11
  33. package/dist/temporal/tickets/activites.js.map +1 -1
  34. package/dist/temporal/tickets/contrat.d.ts +14 -0
  35. package/dist/temporal/tickets/deroule.js +16 -3
  36. package/dist/temporal/tickets/deroule.js.map +1 -1
  37. package/docs/ARCHITECTURE.md +309 -128
  38. package/docs/INTERFACE.md +42 -22
  39. package/hooks/register.tsx +30 -0
  40. package/package.json +1 -1
  41. package/scripts/activites.mjs +60 -21
  42. package/scripts/arbres-juges.mjs +59 -0
  43. package/scripts/attente-a-l-arret.mjs +29 -52
  44. package/scripts/attente-au-tour.mjs +8 -26
  45. package/scripts/avancement.mjs +2 -38
  46. package/scripts/branche-de-nuit.mjs +14 -45
  47. package/scripts/ci-de-main.mjs +273 -0
  48. package/scripts/circuit.mjs +204 -64
  49. package/scripts/circuits-cles.d.mts +9 -0
  50. package/scripts/circuits-cles.mjs +38 -0
  51. package/scripts/coeurs-dedies.mjs +4 -3
  52. package/scripts/dernier-vert.mjs +78 -10
  53. package/scripts/enveloppe/travail-de-la-copie.mjs +5 -2
  54. package/scripts/etapes.mjs +7 -2
  55. package/scripts/faits-du-circuit.mjs +63 -28
  56. package/scripts/fichiers-nommes.mjs +55 -0
  57. package/scripts/file-des-tickets.d.mts +17 -0
  58. package/scripts/file-des-tickets.mjs +39 -0
  59. package/scripts/grillhouse-maj.mjs +20 -1
  60. package/scripts/integration/file.mjs +137 -592
  61. package/scripts/integration/integrer.mjs +10 -7
  62. package/scripts/langages/c/binaires.json +4 -0
  63. package/scripts/langages/c/binaires.mjs +83 -0
  64. package/scripts/langages/c/clang-format.mjs +62 -0
  65. package/scripts/langages/c/clang-tidy.mjs +93 -0
  66. package/scripts/langages/c/clang.mjs +42 -0
  67. package/scripts/langages/c/commandes.mjs +530 -0
  68. package/scripts/langages/c/composants.mjs +209 -0
  69. package/scripts/langages/c/exemples.mjs +250 -0
  70. package/scripts/langages/c/index-interfaces.mjs +77 -0
  71. package/scripts/langages/c/index.mjs +120 -0
  72. package/scripts/langages/c/lot.mjs +41 -0
  73. package/scripts/langages/c/mise-a-jour.mjs +70 -0
  74. package/scripts/langages/c/squelette.mjs +61 -0
  75. package/scripts/langages/c/verdict.mjs +99 -0
  76. package/scripts/langages/cargo/clippy.mjs +16 -9
  77. package/scripts/langages/cargo/commandes.mjs +7 -2
  78. package/scripts/langages/cargo/sccache.mjs +19 -6
  79. package/scripts/langages/typescript/tests.mjs +31 -5
  80. package/scripts/langages/typescript/turbo-des-paquets.mjs +67 -8
  81. package/scripts/langages/typescript/vitest-config/changements.mjs +32 -3
  82. package/scripts/langages/typescript/vitest-config/lances.mjs +16 -0
  83. package/scripts/langages-des-paquets.mjs +30 -2
  84. package/scripts/langages.mjs +1 -0
  85. package/scripts/limite-d-usage.mjs +88 -0
  86. package/scripts/mesure/avancement.mjs +1 -1
  87. package/scripts/migrations/0.47.0-ci-de-main.mjs +48 -0
  88. package/scripts/migrations.mjs +2 -2
  89. package/scripts/outils-cles.d.mts +13 -5
  90. package/scripts/outils-cles.mjs +157 -17
  91. package/scripts/passe-de-la-machine.mjs +26 -2
  92. package/scripts/places-de-la-machine.mjs +52 -6
  93. package/scripts/plafond-de-la-machine.d.mts +10 -2
  94. package/scripts/plafond-de-la-machine.mjs +39 -13
  95. package/scripts/reponses-du-circuit.d.mts +16 -0
  96. package/scripts/reponses-du-circuit.mjs +39 -3
  97. package/scripts/resultats.mjs +32 -11
  98. package/scripts/seances.mjs +211 -59
  99. package/scripts/session-start.sh +2 -11
  100. package/scripts/sortie.mjs +1 -1
  101. package/scripts/sous-commandes.mjs +5 -2
  102. package/scripts/superviseur.mjs +305 -295
  103. package/scripts/tableau.mjs +73 -45
  104. package/scripts/transitions.d.mts +22 -1
  105. package/scripts/transitions.mjs +111 -13
  106. package/scripts/workflows-du-cadre.mjs +21 -1
  107. package/skills/explorateur/SKILL.md +34 -13
  108. package/skills/grill/SKILL.md +6 -5
  109. package/skills/pitmaster/SKILL.md +33 -27
  110. package/skills/redacteur/references/documents-d-un-composant.md +1 -1
  111. package/skills/relecteur/SKILL.md +6 -0
  112. package/skills/testwriter/SKILL.md +4 -0
  113. package/scripts/ci-des-branches.mjs +0 -93
  114. package/scripts/migrations/0.33.0-ci-des-branches-de-ticket.mjs +0 -31
@@ -25,6 +25,7 @@ import {
25
25
  } from 'node:fs';
26
26
  import path from 'node:path';
27
27
  import { GREFFON } from './cadre.mjs';
28
+ import { avecLeFichierDuPoste, configurationDuPoste } from './fichier-du-poste.mjs';
28
29
  import { ecrireLaListe } from './enveloppe/paquets-du-plan.mjs';
29
30
  import { nomDuRole } from './etapes.mjs';
30
31
  import { departDe } from './mesure/base-de-passe.mjs';
@@ -47,6 +48,8 @@ import {
47
48
  nomsDe,
48
49
  } from './ticket-du-circuit.mjs';
49
50
  import { emettre } from './effets.mjs';
51
+ import { fichierNommeAuTicket } from './fichiers-nommes.mjs';
52
+ import { limiteDUsage } from './limite-d-usage.mjs';
50
53
  import { AttenteDeLaMachine } from './attente-de-la-machine.mjs';
51
54
 
52
55
  // The number of the next files of a session in the working directory <dossier> of the ticket: one
@@ -257,12 +260,15 @@ export async function lancer(
257
260
  // A file, not a pipe: a session whose circuit is dead writes its errors without breaking.
258
261
  const erreurs = path.join(ctx.tmp, `erreurs-${numero}.txt`);
259
262
  let commande;
260
- let fds;
263
+ // Its result ranged under its id, as lancer.sh ranges a session's: claude's output, then its
264
+ // exit code once it ends, written by the shell that runs it, which outlives a dead circuit.
265
+ const ouvrirLesFds = () =>
266
+ horsEnveloppe
267
+ ? [openSync(fichier, 'r'), openSync(rang.resultat, 'w'), openSync(ctx.journal, 'a')]
268
+ : ['ignore', 'ignore', openSync(erreurs, 'w')];
269
+ let fds = ouvrirLesFds();
261
270
  if (horsEnveloppe) {
262
271
  entete(ctx, role);
263
- // Its result ranged under its id, as lancer.sh ranges a session's: claude's output, then its
264
- // exit code once it ends, written by the shell that runs it, which outlives a dead circuit.
265
- fds = [openSync(fichier, 'r'), openSync(rang.resultat, 'w'), openSync(ctx.journal, 'a')];
266
272
  const fiche = [
267
273
  '--output-format',
268
274
  'json',
@@ -281,7 +287,6 @@ export async function lancer(
281
287
  cwd: existsSync(ctx.copie) ? ctx.copie : ctx.racine,
282
288
  };
283
289
  } else {
284
- fds = ['ignore', 'ignore', openSync(erreurs, 'w')];
285
290
  commande = {
286
291
  cmd: 'bash',
287
292
  args: [
@@ -324,58 +329,74 @@ export async function lancer(
324
329
  }
325
330
  throw new Arret('a-repasser', e.message);
326
331
  }
332
+ // The key of the API (`cleDeLAPI`): taken for the first attempt, never for the second.
333
+ const cle = cleDeLAPI();
334
+ const fermer = () => {
335
+ for (const fd of new Set(fds.filter(f => typeof f === 'number'))) {
336
+ closeSync(fd);
337
+ }
338
+ };
327
339
  // The session writes at the ticket under the author of its role (the mark of its place,
328
340
  // `place.env`); the passes it plays out of the envelope take their own part of the machine,
329
341
  // those it plays in its envelope none (its place covers them).
330
342
  // A session out of the envelope (the relecteur, which plays tests) plays them on its share of
331
343
  // the cores, under nice and ionice; the launcher of an enveloped one does it in the envelope.
332
- const lancement = horsEnveloppe
333
- ? lancementDeLaPasse({
334
- lourde: false,
335
- cmd: commande.cmd,
336
- args: commande.args,
337
- env: { ...process.env, ...place.env, [ACTEUR]: role },
338
- })
339
- : {
340
- cmd: commande.cmd,
341
- args: commande.args,
342
- env: { ...process.env, ...place.env, [ACTEUR]: role },
343
- };
344
- const fermer = () => {
345
- for (const fd of new Set(fds.filter(f => typeof f === 'number'))) {
346
- closeSync(fd);
344
+ const jouer = async base => {
345
+ const env = { ...base, ...place.env, [ACTEUR]: role };
346
+ const lancement = horsEnveloppe
347
+ ? lancementDeLaPasse({ lourde: false, cmd: commande.cmd, args: commande.args, env })
348
+ : { cmd: commande.cmd, args: commande.args, env };
349
+ const r = await jouerLeGroupe({
350
+ cmd: lancement.cmd,
351
+ args: lancement.args,
352
+ cwd: commande.cwd,
353
+ env: lancement.env,
354
+ stdio: fds,
355
+ seanceId: id,
356
+ lancement: identite,
357
+ immobileMs: ctx.immobileMs,
358
+ traces,
359
+ signeDeVie,
360
+ annulation,
361
+ lance: enfant => {
362
+ fermer();
363
+ // The place is the session's own from now on: its process and its start, so that it is
364
+ // freed with the session, even if the circuit dies before.
365
+ if (enfant.pid) {
366
+ place.rattacher({ pid: enfant.pid, depart: departDe(enfant.pid) });
367
+ }
368
+ },
369
+ });
370
+ if (r.pid === null && r.annulee) {
371
+ fermer();
372
+ }
373
+ if (r.annulee) {
374
+ place.rendre();
375
+ throw new SeanceAnnulee(role);
347
376
  }
377
+ return r;
348
378
  };
349
- const r = await jouerLeGroupe({
350
- cmd: lancement.cmd,
351
- args: lancement.args,
352
- cwd: commande.cwd,
353
- env: lancement.env,
354
- stdio: fds,
355
- seanceId: id,
356
- lancement: identite,
357
- immobileMs: ctx.immobileMs,
358
- traces,
359
- signeDeVie,
360
- annulation,
361
- lance: enfant => {
362
- fermer();
363
- // The place is the session's own from now on: its process and its start, so that it is
364
- // freed with the session, even if the circuit dies before.
365
- if (enfant.pid) {
366
- place.rattacher({ pid: enfant.pid, depart: departDe(enfant.pid) });
367
- }
368
- },
369
- });
370
- if (r.pid === null && r.annulee) {
371
- fermer();
379
+ let r = await jouer(cle?.env ?? process.env);
380
+ let sortie = lireLaSortie(rang);
381
+ const motif = cle ? motifDeRefus(sortie) : null;
382
+ if (cle && motif) {
383
+ // The API refused the key: the session plays again, once, on the subscription, under the same
384
+ // id, which the refused attempt opened: claude refuses a second `--session-id` of it
385
+ // (« already in use »), so the relaunch resumes it (`--resume`, `--reprise` of the launcher).
386
+ // The refusal is neither a failure nor a second session.
387
+ noterLeMois(ctx, cle.dossier, motif);
388
+ commande.args = commande.args.map(a =>
389
+ a === '--session-id' ? '--resume' : a === '--seance' ? '--reprise' : a
390
+ );
391
+ rmSync(rang.fin, { force: true });
392
+ rmSync(rang.resultat, { force: true });
393
+ fds = ouvrirLesFds();
394
+ const { ANTHROPIC_API_KEY: _cle, ...sansCle } = process.env;
395
+ r = await jouer(sansCle);
396
+ sortie = lireLaSortie(rang);
372
397
  }
373
398
  place.rendre();
374
- if (r.annulee) {
375
- throw new SeanceAnnulee(role);
376
- }
377
399
  let seance;
378
- let sortie;
379
400
  let horsPlan = null;
380
401
  let ecriture = null;
381
402
  if (horsEnveloppe) {
@@ -384,7 +405,6 @@ export async function lancer(
384
405
  : r.erreur === null
385
406
  ? r.code
386
407
  : null;
387
- sortie = lire(rang.resultat).trim();
388
408
  appendFileSync(ctx.journal, `${sortie}\n`);
389
409
  spawnSync(process.execPath, [REGISTRE, '--copie', ctx.copie], {
390
410
  cwd: ctx.racine,
@@ -392,7 +412,6 @@ export async function lancer(
392
412
  });
393
413
  } else {
394
414
  seance = existsSync(rang.fin) ? Number(readFileSync(rang.fin, 'utf8').trim()) : null;
395
- sortie = lire(rang.resultat).trim();
396
415
  horsPlan = existsSync(rang.horsPlan) ? lire(rang.horsPlan).trim() : null;
397
416
  ecriture = ecritureRangee(rang);
398
417
  }
@@ -408,6 +427,73 @@ export async function lancer(
408
427
  };
409
428
  }
410
429
 
430
+ // The text a session ranged as its result, `lancer` reads it at the end of each attempt.
431
+ function lireLaSortie(rang) {
432
+ return lire(rang.resultat).trim();
433
+ }
434
+
435
+ // The API key of the poste (`api.env` of the frame's directory of configuration), applied to the
436
+ // environment of the circuit as the files of the poste are (`avecLeFichierDuPoste`): null when the
437
+ // circuit's environment already holds a key, when the month is noted (`api-epuise-AAAA-MM`, a
438
+ // file of presence whose existence alone is tested) or when the file is absent. Its `env` is the
439
+ // environment of the first attempt; its `dossier` the one the month is noted in.
440
+ function cleDeLAPI() {
441
+ const dossier = configurationDuPoste(process.env);
442
+ if (dossier === null || process.env.ANTHROPIC_API_KEY !== undefined) {
443
+ return null;
444
+ }
445
+ if (existsSync(path.join(dossier, `api-epuise-${leMois()}`))) {
446
+ return null;
447
+ }
448
+ const env = avecLeFichierDuPoste(process.env, { fichier: 'api.env' });
449
+ return env === process.env ? null : { env, dossier };
450
+ }
451
+
452
+ // The month of the day, `AAAA-MM`.
453
+ function leMois() {
454
+ const d = new Date();
455
+ return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}`;
456
+ }
457
+
458
+ // Why the API refused a session, from its result: only a JSON result of claude in error whose
459
+ // status or text is the empty credit's (400) or the refused key's (401) counts; any other result,
460
+ // a transient error of the API included, is null and follows the path of the failed sessions.
461
+ function motifDeRefus(sortie) {
462
+ let r;
463
+ try {
464
+ r = JSON.parse(sortie);
465
+ } catch {
466
+ return null;
467
+ }
468
+ // The probed form of a refusal: `is_error` true, `terminal_reason` "api_error", the API's status.
469
+ if (r?.is_error !== true || r.terminal_reason !== 'api_error') {
470
+ return null;
471
+ }
472
+ const texte = typeof r.result === 'string' ? r.result : '';
473
+ if (r.api_error_status === 401) {
474
+ return 'clé refusée';
475
+ }
476
+ if (r.api_error_status === 402 || texte.toLowerCase().includes('credit balance is too low')) {
477
+ return 'crédit épuisé';
478
+ }
479
+ return null;
480
+ }
481
+
482
+ // Notes the month in its file of presence, by an exclusive write: of the sessions refused together,
483
+ // the first to create it writes the line of the log, the others none.
484
+ function noterLeMois(ctx, dossier, motif) {
485
+ const mois = leMois();
486
+ try {
487
+ writeFileSync(path.join(dossier, `api-epuise-${mois}`), '', { flag: 'wx' });
488
+ } catch {
489
+ return;
490
+ }
491
+ appendFileSync(
492
+ ctx.journal,
493
+ `la clé d'API est ${motif} : la séance repart sur l'abonnement, sans clé jusqu'à la fin de ${mois}\n`
494
+ );
495
+ }
496
+
411
497
  // The group of a session, as an activity of Temporal runs a process: launched detached, the
412
498
  // leader of a process group of its own, it sends a sign of life (<signeDeVie>, `{ pid, depart,
413
499
  // seanceId, lancement }`: the leader of the group, its start, `departDe`, the id of the session
@@ -770,7 +856,9 @@ function ecritureRangee(rang) {
770
856
  return existsSync(rang.horsPlanFait) ? JSON.parse(lire(rang.horsPlanFait)) : null;
771
857
  }
772
858
 
773
- // The launch <r> of a session of <role>, or the Arret it is: a session its lock stopped on a
859
+ // The launch <r> of a session of <role>: `{ etendre: { paquet, chemin, piece } }` for a write out
860
+ // of the plan in a file the ticket names (the plan extends, the session resumes), nothing for a
861
+ // session that went its way, or the Arret it is: a session its lock stopped on a
774
862
  // write out of the plan (« hors-plan », the write as its piece), a motionless session
775
863
  // (« bloqué »), a launch that stops before its session (« lancement »).
776
864
  export function seanceLancee(ctx, role, r) {
@@ -778,6 +866,22 @@ export function seanceLancee(ctx, role, r) {
778
866
  // The lock's structured write: the first line of the report names the path and its package;
779
867
  // the question carries the command (none for the root, which no package holds).
780
868
  const ecriture = r.ecriture;
869
+ // A file the ticket's description names (its « Architecture » or a criterion) extends the plan
870
+ // to its package without a stop; the root, and the documents the responsable owns, still go up.
871
+ // A ticket that does not read names nothing: the stop goes up as it did.
872
+ let nomme = null;
873
+ if (ecriture && !ecriture.racine && typeof ctx.bd === 'function') {
874
+ try {
875
+ nomme = fichierNommeAuTicket(leTicket(ctx).description, ecriture.chemin);
876
+ } catch {
877
+ nomme = null;
878
+ }
879
+ }
880
+ if (nomme) {
881
+ return {
882
+ etendre: { paquet: ecriture.paquet, chemin: ecriture.chemin, piece: nomme.piece },
883
+ };
884
+ }
781
885
  const nom = ecriture ? (ecriture.racine ? 'la racine du dépôt' : ecriture.paquet) : null;
782
886
  const dit = ecriture ? `${ecriture.chemin} est dans ${nom}` : null;
783
887
  const question = !ecriture
@@ -815,6 +919,24 @@ export function seanceLancee(ctx, role, r) {
815
919
  }
816
920
  }
817
921
 
922
+ // The size in bytes of the ticket's log, 0 without it: where a launch's own lines begin.
923
+ function tailleDuJournal(ctx) {
924
+ try {
925
+ return statSync(ctx.journal).size;
926
+ } catch {
927
+ return 0;
928
+ }
929
+ }
930
+
931
+ // The lines the ticket's log gained since <depuis> bytes: the end of the log the launch wrote.
932
+ function finDuJournal(ctx, depuis) {
933
+ try {
934
+ return readFileSync(ctx.journal).subarray(depuis).toString('utf8');
935
+ } catch {
936
+ return '';
937
+ }
938
+ }
939
+
818
940
  // The relaunch of the event <evenement> the dead attempt <precedent> of <ctx> made last (2, its
819
941
  // resumption, or 1), when this attempt is one Temporal plays again and that session ranged its
820
942
  // result; else 1.
@@ -885,17 +1007,47 @@ export async function jusquALaFiche(ctx, role, texte, options = {}) {
885
1007
  }
886
1008
  reste.signeDeVie?.(vie);
887
1009
  };
1010
+ // The instruction of a resumption after the plan extended to a package the ticket names: the
1011
+ // session goes on where its lock stopped it, and the launch is neither a first nor a second.
1012
+ let etendu = null;
888
1013
  for (let essai = premier; essai <= 2; essai++) {
889
1014
  const courte = () => consigne({ ticket: ctx.ticket, sujet: ctx.sujet, erreur: lu.erreur }, 2);
890
- const r = await lancer(ctx, role, essai === 1 || !lu ? texte : courte(), {
891
- ...reste,
892
- precedent: derniere,
893
- evenement,
894
- relance: essai,
895
- signeDeVie,
896
- ...ouvrir(essai === 1 ? premiere : 'reprend'),
897
- });
898
- seanceLancee(ctx, role, r);
1015
+ const avantLeJournal = tailleDuJournal(ctx);
1016
+ const r = await lancer(
1017
+ ctx,
1018
+ role,
1019
+ etendu ?? (essai === 1 || !lu ? texte : courte()),
1020
+ {
1021
+ ...reste,
1022
+ precedent: derniere,
1023
+ evenement,
1024
+ relance: essai,
1025
+ signeDeVie,
1026
+ ...ouvrir(etendu || essai > 1 ? 'reprend' : premiere),
1027
+ }
1028
+ );
1029
+ etendu = null;
1030
+ // The usage limit stops a session that does not end on its own: neither a sheet missing nor a
1031
+ // sheet to resume, the circuit waits for the hour the usage returns (« limite-d-usage »).
1032
+ const limite =
1033
+ !r.horsPlan && r.seance !== 0
1034
+ ? limiteDUsage({ resultat: r.sortie, journal: finDuJournal(ctx, avantLeJournal) })
1035
+ : null;
1036
+ if (limite) {
1037
+ throw new Arret(
1038
+ 'limite-d-usage',
1039
+ `La séance du ${nomDuRole(role)} est arrêtée par la limite d'usage ; elle reprend ${limite.lisible ? `à l'heure que la limite donne (${new Date(limite.reprise).toISOString()})` : "dans une heure, la limite ne donne aucune heure lisible"}.`,
1040
+ { resultat: limite }
1041
+ );
1042
+ }
1043
+ const extension =seanceLancee(ctx, role, r)?.etendre;
1044
+ if (extension) {
1045
+ ctx.etendreEnVol(extension);
1046
+ courante = r.id ?? courante;
1047
+ etendu = `Le plan du ticket s'étend à ${extension.paquet} (${extension.piece}) : le crochet qui t'a arrêté sur ${extension.chemin} le laisse maintenant passer. Reprends ta tâche là où il t'a arrêté.`;
1048
+ essai--;
1049
+ continue;
1050
+ }
899
1051
  courante = r.id ?? courante;
900
1052
  if (repli && r.seance !== 0) {
901
1053
  return null;
@@ -35,13 +35,10 @@
35
35
  # detection `grillhouse temporal perime`): joins « Manque » with `npx grillhouse temporal installer`.
36
36
  # An agent's copy does not read it.
37
37
  #
38
- # The CI of the ticket branches: a project none of whose workflows runs on a push to `agent/**`
39
- # (scripts/ci-des-branches.mjs) joins « Manque », with `npx grillhouse maj`, which adds it.
40
- #
41
38
  # One supervisor per project (scripts/superviseur.mjs): the session takes the lock of its
42
39
  # repository, and, when its opening takes the lock (not when it keeps it, after a compaction or a
43
- # /clear), receives the section « L'attente des questions », the wait to launch in the background,
44
- # then « Les circuits du dépôt » when there are some: each circuit that runs, each one stopped on a
40
+ # /clear), receives the section « Les questions des circuits » (the greffon pushes the questions, the answer
41
+ # acknowledges them; no wait to launch), then « Les circuits du dépôt » when there are some: each circuit that runs, each one stopped on a
45
42
  # question with its question and the command that answers it, each one whose workflow ended
46
43
  # without its issue with the command that resumes it; a second session, while the first one lives, receives first the section « Un autre
47
44
  # superviseur tient ce dépôt », which asks it to say so to the owner and to launch no circuit. An
@@ -143,12 +140,6 @@ fi
143
140
  while IFS= read -r crochet; do
144
141
  [ -n "$crochet" ] && missing+=("le crochet git $crochet du cadre")
145
142
  done < <(node "$ici/crochets.mjs" --absents "$root" 2>/dev/null)
146
- # The CI of the ticket branches (scripts/ci-des-branches.mjs): the queue enters a lot on main only
147
- # once the CI of `agent/<ticket>` judged it green, so a project none of whose workflows runs on a
148
- # push to `agent/**` lacks it. An agent's copy does not read it.
149
- if [ -z "$copie_agent" ] && [ -n "$(node "$ici/ci-des-branches.mjs" --absente "$root" 2>/dev/null)" ]; then
150
- missing+=("une CI qui se lance sur les branches de ticket agent/** (la file n'entre un lot sur main qu'une fois la CI de sa branche verte : \`npx grillhouse maj\` ajoute agent/** aux branches du push du flux de la CI, sinon ajoute-le à la main, \`branches: [main, 'agent/**']\`)")
151
- fi
152
143
  command -v bwrap >/dev/null || missing+=("bubblewrap (bwrap), l'enveloppe des agents : sudo apt install bubblewrap")
153
144
 
154
145
  # The key elements the skills read; each one still empty is proposed for a grill.
@@ -19,7 +19,7 @@
19
19
  // - Tagging creates the annotated tag `v<version>` on HEAD, once the release commit is made and
20
20
  // the working tree holds no change. Nothing is pushed: the owner validates the push, whose
21
21
  // command the script names; `.github/workflows/release.yml` then calls the CI on the tagged
22
- // commit (which plays nothing again when a branch agent/** already judged that commit) and, once
22
+ // commit (a call of the release always plays) and, once
23
23
  // it is green or skipped, checks the tag (`--verifier-etiquette`), publishes the package
24
24
  // on the npm registry (trusted publishing, no token stored) and the release on GitHub. The git
25
25
  // it runs is passed in (`etiqueter`'s `git`): the command runs git in the repository.
@@ -22,7 +22,7 @@ import path from 'node:path';
22
22
  import { fileURLToPath } from 'node:url';
23
23
  import { langageDe } from './langages.mjs';
24
24
  import { avecLesDonnees, donneesDe } from './donnees-cles.mjs';
25
- import { avecLesOutils, outilsDe } from './outils-cles.mjs';
25
+ import { avecLesOutils, empreintesDe, outilsDe } from './outils-cles.mjs';
26
26
 
27
27
  const SCRIPTS = path.dirname(fileURLToPath(import.meta.url));
28
28
 
@@ -155,7 +155,10 @@ export function environnementDe(nom, racine = process.cwd(), env = process.env)
155
155
  return env;
156
156
  }
157
157
  const poste = langageDe(racine).environnementDuPoste(env);
158
- return avecLesDonnees(donneesDe(racine), avecLesOutils(outilsDe(racine), poste));
158
+ return avecLesDonnees(
159
+ donneesDe(racine),
160
+ avecLesOutils(outilsDe(racine), poste, empreintesDe(racine))
161
+ );
159
162
  }
160
163
 
161
164
  // The script of each subcommand in the project at <racine>, where a former copy of the frame lay