@roomi-fields/grillhouse 0.26.0 → 0.28.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/agents/explorateur.md +1 -1
- package/cadre/templates/paquet/docs/CADRE.md +36 -0
- package/cadre/templates/paquet/docs/INTERFACE.md +10 -0
- package/cadre/templates/projet/CLAUDE.md +7 -0
- package/cadre/templates/projet/docs/ARCHITECTURE.md +15 -0
- package/cadre/templates/python/package.json +18 -0
- package/charte.md +48 -1
- package/docs/ARCHITECTURE.md +113 -20
- package/docs/CADRE.md +7 -6
- package/docs/INTERFACE.md +111 -32
- package/package.json +1 -1
- package/scripts/circuit.mjs +304 -40
- package/scripts/commande-du-langage.mjs +2 -2
- package/scripts/commandes-composees.mjs +156 -0
- package/scripts/composition-des-langages.mjs +306 -0
- package/scripts/conformite.mjs +1 -3
- package/scripts/dernier-vert.mjs +15 -2
- package/scripts/engendres.mjs +170 -0
- package/scripts/enveloppe/lancer.sh +10 -6
- package/scripts/enveloppe/travail-de-la-copie.mjs +82 -8
- package/scripts/etapes.mjs +18 -5
- package/scripts/gardes-du-cadre.mjs +7 -4
- package/scripts/grillhouse-maj.mjs +157 -103
- package/scripts/index-interfaces.mjs +78 -0
- package/scripts/init.mjs +5 -5
- package/scripts/integration/file.mjs +74 -13
- package/scripts/integration/integrer.mjs +50 -62
- package/scripts/jointure.d.ts +44 -13
- package/scripts/langages/cargo/binaires.mjs +29 -6
- package/scripts/langages/cargo/clippy.mjs +4 -2
- package/scripts/langages/cargo/commandes.mjs +45 -7
- package/scripts/langages/cargo/exemples.mjs +1 -15
- package/scripts/langages/cargo/index-interfaces.mjs +20 -3
- package/scripts/langages/cargo/index.mjs +12 -10
- package/scripts/langages/cargo/mise-a-jour.mjs +2 -1
- package/scripts/langages/cargo/sccache.mjs +29 -0
- package/scripts/langages/cargo/squelette.mjs +111 -0
- package/scripts/langages/python/binaires.json +3 -0
- package/scripts/langages/python/binaires.mjs +59 -0
- package/scripts/langages/python/commandes.mjs +411 -0
- package/scripts/langages/python/composants.mjs +272 -0
- package/scripts/langages/python/exemples.mjs +260 -0
- package/scripts/langages/python/index-interfaces.mjs +77 -0
- package/scripts/langages/python/index.mjs +97 -0
- package/scripts/langages/python/lot.mjs +76 -0
- package/scripts/langages/python/mise-a-jour.mjs +54 -0
- package/scripts/langages/python/squelette.mjs +66 -0
- package/scripts/langages/python/tailles-des-tests.mjs +102 -0
- package/scripts/langages/python/verdict.mjs +85 -0
- package/scripts/langages/typescript/exemples.mjs +1 -20
- package/scripts/langages/typescript/frontieres.mjs +14 -1
- package/scripts/langages/typescript/index-interfaces.mjs +10 -3
- package/scripts/langages/typescript/index.mjs +14 -15
- package/scripts/langages/typescript/squelette.mjs +120 -0
- package/scripts/langages-des-paquets.mjs +171 -0
- package/scripts/langages.mjs +60 -41
- package/scripts/migrations/0.27.0-langages-dans-l-architecture.mjs +182 -0
- package/scripts/migrations.mjs +2 -0
- package/scripts/outils-cles.mjs +1 -1
- package/scripts/paquet.mjs +261 -0
- package/scripts/resultats.mjs +54 -1
- package/scripts/session-start.sh +34 -9
- package/scripts/sources.mjs +2 -1
- package/scripts/sous-commandes.mjs +6 -3
- package/scripts/tableau-des-composants.mjs +140 -0
- package/scripts/verrous/verrou.mjs +3 -2
- package/skills/explorateur/SKILL.md +33 -4
- package/skills/grill/SKILL.md +14 -1
- package/skills/pitmaster/SKILL.md +34 -4
- package/skills/pitmaster/references/consigne-agent.md +33 -4
- package/skills/redacteur/references/documents-d-un-composant.md +12 -0
- package/skills/relecteur/SKILL.md +12 -0
- package/skills/testwriter/SKILL.md +6 -0
package/scripts/circuit.mjs
CHANGED
|
@@ -90,6 +90,25 @@
|
|
|
90
90
|
// passes (`plan`, its fingerprint: its title and its criteria); a plan that passed, its title
|
|
91
91
|
// and criteria unchanged since, passes with no session, whatever else of its description
|
|
92
92
|
// changed.
|
|
93
|
+
// - The sheet of the plan says the sort of the ticket (`sorte`, read by `sorteDuPlan` of
|
|
94
|
+
// scripts/resultats.mjs, from the explorateur's last sheet of the plan), which the circuit
|
|
95
|
+
// writes in the description (« ## Sorte », after the criteria) and at the ticket with the plan:
|
|
96
|
+
// mechanical, a gesture without new behaviour, with its reason and the command that makes it;
|
|
97
|
+
// comportement, with its reason, the plan « comportement inchangé » when the lot changes no
|
|
98
|
+
// behaviour; absent or unreadable, comportement, the whole circuit (grillhouse-sos, BPScript
|
|
99
|
+
// 320.16: 38 tools moved by mv through the testwriter and the developpeur, 117 comments). As
|
|
100
|
+
// Google's large-scale changes (Rosie, ClangMR) let a tool make the change that a verification
|
|
101
|
+
// and a review judge, with no new test, a mechanical ticket (`cheminMecanique`: no `--depuis`,
|
|
102
|
+
// no testwriter nor developpeur since the plan) skips the testwriter, the proof and the
|
|
103
|
+
// developpeur, the gesture `mecanique`: at 1.1 one session of the explorateur in the envelope
|
|
104
|
+
// of the plan (lancer.sh `--fiche geste`, its sheet the schema `geste`, its instruction the
|
|
105
|
+
// ninth template) plays in the copy the command the plan names; its BLOQUÉ or BESOIN goes up as
|
|
106
|
+
// any agent's, and a copy that then holds no change of the plan stops at « sans-livraison ». A
|
|
107
|
+
// `--reprendre` at 1.1 whose copy already holds a change of the plan (the supervisor played the
|
|
108
|
+
// command himself) plays no session. Then the checks, the final pass, the review and the
|
|
109
|
+
// integration, as for any lot; a red of the checks or of the final pass that no regeneration
|
|
110
|
+
// lifts stops at « controles », and a RENDU at « relecture-arret » (`arretDuGesteMecanique`),
|
|
111
|
+
// a question for the supervisor, who has the lot corrected (`--depuis developpeur`) or stops.
|
|
93
112
|
// - Each session is a launch of scripts/enveloppe/lancer.sh, a child process the circuit waits
|
|
94
113
|
// for, in its own process group, its errors written to a file: a session outlives the death of
|
|
95
114
|
// its circuit, and the state names its group while it runs. Its plan, the packages it writes (`--paquets`, the envelope's list), is the plan of the
|
|
@@ -212,11 +231,15 @@
|
|
|
212
231
|
// not told apart. The proof passes with a red (of the lot, existing or of a build), even without
|
|
213
232
|
// a file of the lot: a testwriter with no new test to write says so in his handover, the existing
|
|
214
233
|
// reds are enough. It fails with neither a file of the lot nor a red, with a broken file of the
|
|
215
|
-
// lot, or with a green of the lot no expected green justifies
|
|
234
|
+
// lot, or with a green of the lot no expected green justifies; under a plan « comportement
|
|
235
|
+
// inchangé », nothing has to turn red and every green of the lot is expected, so only a broken
|
|
236
|
+
// file fails it (`preuveReussie`). A failed proof relaunches the
|
|
216
237
|
// testwriter with its report, twice at most. The report (reds, justified greens) is written at
|
|
217
238
|
// the ticket. A proof with a red launches the developpeur, and so does a proof without a red
|
|
218
|
-
// when a finding of the reviewer still open names him
|
|
219
|
-
//
|
|
239
|
+
// when a finding of the reviewer still open names him, or under a plan « comportement inchangé »,
|
|
240
|
+
// whose lot has code to write though nothing turns red; else it skips him (`apresLaPreuve`): the
|
|
241
|
+
// lot is a lot of tests alone, and the checks and the review judge it with no session of the
|
|
242
|
+
// developpeur.
|
|
220
243
|
// - A developpeur is launched on a red, of a proof or of a check, on a finding of the reviewer, or
|
|
221
244
|
// on a plan without tests: a session that changes no file of the plan (`git status --porcelain`
|
|
222
245
|
// of its paths and the content of each file it lists, taken before and after the session; the
|
|
@@ -283,7 +306,10 @@
|
|
|
283
306
|
// the root, as the inputs of Turborepo), the test files that judge it, as `rustc --bless` ties a
|
|
284
307
|
// test to its expected outputs, `lit`, the files it reads that another reference writes, and the
|
|
285
308
|
// guards of the project that judge it, by the name their SARIF finding carries (its guard or its
|
|
286
|
-
// rule). The
|
|
309
|
+
// rule). The generated files it keeps committed, `grillhouse.engendres` (scripts/engendres.mjs,
|
|
310
|
+
// read from the main tree at the launch, a faulty key the stop « lancement »), follow as
|
|
311
|
+
// references written in full, which the integration regenerates instead of merging them. The
|
|
312
|
+
// frame's references follow in every project (`referencesDuCadre`): the files the
|
|
287
313
|
// frame generates, each judged by a guard of the frame, by the names its findings carry (the
|
|
288
314
|
// index of the interfaces, which reads the interfaces, the turbo.json of the packages, the API
|
|
289
315
|
// reports, which write the generated part of the interfaces), and the known debt of the guards;
|
|
@@ -403,7 +429,8 @@
|
|
|
403
429
|
// chore, docs, else feat), its body written once from the final state: the criteria of the plan,
|
|
404
430
|
// then each deviation the sheets of the developpeur and of the reviewer name (`ecarts`), once by
|
|
405
431
|
// its subject, from the last sheet that carries it, with the trailer Co-Authored-By; and the
|
|
406
|
-
// references that write files in full (`--references
|
|
432
|
+
// frame's references that write files in full (`--references`; the project's generated files,
|
|
433
|
+
// the integration reads itself), which the integration regenerates on
|
|
407
434
|
// main of the moment instead of applying their files from the lot. It runs
|
|
408
435
|
// scripts/integration/integrer.mjs from the main tree, its output added to the log: 0 is the
|
|
409
436
|
// commit on agent/<ticket> (which the circuit names from git), the copy removed, the branch in
|
|
@@ -445,7 +472,7 @@
|
|
|
445
472
|
// 22 of /proc/<pid>/stat), which together name it, a number alone being reused; `questionnement` the work
|
|
446
473
|
// on the plan under way (`{ objet, role, seance }`: the plan, the explorateur or the
|
|
447
474
|
// questionneur, its session), null otherwise; `etape` is the state's name of a numbered step of
|
|
448
|
-
// the process (scripts/etapes.mjs: testwriter 2, preuve 2.1, developpeur 3, controles 3.1, or 4.1
|
|
475
|
+
// the process (scripts/etapes.mjs: geste 1.1, testwriter 2, preuve 2.1, developpeur 3, controles 3.1, or 4.1
|
|
449
476
|
// the final pass once `finale`, references 4.2, relecture 4.3, integration 5.1, file 5.2, tri
|
|
450
477
|
// 5.3), or
|
|
451
478
|
// integre at the end; `raison` names the stop (« arrete » once the supervisor stopped the
|
|
@@ -566,6 +593,7 @@ import { stripVTControlCharacters } from 'node:util';
|
|
|
566
593
|
import { ecrireLeBilan } from './bilan.mjs';
|
|
567
594
|
import { DEPUIS_LE_VERT } from './dernier-vert.mjs';
|
|
568
595
|
import { avecLesOutils, outilsDe } from './outils-cles.mjs';
|
|
596
|
+
import { couvertPar, engendresDe } from './engendres.mjs';
|
|
569
597
|
import { commandesPermises, optionsDuRole } from './droits.mjs';
|
|
570
598
|
import {
|
|
571
599
|
ecrireLaListe,
|
|
@@ -604,12 +632,13 @@ import {
|
|
|
604
632
|
reponsesAuxQuestions,
|
|
605
633
|
RESULTATS,
|
|
606
634
|
schemaDeFiche,
|
|
635
|
+
sorteDuPlan,
|
|
607
636
|
VERDICTS_DU_TRI,
|
|
608
637
|
VERDICTS_ROUVERTS,
|
|
609
638
|
} from './resultats.mjs';
|
|
610
639
|
import { AUTEUR_DE_LA_FILE, INTEGRE } from './integration/file.mjs';
|
|
611
640
|
import { dossierCommun, lireEntrees } from './integration/file-attente.mjs';
|
|
612
|
-
import {
|
|
641
|
+
import { refusArbitrage } from './integration/integrer.mjs';
|
|
613
642
|
import { AUTEUR_DU_VERDICT } from './integration/verdict.mjs';
|
|
614
643
|
import { attendreUnPeu } from './verrou-de-fichier.mjs';
|
|
615
644
|
import { AttenteDeLaMachine, avecLaMachine } from './verrou-de-machine.mjs';
|
|
@@ -640,7 +669,8 @@ const SEANCES_DEVELOPPEUR = boucle('code').max;
|
|
|
640
669
|
const RELECTURES = boucle('relecture').max;
|
|
641
670
|
// The steps of the circuit's state, read from the list of the steps.
|
|
642
671
|
const etatDe = n => SUITE.find(e => e.numero === n).etat;
|
|
643
|
-
const [TESTS, PREUVE, CODE, CONTROLES, REFERENCES, RELECTURE, INTEGRATION, EN_FILE, TRI] = [
|
|
672
|
+
const [GESTE, TESTS, PREUVE, CODE, CONTROLES, REFERENCES, RELECTURE, INTEGRATION, EN_FILE, TRI] = [
|
|
673
|
+
'1.1',
|
|
644
674
|
'2',
|
|
645
675
|
'2.1',
|
|
646
676
|
'3',
|
|
@@ -1178,6 +1208,8 @@ function lancer(
|
|
|
1178
1208
|
...(fort ? FORT : []),
|
|
1179
1209
|
...(ouvre ? ['--seance', ouvre] : []),
|
|
1180
1210
|
...(reprend ? ['--reprise', reprend] : []),
|
|
1211
|
+
// The schema of its sheet when it is not its role's (the explorateur's gesture).
|
|
1212
|
+
...(sorte ? ['--fiche', sorte] : []),
|
|
1181
1213
|
// The plan of the session: the packages of the title, which it writes; its component the
|
|
1182
1214
|
// whole copy, which it reads.
|
|
1183
1215
|
'--paquets',
|
|
@@ -1290,7 +1322,7 @@ async function attendreLaSeance(ctx, groupe) {
|
|
|
1290
1322
|
// reviewer's, 2 any session's on a sheet absent or out of its schema, 3 the testwriter's and the
|
|
1291
1323
|
// developpeur's on a resumption, 4 the questionneur's on the plan, 5 the explorateur's on the plan,
|
|
1292
1324
|
// 6 the explorateur's on the questions of the plan, 7 the explorateur's on the tri of the
|
|
1293
|
-
// discoveries), filled with <valeurs>.
|
|
1325
|
+
// discoveries, 8 the explorateur's on the gesture of a mechanical ticket), filled with <valeurs>.
|
|
1294
1326
|
export function consigne(valeurs, rang = 0) {
|
|
1295
1327
|
const texte = readFileSync(GABARIT, 'utf8');
|
|
1296
1328
|
const bloc = [...texte.matchAll(/```text\n([\s\S]*?)\n```/g)][rang];
|
|
@@ -1879,8 +1911,10 @@ function laPasseFinale(ctx) {
|
|
|
1879
1911
|
// The references of the circuit: those the project declares in the package.json of the copy
|
|
1880
1912
|
// (`grillhouse.references`), each `{ nom, commande, fichiers, tests, lit, gardes }` with a name, a
|
|
1881
1913
|
// command and files, `tests`, `lit` and `gardes` arrays when given, empty when not, `entiers` empty;
|
|
1882
|
-
// then
|
|
1883
|
-
//
|
|
1914
|
+
// then its generated files (`grillhouse.engendres`, read at the launch, `ctx.engendres`), each
|
|
1915
|
+
// written in full (`entiers`), which the integration regenerates itself; then the frame's
|
|
1916
|
+
// (`referencesDuCadre`, `cadre`), each but one whose first file a reference of the project covers,
|
|
1917
|
+
// which replaces it.
|
|
1884
1918
|
function lesReferences(ctx) {
|
|
1885
1919
|
const l = lireJson(path.join(existsSync(ctx.copie) ? ctx.copie : ctx.racine, 'package.json'))
|
|
1886
1920
|
?.grillhouse?.references;
|
|
@@ -1902,7 +1936,8 @@ function lesReferences(ctx) {
|
|
|
1902
1936
|
gardes: r.gardes ?? [],
|
|
1903
1937
|
entiers: [],
|
|
1904
1938
|
cadre: false,
|
|
1905
|
-
}))
|
|
1939
|
+
}))
|
|
1940
|
+
.concat((ctx.engendres ?? []).map(e => ({ ...e, tests: [], cadre: false })));
|
|
1906
1941
|
const duCadre = referencesDuCadre(existsSync(ctx.copie) ? ctx.copie : ctx.racine)
|
|
1907
1942
|
.filter(c => !duProjet.some(r => couvertPar(r.fichiers, c.fichiers[0])))
|
|
1908
1943
|
.map(c => ({ ...c, tests: [], cadre: true }));
|
|
@@ -2076,6 +2111,26 @@ export function outilsAuLancement(racine) {
|
|
|
2076
2111
|
}
|
|
2077
2112
|
}
|
|
2078
2113
|
|
|
2114
|
+
// The generated files the project declares (`grillhouse.engendres`, scripts/engendres.mjs), read
|
|
2115
|
+
// at the launch of a run from its main tree: `{ engendres }`, or `{ arret }`, the stop « lancement »
|
|
2116
|
+
// that goes up to the supervisor before any session, the faults of the key named.
|
|
2117
|
+
export function engendresAuLancement(racine) {
|
|
2118
|
+
try {
|
|
2119
|
+
return { engendres: engendresDe(racine) };
|
|
2120
|
+
} catch (err) {
|
|
2121
|
+
const rapport = `La clé grillhouse.engendres du package.json est refusée :\n${err.message}`;
|
|
2122
|
+
return {
|
|
2123
|
+
arret: {
|
|
2124
|
+
code: ARRETS.lancement,
|
|
2125
|
+
nom: 'lancement',
|
|
2126
|
+
rapport,
|
|
2127
|
+
piece: `$ npm pkg get grillhouse.engendres\n${rapport}`,
|
|
2128
|
+
question: `${rapport}\nLa clé se corrige au package.json du projet, puis \`--reprendre\`.`,
|
|
2129
|
+
},
|
|
2130
|
+
};
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2079
2134
|
// One command of a reference, run by the shell at the root of the copy, out of the envelope,
|
|
2080
2135
|
// under the lock of the machine, its output added to the log: `{ code, panne, sortie }`, its exit
|
|
2081
2136
|
// code, whether it failed for real, whatever it judges (the command not found or not executable,
|
|
@@ -2246,6 +2301,87 @@ export function arretDuTestwriterSaute(ctx, texte) {
|
|
|
2246
2301
|
);
|
|
2247
2302
|
}
|
|
2248
2303
|
|
|
2304
|
+
// The sheet of the plan that says the sort among the explorateur's sheets of the plan <plans>, in
|
|
2305
|
+
// their order (`{ fiche, reponse }` entries): the last one, or, when it is his answer to the
|
|
2306
|
+
// questionneur (`reponse`) and says none, the plan it answers, so that the sort survives the
|
|
2307
|
+
// answer; null without a sheet of the plan.
|
|
2308
|
+
export function ficheDeLaSorte(plans) {
|
|
2309
|
+
const derniere = plans.at(-1);
|
|
2310
|
+
if (!derniere) return null;
|
|
2311
|
+
if (derniere.reponse && !('sorte' in derniere.fiche) && plans.length > 1) {
|
|
2312
|
+
return plans.at(-2).fiche;
|
|
2313
|
+
}
|
|
2314
|
+
return derniere.fiche;
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
// The sort of the ticket its plan says (`sorteDuPlan` of scripts/resultats.mjs): the sheet of the
|
|
2318
|
+
// plan that says it (`ficheDeLaSorte`), comportement without one (grillhouse-sos).
|
|
2319
|
+
const sorteDuTicket = ctx =>
|
|
2320
|
+
sorteDuPlan(
|
|
2321
|
+
ficheDeLaSorte(
|
|
2322
|
+
lesFiches(ctx).filter(e => e.role === EXPLORATEUR && Array.isArray(e.fiche?.criteres))
|
|
2323
|
+
)
|
|
2324
|
+
);
|
|
2325
|
+
|
|
2326
|
+
// Whether a testwriter or a developpeur has worked the lot since the last sheet of the plan.
|
|
2327
|
+
function lotTravaille(ctx) {
|
|
2328
|
+
const tous = lesFiches(ctx);
|
|
2329
|
+
const plan = tous.findLastIndex(e => e.role === EXPLORATEUR && Array.isArray(e.fiche?.criteres));
|
|
2330
|
+
return tous.slice(plan + 1).some(e => AGENTS_DU_LOT.includes(e.role));
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
// Whether the ticket of <ctx> goes the mechanical path, as Google's large-scale changes (Rosie,
|
|
2334
|
+
// ClangMR) let a tool make the change that a verification and a review judge: its plan says it
|
|
2335
|
+
// mechanical (`ctx.sorte`), no `--depuis` sends its lot to an agent, and no testwriter nor
|
|
2336
|
+
// developpeur has worked it since the plan (grillhouse-sos).
|
|
2337
|
+
export const cheminMecanique = ctx =>
|
|
2338
|
+
ctx.sorte?.genre === 'mécanique' && !ctx.depuis && !lotTravaille(ctx);
|
|
2339
|
+
|
|
2340
|
+
// The step after the plan of sort <sorte> (null when the path is not mechanical): the gesture of
|
|
2341
|
+
// a mechanical ticket (1.1), in place of the testwriter, the proof and the developpeur; the
|
|
2342
|
+
// developpeur of a plan without tests (<sansTests>); else the testwriter.
|
|
2343
|
+
export const etapeApresLePlan = ({ sorte, sansTests }) =>
|
|
2344
|
+
sorte?.genre === 'mécanique' ? GESTE : sansTests ? CODE : TESTS;
|
|
2345
|
+
|
|
2346
|
+
// The step after a proof that passes: the developpeur on a red (<rouges>), on a finding of the
|
|
2347
|
+
// reviewer still open for him (<pourLeDeveloppeur>), or under a plan « comportement inchangé »
|
|
2348
|
+
// (<inchange>), whose lot has code to write though nothing turns red, as a reorganisation does
|
|
2349
|
+
// (decision 3, amended by the owner on 2026-11-01); else the checks, a lot of tests alone, with
|
|
2350
|
+
// no session of the developpeur.
|
|
2351
|
+
export const apresLaPreuve = ({ rouges, pourLeDeveloppeur, inchange }) =>
|
|
2352
|
+
rouges > 0 || pourLeDeveloppeur || inchange ? CODE : CONTROLES;
|
|
2353
|
+
|
|
2354
|
+
// Whether a proof of the counts <compte> passes: no file of the lot that does not load, no green
|
|
2355
|
+
// without its expected green, and a red or a green justified or held by HEAD among the files of
|
|
2356
|
+
// the lot or a red without one. Under a plan « comportement inchangé » (<inchange>), nothing has
|
|
2357
|
+
// to turn red and every green is expected: a proof passes with no file of the lot that does not
|
|
2358
|
+
// load, its reds going to the developpeur.
|
|
2359
|
+
export function preuveReussie(
|
|
2360
|
+
{ fichiers, rouges, casses, injustifies, justifies, anciens },
|
|
2361
|
+
{ inchange }
|
|
2362
|
+
) {
|
|
2363
|
+
if (casses > 0) return false;
|
|
2364
|
+
if (inchange) return true;
|
|
2365
|
+
return (fichiers > 0 || rouges > 0) && injustifies === 0 && rouges + justifies + anciens > 0;
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
// The stop for a RENDU of a mechanical lot (`cheminMecanique`), or null: no testwriter nor
|
|
2369
|
+
// developpeur wrote it, so no relaunch treats its findings. An Arret `relecture-arret`, the
|
|
2370
|
+
// verdict <texte> in its report, the findings' pieces as its piece; its question, have the lot
|
|
2371
|
+
// corrected by the developpeur or stop the circuit.
|
|
2372
|
+
export function arretDuGesteMecanique(ctx, texte) {
|
|
2373
|
+
if (!cheminMecanique(ctx)) return null;
|
|
2374
|
+
const pieces = (ctx.constats ?? []).map(c => c.piece ?? c.titre).join('\n');
|
|
2375
|
+
return new Arret(
|
|
2376
|
+
'relecture-arret',
|
|
2377
|
+
`Le relecteur rend un lot mécanique (${ctx.sorte.raison}), que la commande du plan a fait sans testwriter ni développeur : le circuit ne relance personne.\n\nLe verdict :\n\n${texte}`,
|
|
2378
|
+
{
|
|
2379
|
+
piece: pieces || null,
|
|
2380
|
+
question: `Le lot mécanique est rendu : le faire corriger par le développeur (\`--depuis developpeur --contexte\`), ou arrêter le circuit (\`--arreter\`) et changer le plan.`,
|
|
2381
|
+
}
|
|
2382
|
+
);
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2249
2385
|
// The integration of the lot: its two patches, its message and the references that write files in
|
|
2250
2386
|
// full (`--references`, from `lesReferences`, the one list), written from the copy, then
|
|
2251
2387
|
// scripts/integration/integrer.mjs from the main tree, its output added to the log. A run « à
|
|
@@ -2276,12 +2412,14 @@ function integrer(ctx) {
|
|
|
2276
2412
|
const message = path.join(ctx.tmp, 'message');
|
|
2277
2413
|
writeFileSync(message, messageDeCommit(ctx));
|
|
2278
2414
|
args.push('--message', message);
|
|
2415
|
+
// The project's generated files, the integration reads from the main tree itself.
|
|
2279
2416
|
const entieres = lesReferences(ctx)
|
|
2280
|
-
.filter(r => r.entiers.length)
|
|
2281
|
-
.map(({ nom, commande, fichiers, entiers, cadre }) => ({
|
|
2417
|
+
.filter(r => r.cadre && r.entiers.length)
|
|
2418
|
+
.map(({ nom, commande, fichiers, lit, entiers, cadre }) => ({
|
|
2282
2419
|
nom,
|
|
2283
2420
|
commande,
|
|
2284
2421
|
fichiers,
|
|
2422
|
+
lit,
|
|
2285
2423
|
entiers,
|
|
2286
2424
|
cadre,
|
|
2287
2425
|
}));
|
|
@@ -2789,6 +2927,8 @@ function preuve(ctx) {
|
|
|
2789
2927
|
let anciens = 0;
|
|
2790
2928
|
const reportes = [];
|
|
2791
2929
|
const mesure = mesureDeLaPreuve(ctx, liste, fichiers);
|
|
2930
|
+
// A plan « comportement inchangé »: every green of the lot is expected.
|
|
2931
|
+
const inchange = Boolean(ctx.sorte?.inchange);
|
|
2792
2932
|
for (const { groupe, entier, avant, code, resultats, constructions } of mesure) {
|
|
2793
2933
|
for (const { nom, erreur } of constructions) {
|
|
2794
2934
|
if (reportes.includes(nom)) continue;
|
|
@@ -2850,6 +2990,8 @@ function preuve(ctx) {
|
|
|
2850
2990
|
justifies.push(`${f} › ${a.nom} — ${raison}`);
|
|
2851
2991
|
} else if (duF && avant.has(f)) {
|
|
2852
2992
|
justifies.push(`${f} › ${a.nom} — ${duF.raison} (par le vert attendu du fichier)`);
|
|
2993
|
+
} else if (inchange) {
|
|
2994
|
+
justifies.push(`${f} › ${a.nom} — le plan dit « comportement inchangé »`);
|
|
2853
2995
|
} else {
|
|
2854
2996
|
injustifies.push(`${f} › ${a.nom}`);
|
|
2855
2997
|
}
|
|
@@ -2859,11 +3001,17 @@ function preuve(ctx) {
|
|
|
2859
3001
|
}
|
|
2860
3002
|
const section = (titre, l) =>
|
|
2861
3003
|
l.length ? [`${titre} (${l.length}) :`, ...l.map(x => `- ${x}`), ''] : [];
|
|
2862
|
-
const ok =
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
3004
|
+
const ok = preuveReussie(
|
|
3005
|
+
{
|
|
3006
|
+
fichiers: fichiers.length,
|
|
3007
|
+
rouges: rouges.length,
|
|
3008
|
+
casses: casses.length,
|
|
3009
|
+
injustifies: injustifies.length,
|
|
3010
|
+
justifies: justifies.length,
|
|
3011
|
+
anciens,
|
|
3012
|
+
},
|
|
3013
|
+
{ inchange }
|
|
3014
|
+
);
|
|
2867
3015
|
const resume = `${rouges.length} rouge(s), ${justifies.length} vert(s) justifié(s), ${injustifies.length} vert(s) sans vert attendu, ${casses.length} fichier(s) qui ne se charge(nt) pas, ${anciens} test(s) vert(s) que HEAD tient déjà, laissé(s) de côté`;
|
|
2868
3016
|
const ecrit = (...sections) =>
|
|
2869
3017
|
[
|
|
@@ -2874,7 +3022,12 @@ function preuve(ctx) {
|
|
|
2874
3022
|
'',
|
|
2875
3023
|
...(fichiers.length || rouges.length
|
|
2876
3024
|
? []
|
|
2877
|
-
:
|
|
3025
|
+
: inchange
|
|
3026
|
+
? [
|
|
3027
|
+
'Aucun fichier de test du lot : le plan dit « comportement inchangé », rien à prouver.',
|
|
3028
|
+
'',
|
|
3029
|
+
]
|
|
3030
|
+
: ['Aucun fichier de test du lot dans le plan : rien ne prouve le rouge.', '']),
|
|
2878
3031
|
...section('Rouges', rouges),
|
|
2879
3032
|
...sections,
|
|
2880
3033
|
...section(
|
|
@@ -3351,7 +3504,59 @@ async function derouler(ctx, debut) {
|
|
|
3351
3504
|
const menee = MENEES.has(etape) ? { etape, debut: new Date().toISOString() } : null;
|
|
3352
3505
|
ecrireEtat(ctx, { ...etat, mene: menee?.debut ?? null });
|
|
3353
3506
|
try {
|
|
3354
|
-
|
|
3507
|
+
// After the plan: the gesture of a mechanical ticket, the developpeur of a plan without
|
|
3508
|
+
// tests, else the testwriter.
|
|
3509
|
+
const route =
|
|
3510
|
+
etape === TESTS
|
|
3511
|
+
? etapeApresLePlan({
|
|
3512
|
+
sorte: cheminMecanique(ctx) ? ctx.sorte : null,
|
|
3513
|
+
sansTests: sansTests(ctx),
|
|
3514
|
+
})
|
|
3515
|
+
: null;
|
|
3516
|
+
if (route === GESTE) {
|
|
3517
|
+
geste(ctx, 'mecanique');
|
|
3518
|
+
etape = GESTE;
|
|
3519
|
+
tentative = 1;
|
|
3520
|
+
} else if (etape === GESTE) {
|
|
3521
|
+
if (reprend && livre(ctx)) {
|
|
3522
|
+
// The copy already carries the gesture (the supervisor played the command himself).
|
|
3523
|
+
commenter(
|
|
3524
|
+
ctx,
|
|
3525
|
+
'mecanique',
|
|
3526
|
+
'la copie porte déjà un changement du plan : le geste ne rejoue pas, aux contrôles.'
|
|
3527
|
+
);
|
|
3528
|
+
} else {
|
|
3529
|
+
const { description } = leTicket(ctx);
|
|
3530
|
+
const fiche = await jusquALaFiche(
|
|
3531
|
+
ctx,
|
|
3532
|
+
EXPLORATEUR,
|
|
3533
|
+
consigne(
|
|
3534
|
+
{
|
|
3535
|
+
depot: ctx.racine,
|
|
3536
|
+
ticket: ctx.ticket,
|
|
3537
|
+
sujet: ctx.sujet,
|
|
3538
|
+
paquets: ctx.paquets.join(', '),
|
|
3539
|
+
raison: ctx.sorte.raison,
|
|
3540
|
+
commande: ctx.sorte.commande,
|
|
3541
|
+
description: description.trim() || 'aucune',
|
|
3542
|
+
},
|
|
3543
|
+
8
|
|
3544
|
+
),
|
|
3545
|
+
{ fiche: 'geste', objet: 'geste' }
|
|
3546
|
+
);
|
|
3547
|
+
if (fiche.statut !== 'FAIT') throw arretDuStatut(ctx, EXPLORATEUR, tentative, fiche);
|
|
3548
|
+
if (!livre(ctx)) {
|
|
3549
|
+
throw new Arret(
|
|
3550
|
+
'sans-livraison',
|
|
3551
|
+
`Le geste mécanique ne change aucun fichier du plan (${ctx.paquets.join(', ')}) : la commande du plan, \`${ctx.sorte.commande}\`, n'a rien changé dans la copie.`,
|
|
3552
|
+
{ piece: `$ ${ctx.sorte.commande}\naucun fichier du plan changé dans ${ctx.copie}` }
|
|
3553
|
+
);
|
|
3554
|
+
}
|
|
3555
|
+
commenter(ctx, 'mecanique', 'la commande du plan a joué dans la copie : aux contrôles.');
|
|
3556
|
+
}
|
|
3557
|
+
etape = CONTROLES;
|
|
3558
|
+
tentative = 0;
|
|
3559
|
+
} else if (route === CODE) {
|
|
3355
3560
|
commenter(
|
|
3356
3561
|
ctx,
|
|
3357
3562
|
'testwriter',
|
|
@@ -3383,12 +3588,19 @@ async function derouler(ctx, debut) {
|
|
|
3383
3588
|
if (p.ok) {
|
|
3384
3589
|
// A finding of the reviewer still open for the developpeur launches him, red or not.
|
|
3385
3590
|
const pourLui = ouverts(ctx, 'developpeur').length > 0;
|
|
3386
|
-
const auDeveloppeur =
|
|
3591
|
+
const auDeveloppeur =
|
|
3592
|
+
apresLaPreuve({
|
|
3593
|
+
rouges: p.rouges,
|
|
3594
|
+
pourLeDeveloppeur: pourLui,
|
|
3595
|
+
inchange: Boolean(ctx.sorte?.inchange),
|
|
3596
|
+
}) === CODE;
|
|
3387
3597
|
const suite = p.rouges
|
|
3388
3598
|
? 'au développeur'
|
|
3389
3599
|
: pourLui
|
|
3390
3600
|
? 'aucun rouge ; au développeur, que nomme un constat du relecteur'
|
|
3391
|
-
:
|
|
3601
|
+
: ctx.sorte?.inchange
|
|
3602
|
+
? 'aucun rouge : le plan dit « comportement inchangé », au développeur'
|
|
3603
|
+
: 'aucun rouge : un lot de tests seul, aux contrôles';
|
|
3392
3604
|
ecrireRapport(ctx, 'preuve', `${p.resume} ; ${suite}.\n\n${p.texte}`, p.resultat);
|
|
3393
3605
|
etape = auDeveloppeur ? CODE : CONTROLES;
|
|
3394
3606
|
tentative = auDeveloppeur ? 1 : 0;
|
|
@@ -3586,6 +3798,12 @@ async function derouler(ctx, debut) {
|
|
|
3586
3798
|
'controles',
|
|
3587
3799
|
'Les rouges du plan sont des constats à arbitrer : aucun développeur ne les tranche.'
|
|
3588
3800
|
);
|
|
3801
|
+
} else if (k.rouge && cheminMecanique(ctx)) {
|
|
3802
|
+
// A mechanical lot: no testwriter nor developpeur lifts the red of its command.
|
|
3803
|
+
arreter(
|
|
3804
|
+
'controles',
|
|
3805
|
+
`Le ticket est mécanique (${ctx.sorte.raison}) : ni testwriter ni développeur ne lève ce rouge du lot de sa commande. Le superviseur fait corriger le lot (\`--depuis developpeur\`, le rouge en \`--contexte\`), corrige le geste dans la copie puis \`--reprendre\`, ou arrête le circuit (\`--arreter\`).`
|
|
3806
|
+
);
|
|
3589
3807
|
} else if (k.rouge && rien) {
|
|
3590
3808
|
// The stop stands at the developpeur's step, which a resumption plays again.
|
|
3591
3809
|
arreter('sans-livraison', rien, CODE);
|
|
@@ -3742,7 +3960,7 @@ async function derouler(ctx, debut) {
|
|
|
3742
3960
|
);
|
|
3743
3961
|
}
|
|
3744
3962
|
ctx.constats = constatsOuverts(ctx, v.fiche, v.texte);
|
|
3745
|
-
const saute = arretDuTestwriterSaute(ctx, v.texte);
|
|
3963
|
+
const saute = arretDuTestwriterSaute(ctx, v.texte) ?? arretDuGesteMecanique(ctx, v.texte);
|
|
3746
3964
|
if (saute) throw saute;
|
|
3747
3965
|
const auTestwriter = ouverts(ctx, 'testwriter').length > 0;
|
|
3748
3966
|
etape = auTestwriter ? TESTS : CODE;
|
|
@@ -4034,6 +4252,14 @@ const planPasse = (ctx, empreinte) =>
|
|
|
4034
4252
|
|
|
4035
4253
|
// The heading of the section of the open questions in a plan's description.
|
|
4036
4254
|
const QUESTIONS_OUVERTES = '## Questions ouvertes';
|
|
4255
|
+
// The heading of the section of the sort of the ticket in a plan's description (grillhouse-sos).
|
|
4256
|
+
const SORTE = '## Sorte';
|
|
4257
|
+
|
|
4258
|
+
// The sort <sorte> (`sorteDuPlan`) in words: its kind, then its reason.
|
|
4259
|
+
const texteDeLaSorte = sorte =>
|
|
4260
|
+
sorte.raison
|
|
4261
|
+
? `${sorte.genre}${sorte.inchange ? ' inchangé' : ''} — ${sorte.raison}`
|
|
4262
|
+
: `${sorte.genre} — la fiche ne dit pas sa sorte lisiblement : le circuit entier`;
|
|
4037
4263
|
|
|
4038
4264
|
// The sections of the description <description>: the text before its first `##` heading, then
|
|
4039
4265
|
// each heading with its lines.
|
|
@@ -4058,13 +4284,17 @@ function numerotee(ligne) {
|
|
|
4058
4284
|
}
|
|
4059
4285
|
|
|
4060
4286
|
// The ticket's description <description> as it was before the plan, with the criteria the plan adds
|
|
4061
|
-
// <criteres> in its section of criteria (a section « ## Critères » at its end without one)
|
|
4062
|
-
//
|
|
4063
|
-
//
|
|
4064
|
-
//
|
|
4065
|
-
// the
|
|
4066
|
-
|
|
4067
|
-
|
|
4287
|
+
// <criteres> in its section of criteria (a section « ## Critères » at its end without one), the sort
|
|
4288
|
+
// of the ticket <sorte> in its section after it, its reason and the command of a mechanical ticket
|
|
4289
|
+
// (absent when the sheet says none), and its open questions <questions> in their section after
|
|
4290
|
+
// them, absent without one; the rest of it as it was. The criteria already written stay as they
|
|
4291
|
+
// are, the decision of the owner: each criterion the plan adds follows them, numbered after them.
|
|
4292
|
+
// Written again from the description before the plan, the description holds the criteria and the
|
|
4293
|
+
// sort of the explorateur's last sheet alone.
|
|
4294
|
+
export function decrireLePlan(description, criteres, questions, sorte = null) {
|
|
4295
|
+
const gardees = sectionsDe(description).filter(
|
|
4296
|
+
s => s.tete !== QUESTIONS_OUVERTES && s.tete !== SORTE
|
|
4297
|
+
);
|
|
4068
4298
|
let i = gardees.findIndex(deCriteres);
|
|
4069
4299
|
if (i < 0) {
|
|
4070
4300
|
gardees.at(-1).lignes.push('');
|
|
@@ -4080,12 +4310,25 @@ function decrireLePlan(description, criteres, questions) {
|
|
|
4080
4310
|
tete: gardees[i].tete,
|
|
4081
4311
|
lignes: [...(avant.length ? avant : ['']), ...liste, ''],
|
|
4082
4312
|
};
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4313
|
+
const apres = [
|
|
4314
|
+
...(sorte
|
|
4315
|
+
? [
|
|
4316
|
+
{
|
|
4317
|
+
tete: SORTE,
|
|
4318
|
+
lignes: [
|
|
4319
|
+
'',
|
|
4320
|
+
texteDeLaSorte(sorte),
|
|
4321
|
+
...(sorte.commande ? ['', `Commande : \`${sorte.commande}\``] : []),
|
|
4322
|
+
'',
|
|
4323
|
+
],
|
|
4324
|
+
},
|
|
4325
|
+
]
|
|
4326
|
+
: []),
|
|
4327
|
+
...(questions.length
|
|
4328
|
+
? [{ tete: QUESTIONS_OUVERTES, lignes: ['', lignesOuvertes(questions), ''] }]
|
|
4329
|
+
: []),
|
|
4330
|
+
];
|
|
4331
|
+
gardees.splice(i + 1, 0, ...apres);
|
|
4089
4332
|
return gardees
|
|
4090
4333
|
.flatMap(s => (s.tete ? [s.tete, ...s.lignes] : s.lignes))
|
|
4091
4334
|
.join('\n')
|
|
@@ -4148,6 +4391,10 @@ function fautesDesPaquets(ctx, fiche, description) {
|
|
|
4148
4391
|
: null;
|
|
4149
4392
|
}
|
|
4150
4393
|
|
|
4394
|
+
// The sort the sheet of the plan <fiche> writes in the description: the one it says, read
|
|
4395
|
+
// (`sorteDuPlan`), or none when the sheet says none.
|
|
4396
|
+
const sorteEcrite = fiche => ('sorte' in fiche ? sorteDuPlan(fiche) : null);
|
|
4397
|
+
|
|
4151
4398
|
// The components the sheet <fiche> of the explorateur sets apart, each with its reason, as the
|
|
4152
4399
|
// circuit writes them at the ticket; empty without one.
|
|
4153
4400
|
const ecartsDe = fiche =>
|
|
@@ -4217,12 +4464,12 @@ async function lePlan(ctx) {
|
|
|
4217
4464
|
ecrireLePlan(
|
|
4218
4465
|
ctx,
|
|
4219
4466
|
plan.paquets.map(ctx.resoudre),
|
|
4220
|
-
decrireLePlan(t.description, plan.criteres, plan.questions)
|
|
4467
|
+
decrireLePlan(t.description, plan.criteres, plan.questions, sorteEcrite(plan))
|
|
4221
4468
|
);
|
|
4222
4469
|
const ouvertesDuPlan = plan.questions.length ? `\n${lignesOuvertes(plan.questions)}` : 'aucune';
|
|
4223
4470
|
dire(
|
|
4224
4471
|
'plan',
|
|
4225
|
-
`l'explorateur écrit le plan — paquets : ${plan.paquets.join(', ')}${ecartsDe(plan)} ; ${plan.criteres.length} critère(s) ajouté(s) ; questions ouvertes : ${ouvertesDuPlan}`
|
|
4472
|
+
`l'explorateur écrit le plan — paquets : ${plan.paquets.join(', ')}${ecartsDe(plan)} ; sorte : ${texteDeLaSorte(sorteDuPlan(plan))} ; ${plan.criteres.length} critère(s) ajouté(s) ; questions ouvertes : ${ouvertesDuPlan}`
|
|
4226
4473
|
);
|
|
4227
4474
|
const ecrit = leTicket(ctx);
|
|
4228
4475
|
const lu = await session(
|
|
@@ -4259,6 +4506,8 @@ async function lePlan(ctx) {
|
|
|
4259
4506
|
: `le plan — Les questions du questionneur :\n${lignesDesQuestions(lu.questions)}`
|
|
4260
4507
|
);
|
|
4261
4508
|
let reponses = [];
|
|
4509
|
+
// The plan the answer answers, whose sort the answer keeps when it says none.
|
|
4510
|
+
const premier = plan;
|
|
4262
4511
|
if (posees.length) {
|
|
4263
4512
|
plan = await session(
|
|
4264
4513
|
EXPLORATEUR,
|
|
@@ -4273,6 +4522,8 @@ async function lePlan(ctx) {
|
|
|
4273
4522
|
{
|
|
4274
4523
|
...explorateur,
|
|
4275
4524
|
premiere: 'reprend',
|
|
4525
|
+
// The answer, apart from the plan it answers (`ficheDeLaSorte`).
|
|
4526
|
+
avec: { reponse: true },
|
|
4276
4527
|
// A line of `reponses` by question put, asked again once; after it, a question without
|
|
4277
4528
|
// its line stays open.
|
|
4278
4529
|
valider: (f, essai) =>
|
|
@@ -4297,7 +4548,12 @@ async function lePlan(ctx) {
|
|
|
4297
4548
|
ecrireLePlan(
|
|
4298
4549
|
ctx,
|
|
4299
4550
|
plan.paquets.map(ctx.resoudre),
|
|
4300
|
-
decrireLePlan(
|
|
4551
|
+
decrireLePlan(
|
|
4552
|
+
t.description,
|
|
4553
|
+
plan.criteres,
|
|
4554
|
+
ouvertes,
|
|
4555
|
+
sorteEcrite(ficheDeLaSorte([{ fiche: premier }, { fiche: plan, reponse: true }]))
|
|
4556
|
+
)
|
|
4301
4557
|
);
|
|
4302
4558
|
}
|
|
4303
4559
|
const empreinte = empreinteDuPlan(leTicket(ctx));
|
|
@@ -4544,11 +4800,19 @@ export async function main(argv) {
|
|
|
4544
4800
|
const lancement = outilsAuLancement(ctx.racine);
|
|
4545
4801
|
if (lancement.arret) return aLaFin(ctx, monter(ctx, { ...lancement.arret, etat: d }));
|
|
4546
4802
|
ctx.outils = lancement.outils;
|
|
4803
|
+
// The generated files the project declares: references of the circuit, which 4.2 regenerates
|
|
4804
|
+
// only when a red of a pass lies in their files (`referencesDesRouges`); the integration
|
|
4805
|
+
// regenerates them whenever the lot touches their files or what they read.
|
|
4806
|
+
const engendres = engendresAuLancement(ctx.racine);
|
|
4807
|
+
if (engendres.arret) return aLaFin(ctx, monter(ctx, { ...engendres.arret, etat: d }));
|
|
4808
|
+
ctx.engendres = engendres.engendres;
|
|
4547
4809
|
// From the testwriter: the plan, which the explorateur writes and the questionneur reads once.
|
|
4548
4810
|
if (d.etape === TESTS) {
|
|
4549
4811
|
const arret = await lePlan(ctx);
|
|
4550
4812
|
if (arret !== null) return aLaFin(ctx, arret);
|
|
4551
4813
|
}
|
|
4814
|
+
// The sort of the ticket its plan says, which the run reads at each step.
|
|
4815
|
+
ctx.sorte = sorteDuTicket(ctx);
|
|
4552
4816
|
return aLaFin(ctx, await conduire(ctx, d));
|
|
4553
4817
|
} catch (e) {
|
|
4554
4818
|
if (!(e instanceof Usage)) throw e;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
// - The command is the subcommand <nom> of the module (`commandeDe` of ./sous-commandes.mjs), run
|
|
10
10
|
// by Node with its arguments then these, in the working directory, this process's standard
|
|
11
11
|
// streams; its exit code is this command's, 128 plus the number of a signal that ended it.
|
|
12
|
-
// - A project that declares no language (
|
|
13
|
-
// command <nom>, plays nothing: exit 0.
|
|
12
|
+
// - A project that declares no language (the column « Langage » of its docs/ARCHITECTURE.md),
|
|
13
|
+
// or whose module describes no command <nom>, plays nothing: exit 0.
|
|
14
14
|
// - A name of the core (`grillhouse <nom>`), or none, is refused, exit 2.
|
|
15
15
|
import { spawnSync } from 'node:child_process';
|
|
16
16
|
import { constants } from 'node:os';
|