@roomi-fields/grillhouse 0.41.0 → 0.43.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.
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +34 -0
- package/cadre/templates/projet/.github/workflows/ci.yml +13 -0
- package/cadre/templates/projet/.github/workflows/nuit.yml +9 -0
- package/cadre/templates/projet/CLAUDE.md +1 -1
- package/cadre/templates/turbo/paquets.json +2 -1
- package/cadre/templates/turbo/sans-paquets.json +2 -1
- package/docs/ARCHITECTURE.md +17 -5
- package/docs/INTERFACE.md +7 -6
- package/hooks/register.tsx +8 -2
- package/package.json +1 -1
- package/scripts/activites.mjs +20 -8
- package/scripts/circuit.mjs +96 -9
- package/scripts/codes-de-sortie.mjs +6 -0
- package/scripts/effets.mjs +9 -3
- package/scripts/faits-du-circuit.mjs +13 -5
- package/scripts/garde-de-la-memoire.mjs +231 -0
- package/scripts/jointure.d.ts +9 -2
- package/scripts/langages/cargo/commandes.mjs +6 -3
- package/scripts/langages/python/commandes.mjs +2 -2
- package/scripts/langages/python/index.mjs +4 -2
- package/scripts/langages/typescript/turbo-des-paquets.mjs +23 -5
- package/scripts/langages/typescript/verifier.mjs +75 -18
- package/scripts/langages/typescript/vitest-config/base.mjs +6 -4
- package/scripts/mesure-de-la-machine.d.mts +6 -0
- package/scripts/mesure-de-la-machine.mjs +29 -9
- package/scripts/nuit.sh +1 -1
- package/scripts/passe-de-la-machine.mjs +2 -1
- package/scripts/places-de-la-machine.mjs +3 -3
- package/scripts/resultats.mjs +10 -5
- package/scripts/seances.mjs +18 -5
- package/scripts/services-du-noyau.mjs +8 -1
- package/scripts/superviseur.mjs +14 -9
- package/scripts/tableau.mjs +57 -14
- package/scripts/ticket-du-circuit.mjs +12 -1
- package/skills/pitmaster/references/consigne-agent.md +1 -1
|
@@ -78,9 +78,9 @@ export function travailleursDe({
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* The workers a
|
|
82
|
-
*
|
|
83
|
-
* tool. Null without the variable
|
|
81
|
+
* The workers a task plays its tests on, as its environment gives them (GRILLHOUSE_TRAVAILLEURS,
|
|
82
|
+
* set by the envelope for a session, by the pass for a heavy pass): what the module of each
|
|
83
|
+
* language passes to its tool. Null without the variable: the tool keeps its own default.
|
|
84
84
|
* @param {Record<string, string | undefined>} [env]
|
|
85
85
|
* @returns {number | null}
|
|
86
86
|
* @throws {Error} naming GRILLHOUSE_TRAVAILLEURS when its value is not a positive integer
|
package/scripts/resultats.mjs
CHANGED
|
@@ -946,6 +946,10 @@ function manques(role, f) {
|
|
|
946
946
|
// seance }`, or `{ erreur }` naming what lacks or does not conform; with <copie>, the directory
|
|
947
947
|
// of the copy, each file piece of the sheet stands in it, its file and its line; with <ticket>,
|
|
948
948
|
// the description of the ticket, each piece of the ticket names a criterion or a section of it.
|
|
949
|
+
// A sheet that holds its schema is judged whole: what it lacks, its pieces not found and those out
|
|
950
|
+
// of the ticket are named together, and the sheet read comes back beside its faults (`lue`), so
|
|
951
|
+
// that its session's own validation names its faults in the same refusal — a session is taken up
|
|
952
|
+
// once on a refused sheet, as a linter reports every finding of a file in one run.
|
|
949
953
|
export function lireFiche(role, sortie, { copie, ticket } = {}) {
|
|
950
954
|
const schema = schemaDeFiche(role);
|
|
951
955
|
if (!schema) {
|
|
@@ -962,17 +966,18 @@ export function lireFiche(role, sortie, { copie, ticket } = {}) {
|
|
|
962
966
|
}
|
|
963
967
|
const fiche = resultat.structured_output;
|
|
964
968
|
const fautes = erreurs(schema, fiche, '');
|
|
965
|
-
if (
|
|
966
|
-
fautes.
|
|
969
|
+
if (fautes.length) {
|
|
970
|
+
return { erreur: `fiche non conforme : ${fautes.join(' ; ')}` };
|
|
967
971
|
}
|
|
968
|
-
|
|
972
|
+
fautes.push(...manques(role, fiche));
|
|
973
|
+
if (copie) {
|
|
969
974
|
fautes.push(...introuvables(fiche, copie));
|
|
970
975
|
}
|
|
971
|
-
if (
|
|
976
|
+
if (typeof ticket === 'string') {
|
|
972
977
|
fautes.push(...horsDuTicket(fiche, ticket));
|
|
973
978
|
}
|
|
974
979
|
if (fautes.length) {
|
|
975
|
-
return { erreur: `fiche non conforme : ${fautes.join(' ; ')}
|
|
980
|
+
return { erreur: `fiche non conforme : ${fautes.join(' ; ')}`, lue: fiche };
|
|
976
981
|
}
|
|
977
982
|
return { fiche, seance: resultat.session_id ?? null };
|
|
978
983
|
}
|
package/scripts/seances.mjs
CHANGED
|
@@ -592,7 +592,8 @@ export async function seance(
|
|
|
592
592
|
const { tache, ouverts, constats, valider, repondre } = constatsDeLaSeance(
|
|
593
593
|
ctx.contexte,
|
|
594
594
|
gardes,
|
|
595
|
-
role
|
|
595
|
+
role,
|
|
596
|
+
ctx.destinataire ?? null
|
|
596
597
|
);
|
|
597
598
|
// The last sign of life of a launch of this session, which a fresh session after a failed
|
|
598
599
|
// resumption waits for while its group runs.
|
|
@@ -701,7 +702,12 @@ export async function seance(
|
|
|
701
702
|
// task, and his sheet FAIT answers each by its title, refused without one (`valider`,
|
|
702
703
|
// `reponsesAuxConstats`). Either way, each answer a developpeur's sheet gives is kept with its
|
|
703
704
|
// finding (`repondre`, `avecLesReponses`).
|
|
704
|
-
|
|
705
|
+
// A context the supervisor gave to another role (<destinataire>, the role `--depuis` names: the
|
|
706
|
+
// run plays that role's step, then the ones after it) heads the instruction under that role's
|
|
707
|
+
// name: what it asks of him is his session's work, and this session does its own role's share, as
|
|
708
|
+
// a job of a pipeline replayed with the variables of the retry reads those meant for another job
|
|
709
|
+
// without taking them for its own.
|
|
710
|
+
export function constatsDeLaSeance(contexte, constats, role, destinataire = null) {
|
|
705
711
|
const siens = (constats ?? []).filter(c => c.role === role);
|
|
706
712
|
const anciens = siens.filter(c => c.enContexte);
|
|
707
713
|
const neufs = siens.filter(c => !c.enContexte);
|
|
@@ -714,9 +720,13 @@ export function constatsDeLaSeance(contexte, constats, role) {
|
|
|
714
720
|
anciens.length && neufs.length
|
|
715
721
|
? `${texteDesOuverts(neufs)}\n\nPUIS ${enContexte} :\n\n${texteDesOuverts(anciens, neufs.length)}`
|
|
716
722
|
: texteDesOuverts(siens);
|
|
723
|
+
const avant = `elle passe avant le ticket, le rapport${anciens.length ? ' et les constats donnés en contexte' : ''} ci-dessous`;
|
|
724
|
+
const autre = destinataire && destinataire !== role ? destinataire : null;
|
|
717
725
|
return {
|
|
718
726
|
tache: contexte
|
|
719
|
-
?
|
|
727
|
+
? autre
|
|
728
|
+
? `LA TÂCHE DU SUPERVISEUR, donnée au ${nomDuRole(autre)} en relançant le circuit depuis son étape (\`--depuis ${autre}\`) ; ${avant}. Elle s'adresse à lui : ce qu'elle lui demande est le travail de sa séance, déjà jouée ; ta part est celle de ton rôle sur ce qu'elle vise, et tu ne lui renvoies pas ce qu'elle lui demandait :\n\n${contexte}\n\n`
|
|
729
|
+
: `TA TÂCHE, que le superviseur te donne ; ${avant} :\n\n${contexte}\n\n`
|
|
720
730
|
: '',
|
|
721
731
|
ouverts: titre,
|
|
722
732
|
constats: texte,
|
|
@@ -893,9 +903,12 @@ export async function jusquALaFiche(ctx, role, texte, options = {}) {
|
|
|
893
903
|
r.seance === 0
|
|
894
904
|
? lireSaFiche(ctx, reste.fiche ?? role, r.sortie)
|
|
895
905
|
: { erreur: `la séance finit en erreur (code ${r.seance})` };
|
|
896
|
-
|
|
906
|
+
// The session's own validation judges a sheet that holds its schema, refused or not for what
|
|
907
|
+
// it lacks: every fault goes to the one resumption (scripts/resultats.mjs `lireFiche`).
|
|
908
|
+
const lue = lu.fiche ?? lu.lue ?? null;
|
|
909
|
+
const faute = lue ? valider(lue, essai) : null;
|
|
897
910
|
if (faute) {
|
|
898
|
-
lu = { erreur: `fiche non conforme : ${faute}` };
|
|
911
|
+
lu = { erreur: lu.erreur ? `${lu.erreur} ; ${faute}` : `fiche non conforme : ${faute}` };
|
|
899
912
|
}
|
|
900
913
|
if (lu.fiche) {
|
|
901
914
|
// The session that gave it, which a resumption of it names (the plan's answer).
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
// repository).
|
|
8
8
|
// - The core imports ./langages.mjs, never this entry: the command (bin/grillhouse.mjs) loads it
|
|
9
9
|
// at each call, and a script of the core it loads before running one would not run again.
|
|
10
|
+
import { fileURLToPath } from 'node:url';
|
|
11
|
+
|
|
10
12
|
export * from './langages.mjs';
|
|
11
13
|
|
|
12
14
|
// The services of the core to a module of language: the plan of an envelope, the progress of a
|
|
@@ -57,12 +59,17 @@ export {
|
|
|
57
59
|
ouvrirBase,
|
|
58
60
|
retirerALInterruption,
|
|
59
61
|
} from './mesure/base-de-passe.mjs';
|
|
60
|
-
export { A_REPASSER } from './codes-de-sortie.mjs';
|
|
62
|
+
export { A_REPASSER, MEMOIRE_COUPEE } from './codes-de-sortie.mjs';
|
|
63
|
+
/** The watch of the memory of a pass (./garde-de-la-memoire.mjs), the script a pass runs under. */
|
|
64
|
+
export const GARDE_DE_LA_MEMOIRE = fileURLToPath(
|
|
65
|
+
new URL('./garde-de-la-memoire.mjs', import.meta.url)
|
|
66
|
+
);
|
|
61
67
|
export { ecrirePression, lirePression, SEUIL_PRESSION } from './mesure/pression.mjs';
|
|
62
68
|
export {
|
|
63
69
|
avecLaMachineEtUnePlace,
|
|
64
70
|
surUnePlace,
|
|
65
71
|
travailleursDeLaSeance,
|
|
72
|
+
VARIABLE_TRAVAILLEURS,
|
|
66
73
|
} from './places-de-la-machine.mjs';
|
|
67
74
|
export { attendreDeLaPlace, AttenteDeLaMachine, nommerLAvancement } from './verrou-de-machine.mjs';
|
|
68
75
|
export { CONFIG_BEADS, ecrireLePrefixe, prefixe } from './prefixe-des-tickets.mjs';
|
package/scripts/superviseur.mjs
CHANGED
|
@@ -179,7 +179,7 @@ function lireLesIntegrations(racine, maintenant) {
|
|
|
179
179
|
}
|
|
180
180
|
// The tickets the queue reopened for a red workflow of main (label `flux-rouge`) that wait open, with
|
|
181
181
|
// the address of the run, which the title of the queue's comment (scripts/integration/file.mjs)
|
|
182
|
-
// gives in its second paragraph;
|
|
182
|
+
// gives in its second paragraph; null when bd does not read them, which says nothing of the reds.
|
|
183
183
|
export async function fluxRougesDe(racine) {
|
|
184
184
|
// A repository without its base of tickets has no ticket to give, and bd is never launched.
|
|
185
185
|
if (!existsSync(path.join(racine, '.beads'))) {
|
|
@@ -205,7 +205,8 @@ export async function fluxRougesDe(racine) {
|
|
|
205
205
|
);
|
|
206
206
|
return lots.flat();
|
|
207
207
|
} catch {
|
|
208
|
-
|
|
208
|
+
// A reading that fails says nothing of the reds: null, never « none ».
|
|
209
|
+
return null;
|
|
209
210
|
}
|
|
210
211
|
}
|
|
211
212
|
|
|
@@ -438,7 +439,7 @@ const aucunFerme = () => new Set();
|
|
|
438
439
|
* <fluxRouges>: bd by default) is given as a batch of its own, once per run (`adresse`: the
|
|
439
440
|
* workflow, the URL of the run, the commit), and again at another run; taken up or closed, it is
|
|
440
441
|
* no longer given.
|
|
441
|
-
* @param {{ racine: string, fermes?: (racine: string, ids: string[]) => Set<string> | null, pas?: number, signal?: AbortSignal, circuitsDe?: (racine: string, options?: { integres?: boolean }) => Promise<import('./circuits-du-serveur.mjs').CircuitDuServeur[]>, fluxRouges?: (racine: string) => { ticket: string, adresse: string }[] | Promise<{ ticket: string, adresse: string }[]>, maintenant?: () => number, rappel?: number }} options
|
|
442
|
+
* @param {{ racine: string, fermes?: (racine: string, ids: string[]) => Set<string> | null, pas?: number, signal?: AbortSignal, circuitsDe?: (racine: string, options?: { integres?: boolean }) => Promise<import('./circuits-du-serveur.mjs').CircuitDuServeur[]>, fluxRouges?: (racine: string) => { ticket: string, adresse: string }[] | null | Promise<{ ticket: string, adresse: string }[] | null>, maintenant?: () => number, rappel?: number }} options
|
|
442
443
|
* @returns {Promise<{ ticket: string, etape: string, question: string, qui: string, commande: string, cle: string, representee?: boolean, integre?: boolean }[]>}
|
|
443
444
|
* @throws {Error} another wait runs
|
|
444
445
|
*/
|
|
@@ -469,7 +470,8 @@ export async function attendreUneQuestion({
|
|
|
469
470
|
const { depuis: debut, rendues } = lireLesIntegrations(racine, maintenant());
|
|
470
471
|
let lue = debut;
|
|
471
472
|
let lectureDesRouges = null;
|
|
472
|
-
|
|
473
|
+
// The reds read: undefined while the reading runs, null when it failed.
|
|
474
|
+
let rougesLus;
|
|
473
475
|
try {
|
|
474
476
|
while (!signal?.aborted) {
|
|
475
477
|
const avant = maintenant();
|
|
@@ -479,8 +481,8 @@ export async function attendreUneQuestion({
|
|
|
479
481
|
lectureDesRouges ??= Promise.resolve()
|
|
480
482
|
.then(() => fluxRouges(racine))
|
|
481
483
|
.then(
|
|
482
|
-
r => (rougesLus = Array.isArray(r) ? r :
|
|
483
|
-
() => (rougesLus =
|
|
484
|
+
r => (rougesLus = Array.isArray(r) ? r : null),
|
|
485
|
+
() => (rougesLus = null)
|
|
484
486
|
);
|
|
485
487
|
try {
|
|
486
488
|
circuits = await circuitsDe(racine, { integres: true });
|
|
@@ -489,9 +491,12 @@ export async function attendreUneQuestion({
|
|
|
489
491
|
}
|
|
490
492
|
await new Promise(resolve => setImmediate(resolve));
|
|
491
493
|
let rouges = [];
|
|
492
|
-
if (rougesLus) {
|
|
493
|
-
|
|
494
|
-
rougesLus
|
|
494
|
+
if (rougesLus !== undefined) {
|
|
495
|
+
// A failed reading leaves the reds given as they are: the next one judges them.
|
|
496
|
+
if (rougesLus) {
|
|
497
|
+
rouges = releverLesFluxRouges(racine, rougesLus);
|
|
498
|
+
}
|
|
499
|
+
rougesLus = undefined;
|
|
495
500
|
lectureDesRouges = null;
|
|
496
501
|
}
|
|
497
502
|
if (signal?.aborted) {
|
package/scripts/tableau.mjs
CHANGED
|
@@ -674,6 +674,7 @@ export function lireVivant({ racine, home, prefix, maintenant, ps, cache = {} })
|
|
|
674
674
|
silence: dernier ? maintenant - dernier.mtime : null,
|
|
675
675
|
entre: lu?.entre ?? null,
|
|
676
676
|
jetons: lu?.jetons ?? 0,
|
|
677
|
+
minutes: lu?.minutes,
|
|
677
678
|
travail: lu?.travail ?? 0,
|
|
678
679
|
tours: lu?.tours ?? [],
|
|
679
680
|
});
|
|
@@ -690,6 +691,7 @@ export function lireVivant({ racine, home, prefix, maintenant, ps, cache = {} })
|
|
|
690
691
|
depuis: lu.premier ?? maintenant,
|
|
691
692
|
entre: lu.entre,
|
|
692
693
|
jetons: lu.jetons,
|
|
694
|
+
minutes: lu.minutes,
|
|
693
695
|
travail: lu.travail,
|
|
694
696
|
tours: lu.tours,
|
|
695
697
|
});
|
|
@@ -714,6 +716,7 @@ export function lireVivant({ racine, home, prefix, maintenant, ps, cache = {} })
|
|
|
714
716
|
depuis: lu.premier ?? maintenant,
|
|
715
717
|
entre: lu.entre,
|
|
716
718
|
jetons: lu.jetons,
|
|
719
|
+
minutes: lu.minutes,
|
|
717
720
|
travail: lu.travail,
|
|
718
721
|
tours: lu.tours,
|
|
719
722
|
});
|
|
@@ -1068,13 +1071,24 @@ export function assembler({
|
|
|
1068
1071
|
travail: l.reduce((s, x) => s + (x.travail ?? 0), 0),
|
|
1069
1072
|
jetons: l.reduce((s, x) => s + (x.jetons ?? 0), 0),
|
|
1070
1073
|
});
|
|
1071
|
-
// A measure with its turns counts in the day the parts since
|
|
1072
|
-
//
|
|
1074
|
+
// A measure with its turns counts in the day the parts since the day's marker of their union,
|
|
1075
|
+
// and, with its tokens by minute, those spent since it: a session opened days ago counts in the
|
|
1076
|
+
// day what it did today, time and tokens alike. A register line written without them counts
|
|
1077
|
+
// whole in the day it ended.
|
|
1073
1078
|
const partDuJour = tours =>
|
|
1074
1079
|
reunir(tours).reduce((s, [debut, fin]) => s + Math.max(0, fin - Math.max(debut, jour)), 0);
|
|
1080
|
+
const jetonsDuJour = minutes =>
|
|
1081
|
+
Object.entries(minutes).reduce(
|
|
1082
|
+
(s, [minute, n]) => s + (Number(minute) >= Math.floor(jour / MINUTE) ? n : 0),
|
|
1083
|
+
0
|
|
1084
|
+
);
|
|
1075
1085
|
const duJour = mesures
|
|
1076
1086
|
.filter(m => m.quand >= jour)
|
|
1077
|
-
.map(m => (
|
|
1087
|
+
.map(m => ({
|
|
1088
|
+
...m,
|
|
1089
|
+
...(m.tours ? { travail: partDuJour(m.tours) } : {}),
|
|
1090
|
+
...(m.minutes ? { jetons: jetonsDuJour(m.minutes) } : {}),
|
|
1091
|
+
}));
|
|
1078
1092
|
// The discoveries (label `decouverte`, grillhouse-3uv.96): each counts in one case, the first that
|
|
1079
1093
|
// applies. « rejetés » and « validés » count only since the day's marker <jour>; « new » and
|
|
1080
1094
|
// « →check », states that await the owner, do not filter by it.
|
|
@@ -1107,7 +1121,16 @@ export function assembler({
|
|
|
1107
1121
|
decouvertes[c]++;
|
|
1108
1122
|
}
|
|
1109
1123
|
}
|
|
1110
|
-
|
|
1124
|
+
// The time of the day and of the cumul is the work of the agents and of the circuits: the
|
|
1125
|
+
// supervisor's own session, a measure with neither ticket nor role, open for weeks and counting
|
|
1126
|
+
// its waits, gives its tokens to both, never its time.
|
|
1127
|
+
const sansLeTempsDuSuperviseur = l => l.map(m => (m.ticket || m.role ? m : { ...m, travail: 0 }));
|
|
1128
|
+
const global = {
|
|
1129
|
+
compteurs,
|
|
1130
|
+
jour: somme(sansLeTempsDuSuperviseur(duJour)),
|
|
1131
|
+
cumul: somme(sansLeTempsDuSuperviseur(mesures)),
|
|
1132
|
+
decouvertes,
|
|
1133
|
+
};
|
|
1111
1134
|
|
|
1112
1135
|
// Chantiers.
|
|
1113
1136
|
const sous = t => [t, ...(enfants.get(t.id) ?? []).flatMap(sous)];
|
|
@@ -1462,15 +1485,19 @@ export function assembler({
|
|
|
1462
1485
|
};
|
|
1463
1486
|
}
|
|
1464
1487
|
|
|
1488
|
+
// A count of tokens as a line says it: « 512 », « 40 k », « 3,1 M », « 1,2 G »; a count that would
|
|
1489
|
+
// round to a thousand of its unit takes the next one.
|
|
1465
1490
|
export const k = n =>
|
|
1466
|
-
n >=
|
|
1467
|
-
? `${(n /
|
|
1468
|
-
: n >=
|
|
1469
|
-
? `${
|
|
1470
|
-
:
|
|
1491
|
+
n >= 999.95e6
|
|
1492
|
+
? `${(n / 1e9).toFixed(1).replace('.', ',')} G`
|
|
1493
|
+
: n >= 999.5e3
|
|
1494
|
+
? `${(n / 1e6).toFixed(1).replace('.', ',')} M`
|
|
1495
|
+
: n >= 1e3
|
|
1496
|
+
? `${Math.round(n / 1e3)} k`
|
|
1497
|
+
: `${n}`;
|
|
1471
1498
|
export const duree = ms => {
|
|
1472
1499
|
const min = Math.round(ms / MINUTE);
|
|
1473
|
-
return min < 60 ? `${min} min` : `${Math.floor(min / 60)}
|
|
1500
|
+
return min < 60 ? `${min} min` : `${Math.floor(min / 60)}h${String(min % 60).padStart(2, '0')}`;
|
|
1474
1501
|
};
|
|
1475
1502
|
|
|
1476
1503
|
// The local day and month of the instant <t>, « 16/10 ».
|
|
@@ -2485,8 +2512,25 @@ export function ligneEtat(t, voisins = []) {
|
|
|
2485
2512
|
return `${alerte}${ch.numero} ${ch.faits}/${ch.total} · ${dAgents} · ${k(t.global.jour.jetons)} aujourd'hui`;
|
|
2486
2513
|
}
|
|
2487
2514
|
|
|
2488
|
-
|
|
2489
|
-
|
|
2515
|
+
/**
|
|
2516
|
+
* The fault of a call of Beads that threw <e>, as an alert says it: the command `bd` missing from
|
|
2517
|
+
* the PATH with its gesture, as the session start names it; else the first line of its error
|
|
2518
|
+
* output, else of its message.
|
|
2519
|
+
* @param {unknown} e
|
|
2520
|
+
* @returns {string}
|
|
2521
|
+
*/
|
|
2522
|
+
export function fauteDeBeads(e) {
|
|
2523
|
+
if (/** @type {{ code?: string }} */ (e)?.code === 'ENOENT') {
|
|
2524
|
+
return 'la commande bd est absente du PATH de cette séance : `npm install -g @beads/bd`';
|
|
2525
|
+
}
|
|
2526
|
+
const message =
|
|
2527
|
+
String(/** @type {{ stderr?: unknown }} */ (e)?.stderr ?? '').trim() ||
|
|
2528
|
+
String(/** @type {{ message?: unknown }} */ (e)?.message ?? e);
|
|
2529
|
+
return message.split('\n')[0];
|
|
2530
|
+
}
|
|
2531
|
+
|
|
2532
|
+
// The answer of Beads to <args> in the repository at <racine>, as JSON (`liste`), or its fault
|
|
2533
|
+
// (`faute`, `fauteDeBeads`).
|
|
2490
2534
|
const bdJson = (racine, ...args) => {
|
|
2491
2535
|
try {
|
|
2492
2536
|
return {
|
|
@@ -2501,8 +2545,7 @@ const bdJson = (racine, ...args) => {
|
|
|
2501
2545
|
faute: null,
|
|
2502
2546
|
};
|
|
2503
2547
|
} catch (e) {
|
|
2504
|
-
|
|
2505
|
-
return { liste: [], faute: message.split('\n')[0] };
|
|
2548
|
+
return { liste: [], faute: fauteDeBeads(e) };
|
|
2506
2549
|
}
|
|
2507
2550
|
};
|
|
2508
2551
|
|
|
@@ -244,8 +244,19 @@ export const entete = (ctx, etape) =>
|
|
|
244
244
|
appendFileSync(ctx.journal, `=== ${heureLocale()} · circuit · ${etape} ===\n`);
|
|
245
245
|
|
|
246
246
|
// The name of each package of <dossiers> as a title writes it: its component's name, or its path.
|
|
247
|
+
// The components are read in the ticket's copy; when the copy does not load (a manifest a session
|
|
248
|
+
// left broken), in the main tree; when neither loads, each package keeps its path — a title is
|
|
249
|
+
// written whatever the state of the tree (scripts/circuit.mjs `planEtendu`).
|
|
247
250
|
export function nomsDe(ctx, dossiers) {
|
|
248
|
-
|
|
251
|
+
let liste = [];
|
|
252
|
+
for (const base of [...(existsSync(ctx.copie) ? [ctx.copie] : []), ctx.racine]) {
|
|
253
|
+
try {
|
|
254
|
+
liste = composantsDe(base);
|
|
255
|
+
break;
|
|
256
|
+
} catch {
|
|
257
|
+
// This tree does not load: the next one is read.
|
|
258
|
+
}
|
|
259
|
+
}
|
|
249
260
|
return dossiers.map(d => liste.find(p => p.dossier === d)?.pkg.name ?? d);
|
|
250
261
|
}
|
|
251
262
|
|
|
@@ -5,7 +5,7 @@ de lui : le premier pour chaque séance neuve du testwriter et du développeur,
|
|
|
5
5
|
tout le ticket, dans l'enveloppe du plan du ticket, le lanceur ajoutant ses sections, chaque
|
|
6
6
|
consigne portant les constats du relecteur qui restent ouverts pour son rôle, et, quand le
|
|
7
7
|
superviseur relance le circuit avec `--contexte`, ce contexte en tête, comme sa tâche
|
|
8
|
-
(`{{tache}}`), les constats ouverts au lancement de la passe devenant son contexte, après
|
|
8
|
+
(`{{tache}}` ; donné à un autre rôle par `--depuis <rôle>`, il se lit sous le nom de ce rôle, « LA TÂCHE DU SUPERVISEUR, donnée au … », et la séance en fait la part de son propre rôle), les constats ouverts au lancement de la passe devenant son contexte, après
|
|
9
9
|
ceux qu'un `RENDU` pose dans la passe (`{{ouverts}}`, leur titre, et `{{constats}}`) ; le second pour chaque séance du relecteur, hors
|
|
10
10
|
enveloppe, après la passe finale verte, qui porte la liste des éléments du lot, et après un `RENDU` la relecture d'avant (la
|
|
11
11
|
commande de la différence entre le lot qu'elle a lu et celui d'aujourd'hui, ses fichiers, les
|