@roomi-fields/grillhouse 0.30.0 → 0.32.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 +48 -0
- package/agents/developpeur.md +0 -1
- package/agents/explorateur.md +0 -1
- package/agents/questionneur.md +0 -1
- package/agents/testwriter.md +0 -1
- package/dist/temporal/circuit/client.d.ts +2 -2
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/commande.js +4 -4
- package/dist/temporal/circuit/commande.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +3 -3
- package/dist/temporal/circuit/contrat.js +8 -2
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +3 -3
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/commande.js +5 -6
- package/dist/temporal/commande.js.map +1 -1
- package/dist/temporal/installation.d.ts +3 -6
- package/dist/temporal/installation.js +19 -38
- package/dist/temporal/installation.js.map +1 -1
- package/dist/temporal/tickets/activites.d.ts +1 -0
- package/dist/temporal/tickets/activites.js +5 -0
- package/dist/temporal/tickets/activites.js.map +1 -1
- package/dist/temporal/tickets/contrat.d.ts +10 -0
- package/dist/temporal/tickets/deroule.js +8 -1
- package/dist/temporal/tickets/deroule.js.map +1 -1
- package/docs/ARCHITECTURE.md +119 -27
- package/docs/CADRE.md +20 -0
- package/docs/INTERFACE.md +17 -4
- package/hooks/hooks.json +4 -0
- package/package.json +2 -2
- package/scripts/activites.mjs +155 -84
- package/scripts/aiguillage.mjs +35 -11
- package/scripts/attente-au-tour.mjs +99 -0
- package/scripts/avancement.mjs +27 -10
- package/scripts/base-des-workflows.mjs +57 -0
- package/scripts/bilan.mjs +101 -25
- package/scripts/cadre.mjs +5 -2
- package/scripts/circuit.mjs +173 -58
- package/scripts/composants-affectes.mjs +64 -21
- package/scripts/composition-des-langages.mjs +5 -3
- package/scripts/conformite.mjs +54 -19
- package/scripts/copies-finies.mjs +8 -1
- package/scripts/dependances-internes.mjs +9 -3
- package/scripts/dernier-vert.mjs +84 -23
- package/scripts/dette.mjs +32 -11
- package/scripts/donnees-cles.mjs +24 -8
- package/scripts/droits.mjs +40 -15
- package/scripts/effets.mjs +9 -0
- package/scripts/empreinte-d-etape.mjs +17 -0
- package/scripts/engendres.mjs +15 -5
- package/scripts/enveloppe/enveloppe.mjs +141 -48
- package/scripts/enveloppe/travail-de-la-copie.mjs +36 -12
- package/scripts/etapes.mjs +1 -1
- package/scripts/faits-du-circuit.mjs +1 -1
- package/scripts/flux-des-paquets.mjs +21 -7
- package/scripts/gardes-du-cadre.mjs +9 -3
- package/scripts/init.mjs +11 -4
- package/scripts/integration/file.mjs +84 -29
- package/scripts/integration/integrer.mjs +70 -24
- package/scripts/integration/rejeu.mjs +26 -9
- package/scripts/jointure.d.ts +10 -1
- package/scripts/journal-des-etats.d.mts +41 -0
- package/scripts/journal-des-etats.mjs +273 -0
- package/scripts/journal.mjs +119 -0
- package/scripts/langages/cargo/commandes.mjs +97 -18
- package/scripts/langages/cargo/composants.mjs +24 -8
- package/scripts/langages/cargo/index.mjs +7 -0
- package/scripts/langages/cargo/tests-de-head.mjs +25 -9
- package/scripts/langages/python/commandes.mjs +3 -1
- package/scripts/langages/python/index.mjs +6 -0
- package/scripts/langages/typescript/chemins-des-tests.mjs +6 -2
- package/scripts/langages/typescript/composants.mjs +9 -3
- package/scripts/langages/typescript/consommateurs-arbitres.mjs +40 -14
- package/scripts/langages/typescript/consommateurs.mjs +39 -14
- package/scripts/langages/typescript/elements-du-lot.mjs +36 -12
- package/scripts/langages/typescript/frontieres.mjs +112 -22
- package/scripts/langages/typescript/index-interfaces.mjs +36 -13
- package/scripts/langages/typescript/index.mjs +12 -3
- package/scripts/langages/typescript/interfaces-contre-code.mjs +109 -41
- package/scripts/langages/typescript/lecteurs.mjs +36 -11
- package/scripts/langages/typescript/migrations/0.23.0-config-vitest.mjs +15 -5
- package/scripts/langages/typescript/migrations/0.25.0-chemins-des-tests.mjs +6 -2
- package/scripts/langages/typescript/migrations/0.25.0-tailles-des-tests.mjs +6 -2
- package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +3 -1
- package/scripts/langages/typescript/parcours.mjs +12 -4
- package/scripts/langages/typescript/regle-des-tests.mjs +9 -3
- package/scripts/langages/typescript/resumes.mjs +9 -3
- package/scripts/langages/typescript/tailles-des-tests.mjs +58 -16
- package/scripts/langages/typescript/tests-de-nuit.mjs +3 -1
- package/scripts/langages/typescript/tests.mjs +24 -8
- package/scripts/langages/typescript/titres-de-tests.mjs +35 -12
- package/scripts/langages/typescript/turbo-des-paquets.mjs +152 -51
- package/scripts/langages/typescript/verdict.mjs +3 -1
- package/scripts/langages/typescript/verifier.mjs +61 -14
- package/scripts/langages/typescript/vitest-config/avancement.reporter.mjs +15 -5
- package/scripts/langages/typescript/vitest-config/base.mjs +10 -2
- package/scripts/langages/typescript/vitest-config/changements.mjs +21 -8
- package/scripts/langages/typescript/vitest-config/delais.mjs +9 -3
- package/scripts/langages/typescript/vitest-config/duree.classement.mjs +12 -4
- package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +17 -6
- package/scripts/langages/typescript/vitest-config/lances.mjs +83 -27
- package/scripts/langages/typescript/vitest-config/machine.setup.mjs +7 -0
- package/scripts/langages/typescript/vitest-config/resultats.mjs +3 -1
- package/scripts/langages.d.mts +20 -0
- package/scripts/lint-des-scripts.mjs +58 -0
- package/scripts/matiere-de-test.d.ts +11 -0
- package/scripts/mesure/base-de-passe.mjs +117 -25
- package/scripts/mesure/pression.mjs +9 -3
- package/scripts/migrations/0.23.0-charte-importee.mjs +6 -2
- package/scripts/migrations/0.23.0-crochets-de-seance.mjs +25 -8
- package/scripts/migrations/0.23.0-marche-du-projet.mjs +18 -6
- package/scripts/migrations/0.23.2-copies-du-cadre.mjs +48 -16
- package/scripts/migrations/0.24.12-tri-des-decouvertes.mjs +6 -2
- package/scripts/migrations/0.25.0-script-des-tests.mjs +15 -5
- package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +6 -2
- package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +7 -7
- package/scripts/nuit.sh +24 -0
- package/scripts/outil.mjs +3 -1
- package/scripts/outils-cles.mjs +18 -7
- package/scripts/paquet-npm.mjs +15 -5
- package/scripts/paquets.mjs +12 -4
- package/scripts/passe-de-la-machine.mjs +7 -2
- package/scripts/places-de-la-machine.mjs +72 -12
- package/scripts/preparation.mjs +15 -5
- package/scripts/registre.mjs +6 -2
- package/scripts/reprise.mjs +66 -0
- package/scripts/resultats.mjs +105 -37
- package/scripts/seances.mjs +22 -4
- package/scripts/services-du-noyau.mjs +1 -0
- package/scripts/sous-commandes.mjs +5 -1
- package/scripts/style-a-l-ecriture.mjs +48 -17
- package/scripts/superviseur.mjs +127 -75
- package/scripts/tableau.mjs +133 -10
- package/scripts/taches-du-graphe.mjs +33 -13
- package/scripts/ticket-du-circuit.mjs +40 -0
- package/scripts/transitions.mjs +159 -29
- package/scripts/verrou-de-fichier.mjs +6 -2
- package/scripts/verrou-de-machine.mjs +123 -39
- package/scripts/verrous/commande.mjs +50 -17
- package/scripts/verrous/ticket-du-sous-agent.mjs +9 -3
- package/scripts/verrous/verrou.mjs +42 -14
- package/skills/developpeur/SKILL.md +1 -1
- package/skills/explorateur/SKILL.md +8 -2
- package/skills/grill/SKILL.md +3 -57
- package/skills/grill/references/paquets.md +60 -0
- package/skills/mesure/SKILL.md +3 -0
- package/skills/pitmaster/SKILL.md +16 -27
- package/skills/questionneur/SKILL.md +1 -1
- package/skills/relecteur/SKILL.md +2 -2
- package/skills/testwriter/SKILL.md +19 -7
- package/skills/release/SKILL.md +0 -134
- package/skills/release/scripts/update-version.cjs +0 -92
package/scripts/aiguillage.mjs
CHANGED
|
@@ -58,12 +58,14 @@ const PAQUET_QUI_TOURNE = path.resolve(import.meta.dirname, '..');
|
|
|
58
58
|
* results, the removal of a copy and the balance, even when the supervisor runs one by hand.
|
|
59
59
|
*/
|
|
60
60
|
export const REDIRIGEES = new Set([
|
|
61
|
+
'attente-au-tour',
|
|
61
62
|
'bilan',
|
|
62
63
|
'circuit',
|
|
63
64
|
'commande',
|
|
64
65
|
'droits',
|
|
65
66
|
'enveloppe',
|
|
66
67
|
'integrer',
|
|
68
|
+
'journal',
|
|
67
69
|
'lancer',
|
|
68
70
|
'ligne-etat',
|
|
69
71
|
'nuit',
|
|
@@ -148,7 +150,9 @@ export function versionDeLOutil(racine = process.cwd()) {
|
|
|
148
150
|
return null;
|
|
149
151
|
}
|
|
150
152
|
const v = pkg?.grillhouse?.outil;
|
|
151
|
-
if (v === undefined || v === null)
|
|
153
|
+
if (v === undefined || v === null) {
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
152
156
|
if (typeof v !== 'string' || !X_Y_Z.test(v)) {
|
|
153
157
|
throw new Error(`la clé ${CLE} vaut ${JSON.stringify(v)}, pas une version x.y.z.`);
|
|
154
158
|
}
|
|
@@ -167,12 +171,18 @@ export function aiguillage(
|
|
|
167
171
|
nom,
|
|
168
172
|
{ racine = process.cwd(), cache = cacheDesOutils(), paquet = PAQUET_QUI_TOURNE } = {}
|
|
169
173
|
) {
|
|
170
|
-
if (!REDIRIGEES.has(nom))
|
|
174
|
+
if (!REDIRIGEES.has(nom)) {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
171
177
|
const version = versionDeLOutil(racine);
|
|
172
|
-
if (version === null)
|
|
178
|
+
if (version === null) {
|
|
179
|
+
return null;
|
|
180
|
+
}
|
|
173
181
|
const dossier = dossierDeLOutil(version, cache);
|
|
174
182
|
const commande = commandeDans(dossier);
|
|
175
|
-
if (realpath(paquet) === realpath(path.resolve(path.dirname(commande), '..')))
|
|
183
|
+
if (realpath(paquet) === realpath(path.resolve(path.dirname(commande), '..'))) {
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
176
186
|
return { version, dossier, commande };
|
|
177
187
|
}
|
|
178
188
|
|
|
@@ -206,7 +216,9 @@ export function echecDeLOutil(racine = process.cwd(), { cache = cacheDesOutils()
|
|
|
206
216
|
} catch {
|
|
207
217
|
return null;
|
|
208
218
|
}
|
|
209
|
-
if (version === null)
|
|
219
|
+
if (version === null) {
|
|
220
|
+
return null;
|
|
221
|
+
}
|
|
210
222
|
const f = fichierDEchec(version, cache);
|
|
211
223
|
// A failure written after another launch installed the version: the version stands.
|
|
212
224
|
if (existsSync(commandeDans(dossierDeLOutil(version, cache)))) {
|
|
@@ -228,7 +240,9 @@ function balayer(cache) {
|
|
|
228
240
|
}
|
|
229
241
|
for (const e of entrees) {
|
|
230
242
|
const pid = Number(/\.installation-(\d+)$/.exec(e)?.[1]);
|
|
231
|
-
if (pid && !vivant(pid))
|
|
243
|
+
if (pid && !vivant(pid)) {
|
|
244
|
+
rmSync(path.join(cache, e), { recursive: true, force: true });
|
|
245
|
+
}
|
|
232
246
|
}
|
|
233
247
|
}
|
|
234
248
|
|
|
@@ -250,7 +264,9 @@ function npmInstall(npm, prefixe, specs) {
|
|
|
250
264
|
{ stdio: ['ignore', 2, 'pipe'], encoding: 'utf8' }
|
|
251
265
|
);
|
|
252
266
|
process.stderr.write(r.stderr ?? '');
|
|
253
|
-
if (r.status === 0)
|
|
267
|
+
if (r.status === 0) {
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
254
270
|
const ligne = String(r.stderr ?? '')
|
|
255
271
|
.trim()
|
|
256
272
|
.split('\n')
|
|
@@ -275,10 +291,14 @@ export function installer(
|
|
|
275
291
|
{ cache = cacheDesOutils(), npm = 'npm', retenue = RETENUE_MS } = {}
|
|
276
292
|
) {
|
|
277
293
|
const dossier = dossierDeLOutil(version, cache);
|
|
278
|
-
if (existsSync(commandeDans(dossier)))
|
|
294
|
+
if (existsSync(commandeDans(dossier))) {
|
|
295
|
+
return { dossier, installe: false };
|
|
296
|
+
}
|
|
279
297
|
const echec = fichierDEchec(version, cache);
|
|
280
298
|
const garde = lireLEchec(echec);
|
|
281
|
-
if (garde && Date.now() - Date.parse(garde.date) < retenue)
|
|
299
|
+
if (garde && Date.now() - Date.parse(garde.date) < retenue) {
|
|
300
|
+
throw new Error(garde.raison);
|
|
301
|
+
}
|
|
282
302
|
mkdirSync(cache, { recursive: true });
|
|
283
303
|
balayer(cache);
|
|
284
304
|
const chantier = `${dossier}.installation-${process.pid}`;
|
|
@@ -291,7 +311,9 @@ export function installer(
|
|
|
291
311
|
readFileSync(path.join(chantier, 'node_modules', NOM_DU_PAQUET, 'package.json'), 'utf8')
|
|
292
312
|
);
|
|
293
313
|
const pairs = Object.entries(pkg.peerDependencies ?? {}).map(([n, r]) => `${n}@${r}`);
|
|
294
|
-
if (pairs.length)
|
|
314
|
+
if (pairs.length) {
|
|
315
|
+
npmInstall(npm, chantier, pairs);
|
|
316
|
+
}
|
|
295
317
|
if (!existsSync(commandeDans(chantier))) {
|
|
296
318
|
throw new Error(`npm n'a pas posé la commande de ${NOM_DU_PAQUET}@${version}`);
|
|
297
319
|
}
|
|
@@ -305,7 +327,9 @@ export function installer(
|
|
|
305
327
|
renameSync(chantier, dossier);
|
|
306
328
|
} catch (e) {
|
|
307
329
|
// Another launch installed it meanwhile: its folder stands.
|
|
308
|
-
if (!existsSync(commandeDans(dossier)))
|
|
330
|
+
if (!existsSync(commandeDans(dossier))) {
|
|
331
|
+
throw e;
|
|
332
|
+
}
|
|
309
333
|
}
|
|
310
334
|
return { dossier, installe: true };
|
|
311
335
|
} finally {
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// The signal of the supervisor's turn: the hook UserPromptSubmit of the mod runs it at each turn
|
|
3
|
+
// of a session of supervision (`npx grillhouse attente-au-tour`), and what it writes reaches the
|
|
4
|
+
// session. A question of a circuit must never stay mute because the wait in the background died
|
|
5
|
+
// unseen, as a review requested on GitHub is named again until it is answered.
|
|
6
|
+
//
|
|
7
|
+
// - It names each circuit that waits for the supervisor (`questionsEnAttente`, the one source of
|
|
8
|
+
// the opening and of the wait), a circuit ended without its issue included: its ticket, its
|
|
9
|
+
// question, the command that answers it, then the wait to launch again.
|
|
10
|
+
// - A question already gone up to the wait is named again: the file of the stops gone up is not
|
|
11
|
+
// read.
|
|
12
|
+
// - A wait that lives says it all: its lock (`attente-des-questions.lock`) names a live process,
|
|
13
|
+
// and nothing is said. A lock whose process is dead counts as no wait.
|
|
14
|
+
// - Out of a git repository, in an agent's copy (a worktree) and in the session of a role that
|
|
15
|
+
// the circuit launches (BEADS_ACTOR set), nothing is said.
|
|
16
|
+
// Exit 0, whatever it finds.
|
|
17
|
+
import { spawnSync } from 'node:child_process';
|
|
18
|
+
import { readFileSync } from 'node:fs';
|
|
19
|
+
import path from 'node:path';
|
|
20
|
+
import { pathToFileURL } from 'node:url';
|
|
21
|
+
import { circuitsDuServeur } from './circuits-du-serveur.mjs';
|
|
22
|
+
import { vivant } from './mesure/base-de-passe.mjs';
|
|
23
|
+
import { questionsEnAttente, ticketsFermes, verrouDeLAttente } from './superviseur.mjs';
|
|
24
|
+
|
|
25
|
+
// The process that the lock of the wait of the repository at <racine> names; null without a lock.
|
|
26
|
+
function tenant(racine) {
|
|
27
|
+
try {
|
|
28
|
+
return Number(/^(\d+)/.exec(readFileSync(verrouDeLAttente(racine), 'utf8'))?.[1]) || null;
|
|
29
|
+
} catch {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* What the session of supervision in <dossier> reads at its turn: the circuits that wait for the
|
|
36
|
+
* supervisor, each with its ticket, its question and the command that answers it, then the wait to
|
|
37
|
+
* launch again; empty when a wait lives, when no circuit waits, or out of a session of supervision.
|
|
38
|
+
* @param {string} dossier the directory the session works in
|
|
39
|
+
* @param {{ env?: Record<string, string | undefined>,
|
|
40
|
+
* fermes?: (racine: string, ids: string[]) => Set<string>,
|
|
41
|
+
* circuitsDe?: (racine: string) => Promise<import('./circuits-du-serveur.mjs').CircuitDuServeur[]> }} options
|
|
42
|
+
* @returns {Promise<string>}
|
|
43
|
+
*/
|
|
44
|
+
export async function attenteAuTour(
|
|
45
|
+
dossier,
|
|
46
|
+
{ env = process.env, fermes = ticketsFermes, circuitsDe = circuitsDuServeur } = {}
|
|
47
|
+
) {
|
|
48
|
+
if (env.BEADS_ACTOR) {
|
|
49
|
+
return '';
|
|
50
|
+
}
|
|
51
|
+
const r = spawnSync(
|
|
52
|
+
'git',
|
|
53
|
+
['-C', dossier, 'rev-parse', '--path-format=absolute', '--git-dir', '--git-common-dir'],
|
|
54
|
+
{ encoding: 'utf8' }
|
|
55
|
+
);
|
|
56
|
+
if (r.status !== 0) {
|
|
57
|
+
return '';
|
|
58
|
+
}
|
|
59
|
+
const [dossierGit, commun] = r.stdout.trim().split('\n');
|
|
60
|
+
if (path.resolve(dossierGit) !== path.resolve(commun)) {
|
|
61
|
+
return '';
|
|
62
|
+
}
|
|
63
|
+
const racine = path.dirname(commun);
|
|
64
|
+
const vit = tenant(racine);
|
|
65
|
+
if (vit && vivant(vit)) {
|
|
66
|
+
return '';
|
|
67
|
+
}
|
|
68
|
+
let circuits;
|
|
69
|
+
try {
|
|
70
|
+
circuits = await circuitsDe(racine);
|
|
71
|
+
} catch {
|
|
72
|
+
return '';
|
|
73
|
+
}
|
|
74
|
+
const questions = questionsEnAttente(racine, circuits, { fermes });
|
|
75
|
+
if (!questions.length) {
|
|
76
|
+
return '';
|
|
77
|
+
}
|
|
78
|
+
return [
|
|
79
|
+
questions.length > 1
|
|
80
|
+
? '## Circuits en attente du superviseur'
|
|
81
|
+
: "## Circuit en attente du superviseur",
|
|
82
|
+
...questions.map(q =>
|
|
83
|
+
q.interrompu
|
|
84
|
+
? `- ${q.ticket} a fini sans son issue, à ${q.etape} : \`${q.commande}\`.`
|
|
85
|
+
: [
|
|
86
|
+
`- ${q.ticket}, à ${q.etape} : ${q.question.replace(/\n/g, '\n ')}`,
|
|
87
|
+
` La réponse : \`${q.commande}\`.`,
|
|
88
|
+
].join('\n')
|
|
89
|
+
),
|
|
90
|
+
"Aucune attente de fond ne vit : lance-la en arrière-plan (`run_in_background`) et surveille son flux (l'outil `Monitor`) : `npx grillhouse superviseur --attendre`.",
|
|
91
|
+
].join('\n');
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (import.meta.url === pathToFileURL(process.argv[1] ?? '').href) {
|
|
95
|
+
const texte = await attenteAuTour(process.cwd());
|
|
96
|
+
if (texte) {
|
|
97
|
+
process.stdout.write(`${texte}\n`);
|
|
98
|
+
}
|
|
99
|
+
}
|
package/scripts/avancement.mjs
CHANGED
|
@@ -105,7 +105,9 @@ export function ouvrirAvancement({ racine, genre = null, dans = tmpdir(), debut
|
|
|
105
105
|
* @param {{ racine: string, taches: { hash: string, cache: boolean }[] }} o
|
|
106
106
|
*/
|
|
107
107
|
export function inscrireLePlan(dossier, { racine, taches }) {
|
|
108
|
-
if (!dossier || !taches.length)
|
|
108
|
+
if (!dossier || !taches.length) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
109
111
|
const { taches: connues } = lireLesTotaux(racine);
|
|
110
112
|
try {
|
|
111
113
|
for (const t of taches.filter(x => x.cache)) {
|
|
@@ -133,11 +135,16 @@ function enregistrements(dossier) {
|
|
|
133
135
|
const sans = [];
|
|
134
136
|
for (const f of lister(path.join(dossier, TACHES))) {
|
|
135
137
|
const e = lireJson(path.join(dossier, TACHES, f));
|
|
136
|
-
if (!e || !Number.isFinite(e.faits) || !Number.isFinite(e.prevus))
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
if (!e || !Number.isFinite(e.faits) || !Number.isFinite(e.prevus)) {
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
if (!e.hash) {
|
|
142
|
+
sans.push(e);
|
|
143
|
+
} else {
|
|
139
144
|
const avant = parHash.get(e.hash);
|
|
140
|
-
if (!avant || (!e.cache && (avant.cache || e.a > avant.a)))
|
|
145
|
+
if (!avant || (!e.cache && (avant.cache || e.a > avant.a))) {
|
|
146
|
+
parHash.set(e.hash, e);
|
|
147
|
+
}
|
|
141
148
|
}
|
|
142
149
|
}
|
|
143
150
|
return [...parHash.values(), ...sans];
|
|
@@ -151,7 +158,9 @@ function enregistrements(dossier) {
|
|
|
151
158
|
*/
|
|
152
159
|
export function lireAvancement(dossier) {
|
|
153
160
|
const passe = lireJson(path.join(dossier, PASSE));
|
|
154
|
-
if (!passe)
|
|
161
|
+
if (!passe) {
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
155
164
|
const liste = enregistrements(dossier);
|
|
156
165
|
const faits = liste.reduce((s, e) => s + e.faits, 0);
|
|
157
166
|
const demarres = liste.reduce((s, e) => s + e.prevus, 0);
|
|
@@ -274,17 +283,25 @@ export function avecLAvancementDuTravail(travail, { racine, genre, garder = () =
|
|
|
274
283
|
*/
|
|
275
284
|
export function garderLeTotal(dossier) {
|
|
276
285
|
const passe = lireJson(path.join(dossier, PASSE));
|
|
277
|
-
if (!passe)
|
|
286
|
+
if (!passe) {
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
278
289
|
const t = totauxDe(passe.totaux ?? null);
|
|
279
|
-
if (!t.fichier)
|
|
290
|
+
if (!t.fichier) {
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
280
293
|
const liste = enregistrements(dossier);
|
|
281
|
-
if (passe.genre && liste.length)
|
|
294
|
+
if (passe.genre && liste.length) {
|
|
295
|
+
t.passes[passe.genre] = liste.reduce((s, e) => s + e.prevus, 0);
|
|
296
|
+
}
|
|
282
297
|
for (const e of liste.filter(x => x.hash && !x.cache)) {
|
|
283
298
|
delete t.taches[e.hash];
|
|
284
299
|
t.taches[e.hash] = e.prevus;
|
|
285
300
|
}
|
|
286
301
|
const cles = Object.keys(t.taches);
|
|
287
|
-
for (const c of cles.slice(0, Math.max(0, cles.length - TACHES_GARDEES)))
|
|
302
|
+
for (const c of cles.slice(0, Math.max(0, cles.length - TACHES_GARDEES))) {
|
|
303
|
+
delete t.taches[c];
|
|
304
|
+
}
|
|
288
305
|
try {
|
|
289
306
|
ecrireAtomique(t.fichier, { passes: t.passes, taches: t.taches });
|
|
290
307
|
} catch {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// The base of a pass in the workflows: a workflow that plays `verifier` gives it a base
|
|
2
|
+
// (`--base <commit>`, scripts/dernier-vert.mjs) for a push alone. A pull request, the call of the
|
|
3
|
+
// workflow by the release (workflow_call), the nightly schedule and any run without a push event play
|
|
4
|
+
// the complete pass, as `turbo --affected` takes its base (`TURBO_SCM_BASE`) from a push event.
|
|
5
|
+
//
|
|
6
|
+
// The control reads the text of each workflow of `.github/workflows`: a step that plays `verifier`
|
|
7
|
+
// with a base names, in its condition or in its own line, the event `push`, and, when it reads
|
|
8
|
+
// `github.event.before`, that this commit is not empty (the zeros of a first push are no base).
|
|
9
|
+
import { existsSync, readdirSync, readFileSync } from 'node:fs';
|
|
10
|
+
import path from 'node:path';
|
|
11
|
+
import { parse } from 'yaml';
|
|
12
|
+
|
|
13
|
+
const PUSH = /github\.event_name\s*==\s*'push'/;
|
|
14
|
+
const AVANT_NON_VIDE = /github\.event\.before\s*!=\s*''/;
|
|
15
|
+
|
|
16
|
+
// The faults of the base in the workflow of text <texte>, one line each; none when no step gives
|
|
17
|
+
// a base, or when each step that does is conditioned on a push.
|
|
18
|
+
export function erreursDeBase(texte) {
|
|
19
|
+
let flux;
|
|
20
|
+
try {
|
|
21
|
+
flux = parse(texte);
|
|
22
|
+
} catch (e) {
|
|
23
|
+
return [`le workflow ne se lit pas : ${e.message}`];
|
|
24
|
+
}
|
|
25
|
+
const erreurs = [];
|
|
26
|
+
for (const [nomDuJob, job] of Object.entries(flux?.jobs ?? {})) {
|
|
27
|
+
for (const etape of job?.steps ?? []) {
|
|
28
|
+
const run = String(etape.run ?? '');
|
|
29
|
+
if (!/\bverifier\b/.test(run) || !/--base\b/.test(run)) {
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
const t = `${job.if ?? ''}\n${etape.if ?? ''}\n${run}`;
|
|
33
|
+
const nom = `${nomDuJob} : ${etape.name ?? run.trim()}`;
|
|
34
|
+
if (!PUSH.test(t)) {
|
|
35
|
+
erreurs.push(`${nom} : la base se donne pour un push seulement (github.event_name == 'push')`);
|
|
36
|
+
} else if (/github\.event\.before/.test(t) && !AVANT_NON_VIDE.test(t)) {
|
|
37
|
+
erreurs.push(`${nom} : la base github.event.before se donne non vide (!= '')`);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return erreurs;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// The faults of the base in each workflow of `.github/workflows` of the repository at <racine>,
|
|
45
|
+
// each line led by the file.
|
|
46
|
+
export function erreursDesWorkflows(racine) {
|
|
47
|
+
const dossier = path.join(racine, '.github', 'workflows');
|
|
48
|
+
if (!existsSync(dossier)) {
|
|
49
|
+
return [];
|
|
50
|
+
}
|
|
51
|
+
return readdirSync(dossier)
|
|
52
|
+
.filter(f => /\.ya?ml$/.test(f))
|
|
53
|
+
.sort()
|
|
54
|
+
.flatMap(f =>
|
|
55
|
+
erreursDeBase(readFileSync(path.join(dossier, f), 'utf8')).map(e => `${f} : ${e}`)
|
|
56
|
+
);
|
|
57
|
+
}
|
package/scripts/bilan.mjs
CHANGED
|
@@ -162,11 +162,15 @@ function nuits([d, f], nuit) {
|
|
|
162
162
|
const a = new Date(jour);
|
|
163
163
|
a.setHours(nuit.debut);
|
|
164
164
|
const b = new Date(jour);
|
|
165
|
-
if (nuit.fin < nuit.debut)
|
|
165
|
+
if (nuit.fin < nuit.debut) {
|
|
166
|
+
b.setDate(b.getDate() + 1);
|
|
167
|
+
}
|
|
166
168
|
b.setHours(nuit.fin);
|
|
167
169
|
const x = Math.max(a.getTime(), d);
|
|
168
170
|
const y = Math.min(b.getTime(), f);
|
|
169
|
-
if (y > x)
|
|
171
|
+
if (y > x) {
|
|
172
|
+
out.push([x, y]);
|
|
173
|
+
}
|
|
170
174
|
jour.setDate(jour.getDate() + 1);
|
|
171
175
|
}
|
|
172
176
|
return out;
|
|
@@ -201,7 +205,9 @@ function longueur(l) {
|
|
|
201
205
|
let total = 0;
|
|
202
206
|
let fin = -Infinity;
|
|
203
207
|
for (const [d, f] of [...l].sort((x, y) => x[0] - y[0])) {
|
|
204
|
-
if (f <= fin)
|
|
208
|
+
if (f <= fin) {
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
205
211
|
total += f - Math.max(d, fin);
|
|
206
212
|
fin = f;
|
|
207
213
|
}
|
|
@@ -232,9 +238,13 @@ export function bilan({
|
|
|
232
238
|
const derniere = new Map();
|
|
233
239
|
for (const x of lignes) {
|
|
234
240
|
const l = { ...x, role: roleDeLAgent(x.role) };
|
|
235
|
-
if (l.ticket !== ticket || (l.role !== CIRCUIT && !ROLES.has(l.role)))
|
|
241
|
+
if (l.ticket !== ticket || (l.role !== CIRCUIT && !ROLES.has(l.role))) {
|
|
242
|
+
continue;
|
|
243
|
+
}
|
|
236
244
|
const avant = derniere.get(l.agent);
|
|
237
|
-
if (!avant || Date.parse(l.fin) > Date.parse(avant.fin))
|
|
245
|
+
if (!avant || Date.parse(l.fin) > Date.parse(avant.fin)) {
|
|
246
|
+
derniere.set(l.agent, l);
|
|
247
|
+
}
|
|
238
248
|
}
|
|
239
249
|
const hors = [...derniere.values()].filter(l => l.role !== CIRCUIT && !lancees.has(l.agent));
|
|
240
250
|
const agents = [...derniere.values()].filter(l => !hors.includes(l));
|
|
@@ -281,13 +291,17 @@ export function bilan({
|
|
|
281
291
|
}
|
|
282
292
|
const etapes = segments.filter(s => s.role === CIRCUIT);
|
|
283
293
|
const preuves = etapes.filter(s => s.etape === 'preuve');
|
|
284
|
-
for (const p of preuves)
|
|
294
|
+
for (const p of preuves) {
|
|
295
|
+
p.preuve = p.entree?.resultat ?? null;
|
|
296
|
+
}
|
|
285
297
|
// A proof and the category it gives the testwriter before it: the lot unchanged since the proof
|
|
286
298
|
// before, or none.
|
|
287
299
|
const avantLa = p => preuves.findLast(x => x.f <= p.d);
|
|
288
300
|
const parLaPreuve = p => {
|
|
289
301
|
const avant = avantLa(p);
|
|
290
|
-
if (!p.preuve)
|
|
302
|
+
if (!p.preuve) {
|
|
303
|
+
return null;
|
|
304
|
+
}
|
|
291
305
|
if (avant?.preuve && signature(avant.preuve) === signature(p.preuve)) {
|
|
292
306
|
return avant.preuve.ok ? 'rejeu' : 'sansEffet';
|
|
293
307
|
}
|
|
@@ -301,13 +315,16 @@ export function bilan({
|
|
|
301
315
|
|
|
302
316
|
// The sessions first: the checks read what they delivered.
|
|
303
317
|
for (const s of segments.filter(x => x.role !== CIRCUIT)) {
|
|
304
|
-
if (s.role === QUESTIONNEUR)
|
|
305
|
-
|
|
318
|
+
if (s.role === QUESTIONNEUR) {
|
|
319
|
+
s.categorie = 'questionnement';
|
|
320
|
+
} else if (s.role === 'developpeur') {
|
|
306
321
|
s.categorie = inchangee(s) ? 'sansEffet' : 'travail';
|
|
307
322
|
} else if (s.role === 'testwriter') {
|
|
308
323
|
const p = preuves.find(x => x.d >= s.f - JEU);
|
|
309
324
|
s.categorie = p ? (parLaPreuve(p) ?? (p.preuve?.vide ? 'sansEffet' : 'travail')) : 'travail';
|
|
310
|
-
} else
|
|
325
|
+
} else {
|
|
326
|
+
s.categorie = 'travail';
|
|
327
|
+
}
|
|
311
328
|
}
|
|
312
329
|
// A session that changed the lot: the testwriter's or the developpeur's, that delivered.
|
|
313
330
|
const livre = s => AGENTS_DU_LOT.includes(s.role) && s.categorie === 'travail';
|
|
@@ -332,7 +349,9 @@ export function bilan({
|
|
|
332
349
|
: i === 'vert'
|
|
333
350
|
? 'rejeu'
|
|
334
351
|
: 'sansEffet';
|
|
335
|
-
} else
|
|
352
|
+
} else {
|
|
353
|
+
s.categorie = 'automatique';
|
|
354
|
+
}
|
|
336
355
|
}
|
|
337
356
|
|
|
338
357
|
// The waits: from each end of a run on a stop to the answer, the run after; the owner's when he
|
|
@@ -344,7 +363,9 @@ export function bilan({
|
|
|
344
363
|
const f = Math.min(tour, suivant, fin);
|
|
345
364
|
const ecrit = duResponsable.some(t => t > e.t && t <= f);
|
|
346
365
|
const qui = ecrit ? RESPONSABLE : SUPERVISEUR;
|
|
347
|
-
if (f > e.t)
|
|
366
|
+
if (f > e.t) {
|
|
367
|
+
lesAttentes.push({ i: [e.t, f], qui, nuit: nuits([e.t, f], nuit) });
|
|
368
|
+
}
|
|
348
369
|
}
|
|
349
370
|
const attentes = lesAttentes.map(a => a.i);
|
|
350
371
|
|
|
@@ -360,7 +381,9 @@ export function bilan({
|
|
|
360
381
|
const fenetre = s => [Math.max(s.d, debut), Math.min(s.f, fin)];
|
|
361
382
|
for (const s of segments) {
|
|
362
383
|
const [d, f] = fenetre(s);
|
|
363
|
-
if (f <= d)
|
|
384
|
+
if (f <= d) {
|
|
385
|
+
continue;
|
|
386
|
+
}
|
|
364
387
|
const ms = f - d - commun([d, f], attentes);
|
|
365
388
|
const c = categories[s.categorie];
|
|
366
389
|
c.ms += ms;
|
|
@@ -389,7 +412,9 @@ export function bilan({
|
|
|
389
412
|
const out = {};
|
|
390
413
|
for (const role of new Set(SUITE.flatMap(e => e.qui))) {
|
|
391
414
|
const n = l.filter(x => x.role === role).length;
|
|
392
|
-
if (n)
|
|
415
|
+
if (n) {
|
|
416
|
+
out[role] = n;
|
|
417
|
+
}
|
|
393
418
|
}
|
|
394
419
|
return out;
|
|
395
420
|
};
|
|
@@ -400,7 +425,9 @@ export function bilan({
|
|
|
400
425
|
parEtape[titre] = (parEtape[titre] ?? 0) + 1;
|
|
401
426
|
}
|
|
402
427
|
const arrets = {};
|
|
403
|
-
for (const e of duCircuit.filter(x => x.arret))
|
|
428
|
+
for (const e of duCircuit.filter(x => x.arret)) {
|
|
429
|
+
arrets[e.arret] = (arrets[e.arret] ?? 0) + 1;
|
|
430
|
+
}
|
|
404
431
|
// The ends of the questionings of the plan: the questions asked, the plans an answer changed, the
|
|
405
432
|
// questions left open.
|
|
406
433
|
const fins = duCircuit.map(e => e.questionnement).filter(Boolean);
|
|
@@ -422,6 +449,31 @@ export function bilan({
|
|
|
422
449
|
verdicts: finDuTri.verdicts ?? {},
|
|
423
450
|
}
|
|
424
451
|
: null;
|
|
452
|
+
// The time replayed after a red and the time read back without replaying, apart, by step
|
|
453
|
+
// (« passe-finale » for the checks once final): a step that plays again after a pass of its own
|
|
454
|
+
// that ended red adds its duration to the first; a step the circuit read back (the result
|
|
455
|
+
// `relue`) adds the duration of its last green, which the reading spared, to the second. A
|
|
456
|
+
// ticket without a red replays nothing.
|
|
457
|
+
const nomDeLEtape = (etape, finale) => (etape === 'controles' && finale ? 'passe-finale' : etape);
|
|
458
|
+
const reprise = { rejoue: { ms: 0, parEtape: {} }, relu: { ms: 0, parEtape: {} } };
|
|
459
|
+
const ajouter = (c, nom, ms) => {
|
|
460
|
+
c.ms += ms;
|
|
461
|
+
c.parEtape[nom] = (c.parEtape[nom] ?? 0) + ms;
|
|
462
|
+
};
|
|
463
|
+
for (const s of etapes) {
|
|
464
|
+
const memes = x => x.etape === s.etape && Boolean(x.finale) === Boolean(s.finale);
|
|
465
|
+
const avant = etapes.findLast(x => memes(x) && x.f <= s.d);
|
|
466
|
+
if (!avant?.entree || issue(avant.entree) === 'vert') {
|
|
467
|
+
continue;
|
|
468
|
+
}
|
|
469
|
+
const [d, f] = fenetre(s);
|
|
470
|
+
if (f > d) {
|
|
471
|
+
ajouter(reprise.rejoue, nomDeLEtape(s.etape, s.finale), f - d - commun([d, f], attentes));
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
for (const e of duCircuit.filter(x => x.relue)) {
|
|
475
|
+
ajouter(reprise.relu, nomDeLEtape(e.etape, e.finale), e.relue.ms ?? 0);
|
|
476
|
+
}
|
|
425
477
|
const somme = k => sessions.reduce((m, l) => m + (l[k] ?? 0), 0);
|
|
426
478
|
const perdu = CATEGORIES.filter(([k]) => !GARDE.has(k)).reduce(
|
|
427
479
|
(m, [k]) => m + categories[k].ms,
|
|
@@ -438,6 +490,7 @@ export function bilan({
|
|
|
438
490
|
perdu,
|
|
439
491
|
perduHorsAttentes: perdu - ATTENTES.reduce((m, k) => m + categories[k].ms, 0),
|
|
440
492
|
categories,
|
|
493
|
+
reprise,
|
|
441
494
|
seances: {
|
|
442
495
|
total: sessions.length,
|
|
443
496
|
parRole: parRoleDe(sessions),
|
|
@@ -459,8 +512,12 @@ export function bilan({
|
|
|
459
512
|
|
|
460
513
|
// Where the circuit of the state <etat> ended, in words.
|
|
461
514
|
function statutDe(etat) {
|
|
462
|
-
if (etat?.etape === 'integre')
|
|
463
|
-
|
|
515
|
+
if (etat?.etape === 'integre') {
|
|
516
|
+
return 'intégré';
|
|
517
|
+
}
|
|
518
|
+
if (etat?.raison) {
|
|
519
|
+
return `arrêt ${etat.raison}${etat.code !== null && etat.code !== undefined ? ` (${etat.code})` : ''}`;
|
|
520
|
+
}
|
|
464
521
|
return 'en cours';
|
|
465
522
|
}
|
|
466
523
|
|
|
@@ -519,7 +576,12 @@ export function texteDuBilan(b, avant) {
|
|
|
519
576
|
const base = avant
|
|
520
577
|
? `Face au bilan de ${avant.ticket}, recalculé : mur ${minutes(avant.mur)} → ${minutes(b.mur)} min, perte ${pourcent(avant.perdu, avant.mur)} → ${pourcent(b.perdu, b.mur)} %, séances ${avant.seances.total} → ${b.seances.total}, coût ${dollars(avant.cout)} → ${dollars(b.cout)} $.`
|
|
521
578
|
: "Aucun bilan d'avant dans ce projet : pas de base.";
|
|
522
|
-
|
|
579
|
+
const parEtape = c =>
|
|
580
|
+
Object.entries(c.parEtape)
|
|
581
|
+
.map(([nom, ms]) => `${nom} ${minutes(ms)} min`)
|
|
582
|
+
.join(', ');
|
|
583
|
+
const reprise = `Reprise après un rouge : ${minutes(b.reprise.rejoue.ms)} min rejouées${b.reprise.rejoue.ms ? ` (${parEtape(b.reprise.rejoue)})` : ''}, ${minutes(b.reprise.relu.ms)} min relues sans rejouer${b.reprise.relu.ms ? ` (${parEtape(b.reprise.relu)})` : ''}.`;
|
|
584
|
+
return [tete, ...lignes, ...tri, reprise, `Arrêts : ${arrets || 'aucun'}.`, base].join('\n');
|
|
523
585
|
}
|
|
524
586
|
|
|
525
587
|
const dossier = racine => path.join(racine, '.claude', 'worktrees');
|
|
@@ -537,11 +599,15 @@ export function garder(racine, b) {
|
|
|
537
599
|
export function bilansGardes(racine) {
|
|
538
600
|
const d = dossier(racine);
|
|
539
601
|
const out = {};
|
|
540
|
-
if (!existsSync(d))
|
|
602
|
+
if (!existsSync(d)) {
|
|
603
|
+
return out;
|
|
604
|
+
}
|
|
541
605
|
for (const n of readdirSync(d).filter(x => x.endsWith(SUFFIXE))) {
|
|
542
606
|
try {
|
|
543
607
|
const b = JSON.parse(readFileSync(path.join(d, n), 'utf8'));
|
|
544
|
-
if (b?.ticket)
|
|
608
|
+
if (b?.ticket) {
|
|
609
|
+
out[b.ticket] = b;
|
|
610
|
+
}
|
|
545
611
|
} catch {
|
|
546
612
|
// A torn bilan counts nothing.
|
|
547
613
|
}
|
|
@@ -558,7 +624,9 @@ export function precedent(racine, ticket) {
|
|
|
558
624
|
const avant = Object.values(bilansGardes(racine))
|
|
559
625
|
.filter(b => b.ticket !== ticket)
|
|
560
626
|
.sort((x, y) => Date.parse(y.calcule ?? 0) - Date.parse(x.calcule ?? 0))[0];
|
|
561
|
-
if (!avant)
|
|
627
|
+
if (!avant) {
|
|
628
|
+
return null;
|
|
629
|
+
}
|
|
562
630
|
const b = calculer(racine, avant.ticket, { responsable: false });
|
|
563
631
|
return b.mur > 0 ? b : null;
|
|
564
632
|
}
|
|
@@ -583,11 +651,15 @@ export function messagesDuResponsable(texte) {
|
|
|
583
651
|
const out = [];
|
|
584
652
|
for (const l of texte.split('\n')) {
|
|
585
653
|
// Only a line that names the person can be his message: the others are not parsed.
|
|
586
|
-
if (!l.includes('"human"'))
|
|
654
|
+
if (!l.includes('"human"')) {
|
|
655
|
+
continue;
|
|
656
|
+
}
|
|
587
657
|
try {
|
|
588
658
|
const e = JSON.parse(l);
|
|
589
659
|
const t = Date.parse(e.timestamp ?? '');
|
|
590
|
-
if (e.type === 'user' && e.origin?.kind === 'human' && !Number.isNaN(t))
|
|
660
|
+
if (e.type === 'user' && e.origin?.kind === 'human' && !Number.isNaN(t)) {
|
|
661
|
+
out.push(t);
|
|
662
|
+
}
|
|
591
663
|
} catch {
|
|
592
664
|
// A torn line holds no message.
|
|
593
665
|
}
|
|
@@ -608,7 +680,9 @@ function messagesDeLaSeance(seance) {
|
|
|
608
680
|
.map(d => path.join(projets, d, `${seance}.jsonl`))
|
|
609
681
|
.find(g => existsSync(g))
|
|
610
682
|
: null;
|
|
611
|
-
if (!f)
|
|
683
|
+
if (!f) {
|
|
684
|
+
return [];
|
|
685
|
+
}
|
|
612
686
|
const out = [];
|
|
613
687
|
const decodeur = new StringDecoder('utf8');
|
|
614
688
|
const tampon = Buffer.alloc(MORCEAU);
|
|
@@ -701,7 +775,9 @@ if (import.meta.url === pathToFileURL(process.argv[1] ?? '').href) {
|
|
|
701
775
|
void finSurLeServeur(racine, ticket).then(fin => {
|
|
702
776
|
const b = calculer(racine, ticket, fin);
|
|
703
777
|
process.stdout.write(`${texteDuBilan(b, precedent(racine, ticket))}\n`);
|
|
704
|
-
if (options.includes('--garder'))
|
|
778
|
+
if (options.includes('--garder')) {
|
|
779
|
+
garder(racine, b);
|
|
780
|
+
}
|
|
705
781
|
});
|
|
706
782
|
}
|
|
707
783
|
}
|
package/scripts/cadre.mjs
CHANGED
|
@@ -96,15 +96,18 @@ function empaqueter() {
|
|
|
96
96
|
);
|
|
97
97
|
for (const f of FICHIERS_DU_CADRE) {
|
|
98
98
|
const source = path.join(DEPOT, f);
|
|
99
|
-
if (!existsSync(source))
|
|
99
|
+
if (!existsSync(source)) {
|
|
100
|
+
throw new Error(`${f} manque au dépôt du cadre (${DEPOT})`);
|
|
101
|
+
}
|
|
100
102
|
cpSync(source, path.join(COPIE, f), { recursive: true });
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
|
|
104
106
|
// Removes the copies of the plugin and cadre/.
|
|
105
107
|
function nettoyer() {
|
|
106
|
-
for (const e of ELEMENTS_DU_GREFFON)
|
|
108
|
+
for (const e of ELEMENTS_DU_GREFFON) {
|
|
107
109
|
rmSync(path.join(PAQUET, e), { recursive: true, force: true });
|
|
110
|
+
}
|
|
108
111
|
rmSync(COPIE, { recursive: true, force: true });
|
|
109
112
|
}
|
|
110
113
|
|