@roomi-fields/grillhouse 0.53.0 → 0.54.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/cadre/templates/projet/docs/agents/issue-tracker.md +2 -2
- package/charte.md +12 -0
- package/dist/temporal/circuit/deroule.js +5 -9
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/installation.d.ts +15 -2
- package/dist/temporal/installation.js +69 -17
- package/dist/temporal/installation.js.map +1 -1
- package/docs/INTERFACE.md +21 -1
- package/docs/architecture/circuit.md +3 -3
- package/docs/architecture/entree.md +4 -4
- package/docs/architecture/greffon.md +19 -10
- package/docs/architecture/installation.md +11 -7
- package/docs/architecture/machine.md +1 -1
- package/docs/architecture/tests.md +1 -1
- package/hooks/register.tsx +50 -24
- package/package.json +1 -1
- package/scripts/aiguillage.mjs +4 -2
- package/scripts/bd-garde.mjs +69 -0
- package/scripts/ci-de-main.mjs +259 -56
- package/scripts/circuit.mjs +20 -5
- package/scripts/commandes-composees.mjs +1 -1
- package/scripts/droits.mjs +11 -4
- package/scripts/file-des-tickets.mjs +27 -9
- package/scripts/langages/c/commandes.mjs +1 -1
- package/scripts/langages/cargo/commandes.mjs +1 -1
- package/scripts/langages/cargo/tailles-des-tests.mjs +115 -6
- package/scripts/langages/python/commandes.mjs +1 -1
- package/scripts/langages/typescript/code-mort.mjs +36 -3
- package/scripts/langages/typescript/migrations/configurations-en-commonjs.mjs +95 -24
- package/scripts/langages/typescript/mise-a-jour.mjs +49 -12
- package/scripts/langages/typescript/parcours.mjs +5 -1
- package/scripts/langages.d.mts +6 -0
- package/scripts/langages.mjs +6 -0
- package/scripts/lire.mjs +236 -0
- package/scripts/migrations/cout-des-jetons-au-registre.mjs +136 -0
- package/scripts/migrations/lire-un-ticket.mjs +46 -0
- package/scripts/migrations.mjs +4 -0
- package/scripts/montee.mjs +110 -46
- package/scripts/nuit.sh +21 -12
- package/scripts/registre.d.mts +7 -1
- package/scripts/registre.mjs +114 -102
- package/scripts/resultats.mjs +15 -5
- package/scripts/sous-commandes.mjs +1 -0
- package/scripts/suiveur.mjs +12 -4
- package/scripts/superviseur.mjs +28 -17
- package/scripts/tableau.mjs +527 -119
- package/scripts/tarifs.mjs +67 -0
- package/scripts/ticket-du-circuit.mjs +3 -4
- package/scripts/transitions.d.mts +0 -5
- package/scripts/transitions.mjs +3 -13
- package/scripts/verdict-de-la-nuit.mjs +2 -2
- package/skills/explorateur/SKILL.md +10 -5
- package/skills/mesure/SKILL.md +4 -3
- package/skills/pitmaster/SKILL.md +11 -2
- package/skills/pitmaster/references/erreurs.md +4 -2
- package/skills/pitmaster/references/tour.md +11 -4
- package/types/index.d.ts +3 -1
- package/scripts/base-des-workflows.mjs +0 -58
package/scripts/montee.mjs
CHANGED
|
@@ -11,16 +11,19 @@
|
|
|
11
11
|
// rest from the variable `GRILLHOUSE_MONTEE`.
|
|
12
12
|
// - The rest, up to five passes: the files the frame writes (scripts/grillhouse-maj.mjs), the
|
|
13
13
|
// machine's part once (the published tool, the plugins, the binaries, the units and workers, the
|
|
14
|
-
// schedule of the nights
|
|
14
|
+
// schedule of the nights; in the repository of the frame, the last two by the commands of the
|
|
15
|
+
// published tool), the verification of the sort « Montée » on the content of the commit
|
|
15
16
|
// alone; green, the commit, its tree kept as judged (scripts/arbres-juges.mjs), main advanced by
|
|
16
17
|
// fast-forward and pushed; main advanced meanwhile, the next pass writes everything again from
|
|
17
18
|
// its tip. Main advanced, the main tree installs its dependencies and the plugins the lot adds.
|
|
19
|
+
// - A montée in which a gesture failed ends its report, on the error output, by saying each such
|
|
20
|
+
// failure again, whole, with the command that plays the gesture again.
|
|
18
21
|
// - Exit code: 0; 1 for a failure, a refusal or a montée not entered; 75 for a verification to play
|
|
19
22
|
// again; 2 for the usage (scripts/grillhouse-maj.mjs).
|
|
20
23
|
import { spawnSync } from 'node:child_process';
|
|
21
24
|
import { existsSync, readFileSync, realpathSync } from 'node:fs';
|
|
22
25
|
import path from 'node:path';
|
|
23
|
-
import { installer, NOM_DU_PAQUET, versionDeLOutil } from './aiguillage.mjs';
|
|
26
|
+
import { dossierDeLOutil, installer, NOM_DU_PAQUET, versionDeLOutil } from './aiguillage.mjs';
|
|
24
27
|
import { garderLArbreJuge } from './arbres-juges.mjs';
|
|
25
28
|
import { installerBinaires } from './binaires.mjs';
|
|
26
29
|
import { poserCrochets } from './crochets.mjs';
|
|
@@ -138,16 +141,16 @@ function versionDeLaPointe(principal, pointe, sources) {
|
|
|
138
141
|
);
|
|
139
142
|
}
|
|
140
143
|
|
|
141
|
-
// npm in `dossier`, its output the command's
|
|
144
|
+
// npm in `dossier`, its output the command's: null when it succeeds, else the line of its failure,
|
|
145
|
+
// said.
|
|
142
146
|
function npm(dossier, args) {
|
|
143
147
|
const r = spawnSync('npm', args, { cwd: dossier, stdio: 'inherit' });
|
|
144
148
|
if (r.status === 0) {
|
|
145
|
-
return
|
|
149
|
+
return null;
|
|
146
150
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
return false;
|
|
151
|
+
const ligne = `⛔ \`npm ${args.join(' ')}\` dans ${dossier} échoue (${r.error?.message ?? `code ${r.status}`}).`;
|
|
152
|
+
signaler(ligne);
|
|
153
|
+
return ligne;
|
|
151
154
|
}
|
|
152
155
|
|
|
153
156
|
// The installation of a montée in its copy: the package at `version` when the tip does not hold it
|
|
@@ -157,7 +160,22 @@ function installerDansLaCopie({ copie, version, duCadre }) {
|
|
|
157
160
|
duCadre ||
|
|
158
161
|
(declareLePaquet(lireJson(path.join(copie, 'package.json'))) &&
|
|
159
162
|
versionVerrouillee(lireJson(path.join(copie, 'package-lock.json'))) === version);
|
|
160
|
-
return npm(copie, aJour ? ['install'] : ['install', '-D', `${NOM_DU_PAQUET}@${version}`]);
|
|
163
|
+
return !npm(copie, aJour ? ['install'] : ['install', '-D', `${NOM_DU_PAQUET}@${version}`]);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* A gesture that failed: the lines the montée said of it, and the line naming the command that
|
|
168
|
+
* plays it again.
|
|
169
|
+
* @typedef {{ lignes: string[], rejeu: string }} Echec
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
// The end of the report: each failure said again, whole, with its command; the exit code.
|
|
173
|
+
function redire(echecs) {
|
|
174
|
+
for (const { lignes, rejeu } of echecs) {
|
|
175
|
+
lignes.forEach(signaler);
|
|
176
|
+
signaler(rejeu);
|
|
177
|
+
}
|
|
178
|
+
return echecs.length > 0 ? 1 : 0;
|
|
161
179
|
}
|
|
162
180
|
|
|
163
181
|
// What the report says of a montée that did not enter main: its copy, the versions, the commands.
|
|
@@ -262,15 +280,31 @@ export function monter(voulue, deLaMaj, cwd = process.cwd()) {
|
|
|
262
280
|
nonEntree(montee, false);
|
|
263
281
|
return 1;
|
|
264
282
|
}
|
|
265
|
-
const echecs =
|
|
266
|
-
|
|
283
|
+
const echecs = [];
|
|
284
|
+
jouerLePoste(montee, echecs);
|
|
285
|
+
apresLAvance(montee, false, echecs);
|
|
267
286
|
retirerOuDire(montee);
|
|
268
|
-
return echecs
|
|
287
|
+
return redire(echecs);
|
|
269
288
|
}
|
|
270
289
|
|
|
271
|
-
//
|
|
272
|
-
|
|
273
|
-
|
|
290
|
+
// The package whose commands the machine's part runs: in the repository of the frame, the published
|
|
291
|
+
// tool of the version the copy writes, never the build of the workspace (installation.md §5.5);
|
|
292
|
+
// elsewhere the package that runs, installed in the copy.
|
|
293
|
+
function paquetDuPoste({ copie, version, duCadre }) {
|
|
294
|
+
if (!duCadre) {
|
|
295
|
+
return PAQUET;
|
|
296
|
+
}
|
|
297
|
+
const publiee = versionDeLOutil(copie) ?? version;
|
|
298
|
+
const paquet = path.join(dossierDeLOutil(publiee), 'node_modules', NOM_DU_PAQUET);
|
|
299
|
+
if (!existsSync(paquet)) {
|
|
300
|
+
throw new Error(`l'outil publié ${publiee} n'est pas installé.`);
|
|
301
|
+
}
|
|
302
|
+
return paquet;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// Runs a command of <paquet> in the main tree; the line of its failure, which names `geste`.
|
|
306
|
+
function duPoste(principal, geste, paquet, script, args) {
|
|
307
|
+
const r = spawnSync(process.execPath, [path.join(paquet, script), ...args], {
|
|
274
308
|
cwd: principal,
|
|
275
309
|
encoding: 'utf8',
|
|
276
310
|
});
|
|
@@ -283,9 +317,16 @@ function duPoste(principal, geste, script, args) {
|
|
|
283
317
|
];
|
|
284
318
|
}
|
|
285
319
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
320
|
+
/**
|
|
321
|
+
* The machine's part (installation.md §5.3), at the version and by the declarations the copy
|
|
322
|
+
* holds, with the paths and names of the main tree: the lines of failure, each said, and its
|
|
323
|
+
* failure added to `echoues`.
|
|
324
|
+
* @param {{ principal: string, copie: string, version: string, duCadre: boolean }} montee
|
|
325
|
+
* @param {Echec[]} [echoues]
|
|
326
|
+
* @returns {string[]}
|
|
327
|
+
*/
|
|
328
|
+
export function jouerLePoste(montee, echoues = []) {
|
|
329
|
+
const { principal, copie, version } = montee;
|
|
289
330
|
const echecs = [];
|
|
290
331
|
const essayer = (geste, jouer) => {
|
|
291
332
|
try {
|
|
@@ -315,24 +356,32 @@ function jouerLePoste({ principal, copie, version }) {
|
|
|
315
356
|
return r.lignes;
|
|
316
357
|
});
|
|
317
358
|
essayer('npx grillhouse temporal installer', () =>
|
|
318
|
-
duPoste(
|
|
319
|
-
'installer',
|
|
320
|
-
'--racine',
|
|
359
|
+
duPoste(
|
|
321
360
|
principal,
|
|
322
|
-
'
|
|
323
|
-
|
|
324
|
-
|
|
361
|
+
'npx grillhouse temporal installer',
|
|
362
|
+
paquetDuPoste(montee),
|
|
363
|
+
'dist/temporal/commande.js',
|
|
364
|
+
['installer', '--racine', principal, '--declarations', copie]
|
|
365
|
+
)
|
|
325
366
|
);
|
|
326
367
|
essayer('npx grillhouse nuit --planifier', () =>
|
|
327
|
-
duPoste(
|
|
328
|
-
|
|
329
|
-
|
|
368
|
+
duPoste(
|
|
369
|
+
principal,
|
|
370
|
+
'npx grillhouse nuit --planifier',
|
|
371
|
+
paquetDuPoste(montee),
|
|
372
|
+
'dist/temporal/nuits/commande.js',
|
|
373
|
+
['--planifier']
|
|
374
|
+
)
|
|
330
375
|
);
|
|
331
376
|
echecs.forEach(signaler);
|
|
332
377
|
if (echecs.length > 0) {
|
|
333
378
|
signaler(
|
|
334
379
|
`Part du poste en échec : \`npx grillhouse maj ${version}\` la rejoue, \`npx grillhouse maj\` revient à la version du projet.`
|
|
335
380
|
);
|
|
381
|
+
echoues.push({
|
|
382
|
+
lignes: echecs,
|
|
383
|
+
rejeu: `Part du poste en échec : \`npx grillhouse maj ${version}\` la rejoue.`,
|
|
384
|
+
});
|
|
336
385
|
}
|
|
337
386
|
return echecs;
|
|
338
387
|
}
|
|
@@ -352,19 +401,26 @@ function perime(principal) {
|
|
|
352
401
|
}
|
|
353
402
|
|
|
354
403
|
// What follows the advance of main (`avance`) in the main tree: its dependencies, then the plugins
|
|
355
|
-
// it declares;
|
|
356
|
-
function apresLAvance({ principal, version }, avance) {
|
|
357
|
-
const
|
|
358
|
-
if (
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
404
|
+
// it declares; their failures, each line said, added to `echoues`.
|
|
405
|
+
function apresLAvance({ principal, version }, avance, echoues) {
|
|
406
|
+
const deNpm = (avance || perime(principal)) && npm(principal, ['install']);
|
|
407
|
+
if (deNpm) {
|
|
408
|
+
const reste = `Arbre principal : \`npm install\` reste à jouer ; \`npx grillhouse maj ${version}\` le rejoue.`;
|
|
409
|
+
signaler(reste);
|
|
410
|
+
echoues.push({
|
|
411
|
+
lignes: [deNpm, reste],
|
|
412
|
+
rejeu: `\`npx grillhouse maj ${version}\` rejoue \`npm install\` dans l'arbre principal.`,
|
|
413
|
+
});
|
|
363
414
|
}
|
|
364
415
|
poserCrochets(principal);
|
|
365
416
|
const greffons = installerGreffons(principal, { version });
|
|
366
417
|
greffons.forEach(signaler);
|
|
367
|
-
|
|
418
|
+
if (greffons.length > 0) {
|
|
419
|
+
echoues.push({
|
|
420
|
+
lignes: greffons,
|
|
421
|
+
rejeu: `Greffons en échec : \`npx grillhouse greffons\` les rejoue dans ${principal}.`,
|
|
422
|
+
});
|
|
423
|
+
}
|
|
368
424
|
}
|
|
369
425
|
|
|
370
426
|
// Removes the copy, or says why it stays.
|
|
@@ -403,7 +459,8 @@ function avancer({ principal, branche }, base, commit, fichiers) {
|
|
|
403
459
|
export function suivre(montee, { ecrireLeProjet, verifier }) {
|
|
404
460
|
const { principal, branche, copie, version, duCadre } = montee;
|
|
405
461
|
let { pointe } = montee;
|
|
406
|
-
|
|
462
|
+
const echecs = [];
|
|
463
|
+
let posteJoue = false;
|
|
407
464
|
let entree = false;
|
|
408
465
|
// Lays back what was set aside, says the montée did not enter, and gives the exit code.
|
|
409
466
|
const arreter = (cause, code = 1) => {
|
|
@@ -415,8 +472,9 @@ export function suivre(montee, { ecrireLeProjet, verifier }) {
|
|
|
415
472
|
signaler(`Le changement d'un autre reste tel quel dans la copie : ${enConflit.join(', ')}.`);
|
|
416
473
|
}
|
|
417
474
|
if (!entree) {
|
|
418
|
-
nonEntree({ ...montee, pointe },
|
|
475
|
+
nonEntree({ ...montee, pointe }, posteJoue);
|
|
419
476
|
}
|
|
477
|
+
redire(echecs);
|
|
420
478
|
return code;
|
|
421
479
|
};
|
|
422
480
|
try {
|
|
@@ -439,7 +497,10 @@ export function suivre(montee, { ecrireLeProjet, verifier }) {
|
|
|
439
497
|
});
|
|
440
498
|
const fichiers = fichiersEcrits(copie);
|
|
441
499
|
garderLEtat(copie, version, fichiers);
|
|
442
|
-
|
|
500
|
+
if (!posteJoue) {
|
|
501
|
+
jouerLePoste(montee, echecs);
|
|
502
|
+
posteJoue = true;
|
|
503
|
+
}
|
|
443
504
|
const enConflit = conflits(copie, version);
|
|
444
505
|
if (aFaire || enConflit.length > 0) {
|
|
445
506
|
const v = aFaire
|
|
@@ -452,9 +513,9 @@ export function suivre(montee, { ecrireLeProjet, verifier }) {
|
|
|
452
513
|
if (fichiers.length === 0) {
|
|
453
514
|
dire(`Montée ${version} : rien à commiter, le projet est à jour ; aucun commit.`);
|
|
454
515
|
restaurer(copie, version);
|
|
455
|
-
|
|
516
|
+
apresLAvance(montee, false, echecs);
|
|
456
517
|
retirerOuDire(montee);
|
|
457
|
-
return echecs
|
|
518
|
+
return redire(echecs);
|
|
458
519
|
}
|
|
459
520
|
const arbre = arbreDe(copie, pointe, fichiers);
|
|
460
521
|
const v = verifier(copie, { fichiersAFinir: false, installer: false, sansVerifier });
|
|
@@ -495,18 +556,21 @@ export function suivre(montee, { ecrireLeProjet, verifier }) {
|
|
|
495
556
|
dire(
|
|
496
557
|
`Commit ${commit.slice(0, 7)} « Montée du cadre à ${version} » : ${fichiers.join(', ')} ; ${branche} avancée.`
|
|
497
558
|
);
|
|
498
|
-
const apres = [];
|
|
499
559
|
if (resultatDeGit(principal, ['remote', 'get-url', 'origin']).status === 0) {
|
|
500
560
|
const p = resultatDeGit(principal, ['push', '-q', 'origin', branche]);
|
|
501
561
|
if (p.status !== 0) {
|
|
502
|
-
|
|
503
|
-
signaler(
|
|
562
|
+
const ligne = `⛔ \`git push origin ${branche}\` échoue : ${p.stderr.trim()}`;
|
|
563
|
+
signaler(ligne);
|
|
564
|
+
echecs.push({
|
|
565
|
+
lignes: [ligne],
|
|
566
|
+
rejeu: `Poussée en échec : \`git push origin ${branche}\` la rejoue dans ${principal}.`,
|
|
567
|
+
});
|
|
504
568
|
}
|
|
505
569
|
}
|
|
506
|
-
|
|
570
|
+
apresLAvance(montee, true, echecs);
|
|
507
571
|
restaurer(copie, version);
|
|
508
572
|
retirerOuDire(montee);
|
|
509
|
-
return echecs
|
|
573
|
+
return redire(echecs);
|
|
510
574
|
}
|
|
511
575
|
return arreter(
|
|
512
576
|
`⛔ main a avancé à chacune des ${PASSES_MAX} passes : la montée s'arrête sans avancer main.`
|
package/scripts/nuit.sh
CHANGED
|
@@ -44,9 +44,10 @@
|
|
|
44
44
|
# path, whatever the environment of the night's launcher; a faulty key turns the night red, the
|
|
45
45
|
# log naming it, and nothing runs.
|
|
46
46
|
# - TEMPORAL: after the tools of the project, before any command, the night lays the pinned program of
|
|
47
|
-
# Temporal down (`grillhouse temporal installer --programme-seul`, by the
|
|
48
|
-
# version playing the night,
|
|
49
|
-
#
|
|
47
|
+
# Temporal down (`grillhouse temporal installer --programme-seul`, by the command of the
|
|
48
|
+
# version playing the night, in the frame's repository the published version the key
|
|
49
|
+
# grillhouse.outil names, never the copy's code: the copy has no build yet; idempotent: a
|
|
50
|
+
# program already laid down is not downloaded again) and exports its path as TEMPORAL, over any key left
|
|
50
51
|
# in a package.json. A laying that fails does not stop the night: the log names it, TEMPORAL
|
|
51
52
|
# stays unset, and a test that starts a server resolves the program from the shared cache
|
|
52
53
|
# (~/.cache/grillhouse/temporal/<version>/temporal), or fails on itself naming the command that
|
|
@@ -119,7 +120,10 @@
|
|
|
119
120
|
# among them), else the full pass by its command, the night tests, the project's
|
|
120
121
|
# night script by its command, or the preparation when the night is red before any step. Each
|
|
121
122
|
# red task comments the open ticket labelled `nuit` whose title names it (« <task> »), once per
|
|
122
|
-
# ticket, or opens its own, « La nuit est rouge sur « <task> » depuis la nuit du <date> ».
|
|
123
|
+
# ticket, or opens its own, « La nuit est rouge sur « <task> » depuis la nuit du <date> ». Its
|
|
124
|
+
# title, « number — subject — components », is one the departure of a circuit reads, so that
|
|
125
|
+
# the ticket launches itself; fixes may be created under it. Its components are those of a defect
|
|
126
|
+
# of the CI of main (scripts/ci-de-main.mjs), over the lots entered since the last green. The
|
|
123
127
|
# text, the same for each, gives the commits since the last green, where `git bisect` looks for
|
|
124
128
|
# the culprit, each red step and each red task, with or without a last green, then the end of
|
|
125
129
|
# the log. With a last green, each red task of the full pass that comes with its command gets the
|
|
@@ -333,8 +337,9 @@ jouer() {
|
|
|
333
337
|
fi
|
|
334
338
|
eval "$outils"
|
|
335
339
|
# The pinned program of Temporal, laid down and exported for every command. The command is that
|
|
336
|
-
# of the version playing the night (already built
|
|
337
|
-
#
|
|
340
|
+
# of the version playing the night (already built; in the frame's repository the published one,
|
|
341
|
+
# installation.md §5.5), not the copy's code: the copy is cleaned of its build and has no
|
|
342
|
+
# node_modules before the `npm ci` below.
|
|
338
343
|
local temporal
|
|
339
344
|
if temporal=$(env -C "$copie" node "$ici/../bin/grillhouse.mjs" temporal installer --programme-seul); then
|
|
340
345
|
export TEMPORAL="$temporal"
|
|
@@ -481,8 +486,9 @@ fi
|
|
|
481
486
|
ouverts=
|
|
482
487
|
commentes=" "
|
|
483
488
|
# Reports one cause: comments the open night ticket whose title names it (once a night), or opens
|
|
484
|
-
# its own (title « number — subject —
|
|
485
|
-
# prefix as `prefixe` reads it in `.beads/config.yaml`, the subject naming « <cause>
|
|
489
|
+
# its own (title « number — subject — components », the number being the id without the project's
|
|
490
|
+
# prefix as `prefixe` reads it in `.beads/config.yaml`, the subject naming « <cause> », the
|
|
491
|
+
# components those of `composants`; without a prefix, « subject — components »); its id goes to
|
|
486
492
|
# `numero`.
|
|
487
493
|
signaler() {
|
|
488
494
|
local cause="$1" sujet="$2" texte="$3" ouvert neuf= prefixe
|
|
@@ -496,9 +502,9 @@ signaler() {
|
|
|
496
502
|
commentes="$commentes$ouvert " ;;
|
|
497
503
|
esac
|
|
498
504
|
else
|
|
499
|
-
neuf="$(cd "$racine" && bd create "$sujet" -t bug -p 1 -l nuit -d "$texte" --silent)"
|
|
505
|
+
neuf="$(cd "$racine" && bd create "$sujet — $composants" -t bug -p 1 -l nuit -d "$texte" --silent)"
|
|
500
506
|
if prefixe="$(node "$ici/prefixe-des-tickets.mjs" "$racine" 2>&1)"; then
|
|
501
|
-
[ -n "$neuf" ] && (cd "$racine" && bd update "$neuf" --title "${neuf#"$prefixe"-} — $sujet —
|
|
507
|
+
[ -n "$neuf" ] && (cd "$racine" && bd update "$neuf" --title "${neuf#"$prefixe"-} — $sujet — $composants" >/dev/null)
|
|
502
508
|
else
|
|
503
509
|
echo "⛔ ${prefixe}" >> "$journal"
|
|
504
510
|
fi
|
|
@@ -543,8 +549,11 @@ $liste
|
|
|
543
549
|
Journal : $journal
|
|
544
550
|
Fin du journal :
|
|
545
551
|
$(tail -40 "$journal")"
|
|
546
|
-
#
|
|
547
|
-
|
|
552
|
+
# The components of a ticket the night opens: those of the lots entered since its last green.
|
|
553
|
+
composants="$(node "$ici/ci-de-main.mjs" composants "$racine" "$vert" "$tete" 2>> "$journal")"
|
|
554
|
+
[ -n "$composants" ] || composants=.
|
|
555
|
+
# Each red task reports on the night ticket that names it, else on its own: a defect ticket that
|
|
556
|
+
# launches itself, under which its fixes may be created.
|
|
548
557
|
for tache in "${taches[@]}"; do
|
|
549
558
|
signaler "$tache" "La nuit est rouge sur « $tache » depuis la nuit du $(date +%Y-%m-%d)" "$texte"
|
|
550
559
|
echo "✗ rouge : ticket ${numero:-neuf} (étiquette nuit) sur « $tache »." >> "$journal"
|
package/scripts/registre.d.mts
CHANGED
|
@@ -20,6 +20,8 @@ export interface Tarif {
|
|
|
20
20
|
lecture: number;
|
|
21
21
|
ecriture5m: number;
|
|
22
22
|
ecriture1h: number;
|
|
23
|
+
/** The upper tier, of a request of more than `au` input tokens, cache included. */
|
|
24
|
+
palier?: Omit<Tarif, 'palier'> & { au: number };
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
/** A line of the register. */
|
|
@@ -60,7 +62,6 @@ export function ligne(
|
|
|
60
62
|
tours: [number, number][];
|
|
61
63
|
jetons: number;
|
|
62
64
|
cache: number;
|
|
63
|
-
cout?: number | null;
|
|
64
65
|
modeles?: Record<string, Partial<Tarif>>;
|
|
65
66
|
},
|
|
66
67
|
projet: string
|
|
@@ -86,5 +87,10 @@ export function aRattraper(
|
|
|
86
87
|
maintenant?: number
|
|
87
88
|
): EntreeDuCrochet[];
|
|
88
89
|
export function ecrire(l: LigneDuRegistre): boolean;
|
|
90
|
+
export function depenseJusqua(
|
|
91
|
+
lectures: ({ reponses: object[] } | undefined)[],
|
|
92
|
+
fin: number
|
|
93
|
+
): { jetons: number; cache: number; modeles: Record<string, object>; ecartee: boolean };
|
|
94
|
+
export function ecrireLaLigne(input: EntreeDuCrochet, projet: string, home?: string): boolean;
|
|
89
95
|
export function transcriptionsDeLaCopie(copie: string, home: string): string;
|
|
90
96
|
export function deLaCopie(copie: string, home: string, connus: Set<string>): EntreeDuCrochet[];
|