@roomi-fields/grillhouse 0.47.1 → 0.49.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 +116 -0
- package/agents/direct.md +9 -0
- package/cadre/templates/projet/.github/workflows/ci.yml +24 -38
- package/cadre/templates/projet/.github/workflows/machine-vierge.yml +5 -0
- package/cadre/templates/projet/.github/workflows/nuit.yml +14 -2
- package/cadre/templates/projet/CLAUDE.md +31 -10
- package/cadre/templates/projet/docs/agents/issue-tracker.md +1 -1
- package/cadre/templates/turbo/paquets.json +3 -1
- package/cadre/templates/turbo/sans-paquets.json +3 -1
- package/charte.md +46 -13
- package/dist/temporal/circuit/appel.d.ts +4 -1
- package/dist/temporal/circuit/appel.js +15 -1
- package/dist/temporal/circuit/appel.js.map +1 -1
- package/dist/temporal/circuit/client.d.ts +7 -1
- package/dist/temporal/circuit/client.js +54 -1
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/commande.js +35 -60
- package/dist/temporal/circuit/commande.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +2 -1
- package/dist/temporal/circuit/contrat.js +2 -1
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +9 -2
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/commande.js +2 -13
- package/dist/temporal/commande.js.map +1 -1
- package/dist/temporal/deroules.d.ts +1 -1
- package/dist/temporal/deroules.js +2 -2
- package/dist/temporal/deroules.js.map +1 -1
- package/dist/temporal/file/activites.d.ts +1 -4
- package/dist/temporal/file/activites.js +13 -14
- package/dist/temporal/file/activites.js.map +1 -1
- package/dist/temporal/file/contrat.d.ts +34 -91
- package/dist/temporal/file/contrat.js +33 -5
- package/dist/temporal/file/contrat.js.map +1 -1
- package/dist/temporal/file/deroule.d.ts +1 -9
- package/dist/temporal/file/deroule.js +57 -166
- package/dist/temporal/file/deroule.js.map +1 -1
- package/dist/temporal/installation.d.ts +26 -1
- package/dist/temporal/installation.js +111 -2
- package/dist/temporal/installation.js.map +1 -1
- package/dist/temporal/nuits/activites.d.ts +5 -10
- package/dist/temporal/nuits/activites.js +9 -57
- package/dist/temporal/nuits/activites.js.map +1 -1
- package/dist/temporal/nuits/choix.d.ts +15 -0
- package/dist/temporal/nuits/choix.js +20 -0
- package/dist/temporal/nuits/choix.js.map +1 -1
- package/dist/temporal/nuits/contrat.d.ts +11 -16
- package/dist/temporal/nuits/deroule.js +38 -67
- package/dist/temporal/nuits/deroule.js.map +1 -1
- package/dist/temporal/places/client.d.ts +9 -11
- package/dist/temporal/places/client.js +11 -19
- package/dist/temporal/places/client.js.map +1 -1
- package/dist/temporal/places/contrat.d.ts +25 -24
- package/dist/temporal/places/contrat.js +5 -7
- package/dist/temporal/places/contrat.js.map +1 -1
- package/dist/temporal/places/deroule.js +26 -36
- package/dist/temporal/places/deroule.js.map +1 -1
- package/dist/temporal/tickets/activites.js +4 -2
- package/dist/temporal/tickets/activites.js.map +1 -1
- package/dist/temporal/tickets/contrat.d.ts +2 -1
- package/docs/ARCHITECTURE.md +453 -133
- package/docs/CADRE.md +16 -13
- package/docs/INTERFACE.md +100 -25
- package/hooks/hooks.json +9 -0
- package/hooks/register.tsx +59 -5
- package/package.json +1 -1
- package/scripts/activites.mjs +319 -52
- package/scripts/aiguillage.mjs +5 -1
- package/scripts/attente-a-l-arret.mjs +2 -5
- package/scripts/attente-au-tour.mjs +2 -5
- package/scripts/bilan.mjs +125 -2
- package/scripts/branche-de-nuit.mjs +32 -44
- package/scripts/ci-de-main.mjs +215 -16
- package/scripts/circuit.mjs +275 -189
- package/scripts/circuits-cles.d.mts +3 -3
- package/scripts/circuits-cles.mjs +6 -5
- package/scripts/coeurs-dedies.mjs +4 -4
- package/scripts/commandes-composees.mjs +12 -5
- package/scripts/composition-des-langages.mjs +2 -0
- package/scripts/crochets.mjs +2 -2
- package/scripts/dette.d.ts +2 -1
- package/scripts/dette.mjs +49 -6
- package/scripts/direct.mjs +343 -0
- package/scripts/droits.mjs +19 -0
- package/scripts/effets.mjs +6 -5
- package/scripts/engendres.mjs +2 -1
- package/scripts/enveloppe/enveloppe.mjs +127 -18
- package/scripts/enveloppe/lancer.sh +14 -3
- package/scripts/enveloppe/paquets-du-plan.mjs +9 -0
- package/scripts/enveloppe/travail-de-la-copie.mjs +121 -21
- package/scripts/etapes.mjs +14 -4
- package/scripts/etat-du-depot.mjs +23 -0
- package/scripts/faits-du-circuit.mjs +24 -34
- package/scripts/fermeture-de-la-machine.d.mts +27 -0
- package/scripts/fermeture-de-la-machine.mjs +98 -0
- package/scripts/fichiers-nommes.mjs +27 -1
- package/scripts/file-des-tickets.d.mts +18 -1
- package/scripts/file-des-tickets.mjs +63 -15
- package/scripts/greffons.mjs +1 -1
- package/scripts/grillhouse-maj.mjs +13 -25
- package/scripts/groupe-cles.d.mts +6 -0
- package/scripts/groupe-cles.mjs +29 -1
- package/scripts/integration/file.mjs +162 -48
- package/scripts/integration/integrer.mjs +2 -0
- package/scripts/jointure.d.ts +22 -3
- package/scripts/journal-des-etats.d.mts +16 -0
- package/scripts/journal-des-etats.mjs +44 -2
- package/scripts/journal.mjs +3 -0
- package/scripts/langages/c/commandes.mjs +5 -5
- package/scripts/langages/c/composants.mjs +13 -5
- package/scripts/langages/c/index.mjs +2 -0
- package/scripts/langages/c/squelette.mjs +1 -1
- package/scripts/langages/cargo/commandes.mjs +5 -6
- package/scripts/langages/cargo/index.mjs +2 -0
- package/scripts/langages/python/commandes.mjs +5 -5
- package/scripts/langages/python/composants.mjs +10 -2
- package/scripts/langages/python/index.mjs +2 -0
- package/scripts/langages/typescript/composants.mjs +10 -3
- package/scripts/langages/typescript/construire.mjs +2 -0
- package/scripts/langages/typescript/exemples.mjs +33 -1
- package/scripts/langages/typescript/index.mjs +22 -0
- package/scripts/langages/typescript/migrations/0.49.0-tests-equipes.mjs +32 -0
- package/scripts/langages/typescript/module-absent.mjs +24 -0
- package/scripts/langages/typescript/tests-de-nuit.mjs +152 -32
- package/scripts/langages/typescript/tests-du-poste.mjs +65 -23
- package/scripts/langages/typescript/titres-de-tests.mjs +11 -7
- package/scripts/langages/typescript/turbo-des-paquets.mjs +40 -5
- package/scripts/langages/typescript/verifier.mjs +3 -5
- package/scripts/langages/typescript/verrou-des-dependances.mjs +161 -0
- package/scripts/langages/typescript/vitest-config/cibles.mjs +57 -6
- package/scripts/langages/typescript/vitest-config/lances.mjs +3 -1
- package/scripts/langages/typescript/vitest-config/machine.setup.mjs +11 -5
- package/scripts/langages/typescript/vitest.nuit.config.mjs +53 -5
- package/scripts/langages.mjs +25 -3
- package/scripts/machine.mjs +103 -0
- package/scripts/matieres-cles.mjs +17 -0
- package/scripts/matieres-lues.mjs +104 -0
- package/scripts/mesure/base-de-passe.mjs +2 -1
- package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +32 -0
- package/scripts/migrations/0.48.0-poussee-retiree.mjs +31 -0
- package/scripts/migrations/0.49.0-reservation-de-trois-coeurs.mjs +30 -0
- package/scripts/migrations.mjs +6 -0
- package/scripts/nuit.sh +113 -46
- package/scripts/paquet.mjs +16 -5
- package/scripts/paquets.d.ts +4 -0
- package/scripts/paquets.mjs +57 -0
- package/scripts/passe-de-la-machine.mjs +13 -14
- package/scripts/places-de-la-machine.mjs +120 -44
- package/scripts/places-du-serveur.mjs +29 -8
- package/scripts/plafond-de-la-machine.d.mts +7 -13
- package/scripts/plafond-de-la-machine.mjs +19 -35
- package/scripts/poussee-retiree.mjs +18 -0
- package/scripts/prefixe-des-tickets.mjs +1 -1
- package/scripts/references-changees.mjs +159 -0
- package/scripts/registre.d.mts +2 -2
- package/scripts/regles-des-places.d.mts +20 -12
- package/scripts/regles-des-places.mjs +27 -30
- package/scripts/repli-de-la-nuit.mjs +112 -0
- package/scripts/reponses-du-circuit.d.mts +4 -2
- package/scripts/reponses-du-circuit.mjs +44 -9
- package/scripts/reprise.mjs +27 -8
- package/scripts/resultats.mjs +61 -9
- package/scripts/seances.mjs +258 -40
- package/scripts/services-du-noyau.mjs +3 -0
- package/scripts/sous-commandes.mjs +37 -7
- package/scripts/superviseur.mjs +241 -88
- package/scripts/tableau.mjs +327 -131
- package/scripts/taches-du-graphe.mjs +84 -4
- package/scripts/ticket.mjs +345 -0
- package/scripts/transitions.d.mts +52 -0
- package/scripts/transitions.mjs +194 -16
- package/scripts/un-commit-par-ticket.mjs +4 -3
- package/scripts/verdict-de-la-nuit.mjs +47 -20
- package/scripts/verrou-de-fichier.mjs +2 -2
- package/scripts/verrous/ecriture-hors-enveloppe.mjs +86 -0
- package/scripts/verrous/verrou.mjs +17 -1
- package/skills/developpeur/SKILL.md +1 -1
- package/skills/direct/SKILL.md +57 -0
- package/skills/explorateur/SKILL.md +10 -6
- package/skills/pitmaster/SKILL.md +37 -14
- package/skills/pitmaster/references/consigne-agent.md +7 -1
- package/skills/relecteur/SKILL.md +11 -1
- package/skills/testwriter/SKILL.md +10 -0
- package/scripts/poussee-cles.mjs +0 -46
- package/scripts/ticket.sh +0 -25
package/scripts/tableau.mjs
CHANGED
|
@@ -79,24 +79,30 @@
|
|
|
79
79
|
// the tone of an alert.
|
|
80
80
|
// - The parts of the machine (scripts/places-de-la-machine.mjs, read by `lireLaMesure`), as Slurm's
|
|
81
81
|
// `squeue` names who holds what and what a job waits for. A part held or waited for by a circuit
|
|
82
|
-
// AGENTS shows
|
|
83
|
-
//
|
|
84
|
-
//
|
|
85
|
-
//
|
|
86
|
-
//
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
//
|
|
90
|
-
//
|
|
91
|
-
//
|
|
82
|
+
// AGENTS shows on a line (a circuit, a ticket led in direct, a ticket worked out of a circuit,
|
|
83
|
+
// an agent) stands on that ticket's line, « 🔒 » (it holds a part) or « ⏳ » (it waits for one)
|
|
84
|
+
// after the head, before the subject, never in place of its sign: « · <sorte> · 2 cœurs ·
|
|
85
|
+
// <durée> » since it took its part, with « ⚠ » and what it consumes beyond its part when it
|
|
86
|
+
// does, « · <sorte> figée <durée> » past FIGEE without a sign, « · attend 2 cœurs · 26 réservés
|
|
87
|
+
// sur 28 · <durée> » for a wait, the kind in lower case; a circuit adds faits/prévus, and says
|
|
88
|
+
// it in place of the progress of its pass. The block at the head of AGENTS (`lignesDesParts`)
|
|
89
|
+
// keeps the budget taken, « Parts · 2 passes · 6 sur 8 cœurs · 11 sur 16 Go », which counts
|
|
90
|
+
// every pass that holds a part, those of a ticket the board does not show included, which
|
|
91
|
+
// has no other trace; and the lines of the passes with no ticket (a check launched by hand, the
|
|
92
|
+
// night, a measure): « 🔒 <sorte> · <projet> · 4 cœurs · 8 Go », with « ⚠ », then each one that
|
|
93
|
+
// waits, in the order of its rank, « ⏳ <sorte> · <projet> · attend <raison> » (cores, memory,
|
|
94
|
+
// load, with the figures). Such a line is marked `avancement`, which the pane measures again
|
|
95
|
+
// more often.
|
|
92
96
|
// - Signs: each sign keeps one sense (the owner's decisions of 2026-11-01 and 2026-11-12). A
|
|
93
|
-
// ticket's line in AGENTS takes one of three, by the tone of its state: ▶ its step works (cyan
|
|
97
|
+
// ticket's line in AGENTS takes one of three, by the tone of its state: ▶ its step works (cyan,
|
|
98
|
+
// the hollow ▷ in a short circuit, counted with it),
|
|
94
99
|
// a ticket led in direct included; ⏸ it waits, under the step about to be launched, the reason
|
|
95
100
|
// on its right (« attend une place », « verrou », « disque », « démarre » in grey, the
|
|
96
101
|
// circuit waiting for the machine; « question au superviseur », « question au responsable »,
|
|
97
102
|
// « arrêté » in yellow, the circuit waiting for someone); ⛔ it stopped on a fault or its pass is
|
|
98
|
-
// frozen, to correct (red).
|
|
99
|
-
//
|
|
103
|
+
// frozen, to correct (red). On a ticket's line, after its head: 🔒 its pass holds a part, ⏳ it
|
|
104
|
+
// waits for one; at the head of AGENTS, the same two for a pass with no ticket, and 🌙 the night
|
|
105
|
+
// under way. The alerts: 💤 a ticket
|
|
100
106
|
// claimed with nothing running, 🌙 a red night, ⚠ the alerts without a kind of their own. A
|
|
101
107
|
// sign two columns wide stands as the others, a sign then a space; the width of a line counts
|
|
102
108
|
// its columns (`colonnes`), ⏳ and ⛔ two.
|
|
@@ -140,7 +146,12 @@ import { maxDuProjet } from './circuits-cles.mjs';
|
|
|
140
146
|
import { bilansGardes, enBref } from './bilan.mjs';
|
|
141
147
|
import { REGISTRE } from './adresse-du-registre.mjs';
|
|
142
148
|
import { lireLaMesure } from './avancement.mjs';
|
|
143
|
-
import {
|
|
149
|
+
import {
|
|
150
|
+
alerteDeDeclenchement,
|
|
151
|
+
ciDeMainGardee,
|
|
152
|
+
fauteDeDeclenchement,
|
|
153
|
+
ligneDeLaCiDeMain,
|
|
154
|
+
} from './ci-de-main.mjs';
|
|
144
155
|
import {
|
|
145
156
|
SANS_REPONSE_EN,
|
|
146
157
|
ServeurMuet,
|
|
@@ -152,11 +163,28 @@ import {
|
|
|
152
163
|
aSonArchitecture,
|
|
153
164
|
attendDeLAutreProjet,
|
|
154
165
|
enFileSansArchitecture,
|
|
166
|
+
enFileSurMain,
|
|
155
167
|
lireLesExternes,
|
|
168
|
+
lotEstSurMain,
|
|
156
169
|
} from './file-des-tickets.mjs';
|
|
157
170
|
import { etatDesPlaces } from './places-de-la-machine.mjs';
|
|
171
|
+
import { duree as dureeDeLaFermeture } from './regles-des-places.mjs';
|
|
158
172
|
import { prefixe as prefixeDeLaRacine } from './prefixe-des-tickets.mjs';
|
|
159
173
|
import { sigleDuProjet } from './sigle-du-projet.mjs';
|
|
174
|
+
import { versionDuPaquet } from './greffons.mjs';
|
|
175
|
+
import { estLeCircuitCourt, sorteDesFiches } from './resultats.mjs';
|
|
176
|
+
|
|
177
|
+
// The version of the package whose code draws the panel, « v0.47.1 », read once, at the first
|
|
178
|
+
// request, and kept: a long-lived process keeps the loaded code's version after an upgrade. Only
|
|
179
|
+
// an x.y.z version shows; any other, or none, is null.
|
|
180
|
+
let versionAffichee;
|
|
181
|
+
const versionDuPanneau = () => {
|
|
182
|
+
if (versionAffichee === undefined) {
|
|
183
|
+
const v = versionDuPaquet();
|
|
184
|
+
versionAffichee = typeof v === 'string' && /^\d+\.\d+\.\d+$/.test(v) ? `v${v}` : null;
|
|
185
|
+
}
|
|
186
|
+
return versionAffichee;
|
|
187
|
+
};
|
|
160
188
|
|
|
161
189
|
const MINUTE = 60_000;
|
|
162
190
|
export const SILENCE = 10 * MINUTE;
|
|
@@ -175,6 +203,9 @@ export const ROLE_DU_CIRCUIT = 'circuit';
|
|
|
175
203
|
// The role of a register line that the workflow of the nights writes for a night it skips
|
|
176
204
|
// (src/temporal/nuits/): no agent, no ticket, no turn; the board counts it nowhere.
|
|
177
205
|
export const ROLE_DE_LA_NUIT = 'nuit';
|
|
206
|
+
// The agent of a ticket led out of the circuit (scripts/direct.mjs), and the block of the board
|
|
207
|
+
// that lists the sessions of that role.
|
|
208
|
+
const ROLE_DIRECT = 'direct';
|
|
178
209
|
// A sub-agent's role from its meta file: the type it was spawned as; a named agent's `agentType`
|
|
179
210
|
// is its name.
|
|
180
211
|
export const roleDuMeta = m =>
|
|
@@ -227,6 +258,7 @@ export const TONS = Object.freeze({
|
|
|
227
258
|
sansRienQuiTourne: 'attention',
|
|
228
259
|
silencieux: 'attention',
|
|
229
260
|
sansArchitecture: 'attention',
|
|
261
|
+
lotSurMain: 'attention',
|
|
230
262
|
outilNonInstallable: 'attention',
|
|
231
263
|
machineChargee: 'attention',
|
|
232
264
|
fige: 'alerte',
|
|
@@ -753,12 +785,14 @@ export const remonteesDe = racine =>
|
|
|
753
785
|
|
|
754
786
|
/**
|
|
755
787
|
* The stops gone up of the repository at <racine>, each with its key, `depuis` (the time of its
|
|
756
|
-
* first going up) and `presentee` (the time of its last presentation), in ms
|
|
757
|
-
*
|
|
758
|
-
*
|
|
788
|
+
* first going up) and `presentee` (the time of its last presentation), in ms; `lue` (the time a
|
|
789
|
+
* turn of the session read the message that held it) and `chez` (the time the supervisor carried
|
|
790
|
+
* it to the owner) when it has them. An older file, a list of keys, reads without error: its stops
|
|
791
|
+
* take the time <maintenant> of the reading and are sent, never read. A file that does not read
|
|
792
|
+
* holds none.
|
|
759
793
|
* @param {string} racine
|
|
760
794
|
* @param {number} maintenant
|
|
761
|
-
* @returns {{ cle: string, depuis: number, presentee: number }[]}
|
|
795
|
+
* @returns {{ cle: string, depuis: number, presentee: number, lue?: number, chez?: number }[]}
|
|
762
796
|
*/
|
|
763
797
|
export function lireLesRemontees(racine, maintenant) {
|
|
764
798
|
try {
|
|
@@ -773,6 +807,8 @@ export function lireLesRemontees(racine, maintenant) {
|
|
|
773
807
|
cle: String(r.cle),
|
|
774
808
|
depuis: Number.isFinite(r.depuis) ? r.depuis : maintenant,
|
|
775
809
|
presentee: Number.isFinite(r.presentee) ? r.presentee : maintenant,
|
|
810
|
+
...(Number.isFinite(r.lue) ? { lue: r.lue } : {}),
|
|
811
|
+
...(Number.isFinite(r.chez) ? { chez: r.chez } : {}),
|
|
776
812
|
}
|
|
777
813
|
);
|
|
778
814
|
} catch {
|
|
@@ -780,6 +816,14 @@ export function lireLesRemontees(racine, maintenant) {
|
|
|
780
816
|
}
|
|
781
817
|
}
|
|
782
818
|
|
|
819
|
+
/**
|
|
820
|
+
* Whether the question of the entry <r> of the file of the stops gone up is read: a turn of the
|
|
821
|
+
* session read it after its last sending (a reminder sent again is unread until its next reading).
|
|
822
|
+
* @param {{ presentee?: number, lue?: number }} r
|
|
823
|
+
* @returns {boolean}
|
|
824
|
+
*/
|
|
825
|
+
export const estLue = r => Number.isFinite(r.lue) && !(r.lue < r.presentee);
|
|
826
|
+
|
|
783
827
|
// A ticket's number, subject and component: its title « number — subject — component » when
|
|
784
828
|
// the number ends its id, else its id without the prefix and its whole title.
|
|
785
829
|
export function lecture(t, prefix) {
|
|
@@ -825,8 +869,8 @@ const goDe = octets => chiffre(Math.round((octets / 1024 ** 3) * 10) / 10);
|
|
|
825
869
|
* part, « 🔒 <sorte> · <projet> · <qui> · 4 cœurs · 8 Go » (with « ⚠ » and what it consumes beyond
|
|
826
870
|
* its part, when it does), then each pass that waits, in the order of its rank, « ⏳ <sorte> ·
|
|
827
871
|
* <projet> · <qui> · attend <raison> », what it waits for (cores, memory, load) with its figures.
|
|
828
|
-
* <masquer> leaves out the lines of the passes it names (those of a
|
|
829
|
-
*
|
|
872
|
+
* <masquer> leaves out the lines of the passes it names (those of a ticket, shown on its line or
|
|
873
|
+
* not shown at all: the count keeps them), <court> gives the ticket as the board names it.
|
|
830
874
|
* @param {{ budget: { coeurs: number, memoire: number }, prises: DUnePart[], attentes: DUnePart[],
|
|
831
875
|
* masquer?: (p: DUnePart) => boolean, court?: (ticket: string) => string }} o
|
|
832
876
|
* @returns {string[]}
|
|
@@ -877,7 +921,8 @@ export function lignesDesParts({
|
|
|
877
921
|
* places?: { prises: number, plafond: number, faute?: string | null, charge: number,
|
|
878
922
|
* coeurs: number, memoireGo: number, memoireTotaleGo: number,
|
|
879
923
|
* tenues?: { ticket: string | null, racine?: string | null }[], attentes: { ticket: string,
|
|
880
|
-
* depuis: number, disque?: string | null }[],
|
|
924
|
+
* depuis: number, disque?: string | null }[],
|
|
925
|
+
* fermeture?: { auteur: 'superviseur', depuis: number, phase: string } | null } | null,
|
|
881
926
|
* nuit?: { racine: string, depuis: number | null } | null, muet?: boolean, faute?: string | null,
|
|
882
927
|
* echecPrefixe?: string | null, voies?: Record<string, 'complet' | 'court'> }} lu
|
|
883
928
|
*/
|
|
@@ -906,6 +951,7 @@ export function assembler({
|
|
|
906
951
|
superviseur = {},
|
|
907
952
|
externes,
|
|
908
953
|
limite = null,
|
|
954
|
+
lotSurMain = () => false,
|
|
909
955
|
}) {
|
|
910
956
|
// A circuit's lines are its steps, no agent's passage.
|
|
911
957
|
const etapesFinies = lignesDuRegistre.filter(r => r.role === ROLE_DU_CIRCUIT);
|
|
@@ -1220,13 +1266,18 @@ export function assembler({
|
|
|
1220
1266
|
const e = etapeDuRole(role);
|
|
1221
1267
|
return e ? blocs.find(b => b.numero === e.numero) : undefined;
|
|
1222
1268
|
};
|
|
1223
|
-
//
|
|
1269
|
+
// The block « Direct » heads them: the agents of the tickets led out of the circuit
|
|
1270
|
+
// (`npx grillhouse direct`), at no step.
|
|
1271
|
+
const directs = [];
|
|
1272
|
+
// One line per ticket: a ticket on which a role agent runs stands at its step, the agent of a
|
|
1273
|
+
// direct under the block « Direct ».
|
|
1224
1274
|
for (const v of enCoursMesures) {
|
|
1225
1275
|
const t = v.ticket && parId.get(v.ticket);
|
|
1226
|
-
|
|
1276
|
+
const cible = v.role === ROLE_DIRECT ? { enCours: directs } : bloc(v.role);
|
|
1277
|
+
if (!t || !cible) {
|
|
1227
1278
|
continue;
|
|
1228
1279
|
}
|
|
1229
|
-
|
|
1280
|
+
cible.enCours.push({
|
|
1230
1281
|
id: t.id,
|
|
1231
1282
|
numero: numero(t.id),
|
|
1232
1283
|
sujet: titre(t).sujet,
|
|
@@ -1239,7 +1290,7 @@ export function assembler({
|
|
|
1239
1290
|
}
|
|
1240
1291
|
const debutJour = jour;
|
|
1241
1292
|
// The way of a ticket done (grillhouse-592): `direct` when labelled so; else the way its kept
|
|
1242
|
-
// results give (`voies`, `voiesDesCircuits`: `court`
|
|
1293
|
+
// results give (`voies`, `voiesDesCircuits`: `court` for the short circuit, else `complet`); else
|
|
1243
1294
|
// `complet` when a circuit led a step of it (the register) or is read for it; else `direct`,
|
|
1244
1295
|
// closed with no circuit.
|
|
1245
1296
|
const parUnCircuit = new Set([...etapesFinies.map(r => r.ticket), ...parCircuit.keys()]);
|
|
@@ -1367,7 +1418,11 @@ export function assembler({
|
|
|
1367
1418
|
// A circuit stopped on a question to the supervisor: the tone of that wait, whatever its length,
|
|
1368
1419
|
// and how long it has waited (from the `depuis` of its stop in the file of the stops gone up);
|
|
1369
1420
|
// it falls when the circuit leaves the stop.
|
|
1370
|
-
|
|
1421
|
+
// Once read, or carried to the owner, its state stands on its line « ⤷ Question »: the alert
|
|
1422
|
+
// speaks of the question not read yet.
|
|
1423
|
+
const depuisDe = new Map(
|
|
1424
|
+
remontees.filter(r => !estLue(r) && !Number.isFinite(r.chez)).map(r => [r.cle, r.depuis])
|
|
1425
|
+
);
|
|
1371
1426
|
const enAttenteDuSuperviseur = [...parCircuit.values()]
|
|
1372
1427
|
.filter(attendLeSuperviseur)
|
|
1373
1428
|
.sort((a, b) => ordre({ id: a.ticket }, { id: b.ticket }));
|
|
@@ -1390,7 +1445,19 @@ export function assembler({
|
|
|
1390
1445
|
texte: `En file sans architecture : ${sansArchitecture.map(t => numero(t.id)).join(', ')}`,
|
|
1391
1446
|
});
|
|
1392
1447
|
}
|
|
1393
|
-
|
|
1448
|
+
// The tickets of the queue whose lot is already on main, which the queue never starts again
|
|
1449
|
+
// (scripts/file-des-tickets.mjs): one line names them all, for the supervisor to close them.
|
|
1450
|
+
const dejaSurMain = enFileSurMain(tous, {
|
|
1451
|
+
enCours: new Set(parCircuit.keys()),
|
|
1452
|
+
externes,
|
|
1453
|
+
surMain: lotSurMain,
|
|
1454
|
+
});
|
|
1455
|
+
if (dejaSurMain.length) {
|
|
1456
|
+
alerter('lotSurMain', {
|
|
1457
|
+
texte: `En file, lot déjà sur main : ${dejaSurMain.map(t => numero(t.id)).join(', ')}`,
|
|
1458
|
+
});
|
|
1459
|
+
}
|
|
1460
|
+
for (const b of [...blocs, { numero: ROLE_DIRECT, enCours: directs }]) {
|
|
1394
1461
|
for (const x of b.enCours) {
|
|
1395
1462
|
if (x.ligne && x.silence !== null && x.silence > SILENCE) {
|
|
1396
1463
|
alerter('silencieux', {
|
|
@@ -1435,7 +1502,7 @@ export function assembler({
|
|
|
1435
1502
|
// supervisor stopped; or labelled `direct` and claimed (led out of the circuit); and no role
|
|
1436
1503
|
// agent shown at a step. None while the circuits do not read (a silent server, a fault) and no
|
|
1437
1504
|
// earlier reading is kept, when no ticket can be told out of a circuit.
|
|
1438
|
-
const aUneEtape = new Set(blocs.flatMap(b => b.enCours.map(x => x.id))
|
|
1505
|
+
const aUneEtape = new Set([...blocs.flatMap(b => b.enCours), ...directs].map(x => x.id));
|
|
1439
1506
|
const tenus = new Set(
|
|
1440
1507
|
[...parCircuit.values()].filter(c => c.vivant || attendLeSuperviseur(c)).map(c => c.ticket)
|
|
1441
1508
|
);
|
|
@@ -1473,6 +1540,8 @@ export function assembler({
|
|
|
1473
1540
|
.map(c => ({
|
|
1474
1541
|
...c,
|
|
1475
1542
|
id: c.ticket,
|
|
1543
|
+
// Its way so far, read from its kept results (`voiesDesCircuits`).
|
|
1544
|
+
court: voies[c.ticket] === 'court',
|
|
1476
1545
|
numero: numero(c.ticket),
|
|
1477
1546
|
sujet: titre(parId.get(c.ticket)).sujet,
|
|
1478
1547
|
}));
|
|
@@ -1501,15 +1570,19 @@ export function assembler({
|
|
|
1501
1570
|
alertes,
|
|
1502
1571
|
limite: limiteTenue,
|
|
1503
1572
|
circuits: lesCircuits,
|
|
1573
|
+
remontees,
|
|
1504
1574
|
horsCircuit,
|
|
1505
1575
|
chantiers,
|
|
1506
1576
|
autres,
|
|
1507
1577
|
agents: blocs,
|
|
1578
|
+
directs,
|
|
1508
1579
|
maintenant,
|
|
1509
1580
|
machine,
|
|
1510
1581
|
places: placesDeLaMachine && {
|
|
1511
1582
|
...placesDeLaMachine,
|
|
1512
|
-
|
|
1583
|
+
siennes: (placesDeLaMachine.tenues ?? []).filter(
|
|
1584
|
+
x => x.racine && racine && path.resolve(x.racine) === path.resolve(racine)
|
|
1585
|
+
).length,
|
|
1513
1586
|
},
|
|
1514
1587
|
nuit: nuitEnCours,
|
|
1515
1588
|
faitsDuJour,
|
|
@@ -1572,16 +1645,18 @@ function temoinDe(c, maintenant) {
|
|
|
1572
1645
|
}
|
|
1573
1646
|
|
|
1574
1647
|
// A ticket's time and tokens, « 12 min · 310 k »; nothing when both are zero.
|
|
1575
|
-
// The sign of a ticket done by its way (grillhouse-592): a full circuit, a short one (
|
|
1576
|
-
//
|
|
1648
|
+
// The sign of a ticket done by its way (grillhouse-592): a full circuit, a short one (its gesture
|
|
1649
|
+
// played by a command, 1.1, or written by hand), a ticket led directly.
|
|
1577
1650
|
export const SIGNE_DE_LA_VOIE = Object.freeze({ complet: '●', court: '○', direct: '✎' });
|
|
1578
1651
|
|
|
1579
1652
|
/**
|
|
1580
1653
|
* The way of the circuit each ticket of <tickets> went, read from its kept results in the main tree
|
|
1581
1654
|
* <racine> (`.claude/worktrees/<ticket>.fiches.jsonl`, which the circuit writes and keeps once the
|
|
1582
|
-
* ticket is done): `court` when the
|
|
1583
|
-
*
|
|
1584
|
-
*
|
|
1655
|
+
* ticket is done): `court` when the sort of the ticket (`sorteDesFiches` of scripts/resultats.mjs:
|
|
1656
|
+
* its plan's, or the one a turn gave it since) is the short circuit's, its gesture played by a
|
|
1657
|
+
* command (1.1 Geste mécanique) or written by hand by the developpeur (`estLeCircuitCourt`), else
|
|
1658
|
+
* `complet`: a ticket that turned bears the way it ended on. A ticket without the file has no
|
|
1659
|
+
* entry. A line that does not parse counts nothing.
|
|
1585
1660
|
* @param {string} racine
|
|
1586
1661
|
* @param {string[]} tickets
|
|
1587
1662
|
* @returns {Record<string, 'complet' | 'court'>}
|
|
@@ -1595,14 +1670,15 @@ export function voiesDesCircuits(racine, tickets) {
|
|
|
1595
1670
|
} catch {
|
|
1596
1671
|
continue;
|
|
1597
1672
|
}
|
|
1598
|
-
const
|
|
1673
|
+
const fiches = texte.split('\n').flatMap(l => {
|
|
1599
1674
|
try {
|
|
1600
|
-
|
|
1675
|
+
const e = JSON.parse(l);
|
|
1676
|
+
return e && typeof e === 'object' ? [e] : [];
|
|
1601
1677
|
} catch {
|
|
1602
|
-
return
|
|
1678
|
+
return [];
|
|
1603
1679
|
}
|
|
1604
1680
|
});
|
|
1605
|
-
out[id] =
|
|
1681
|
+
out[id] = estLeCircuitCourt(sorteDesFiches(fiches)) ? 'court' : 'complet';
|
|
1606
1682
|
}
|
|
1607
1683
|
return out;
|
|
1608
1684
|
}
|
|
@@ -1654,37 +1730,37 @@ const signeDe = a => a.signe ?? '⚠';
|
|
|
1654
1730
|
// « SH-ae6.5 » → « ae6.5 ».
|
|
1655
1731
|
const courtDuTicket = id => id.slice(id.lastIndexOf('-') + 1);
|
|
1656
1732
|
|
|
1657
|
-
// Who holds each place of the machine, in the order of the places: the project of the board (the
|
|
1658
|
-
// root <racine> of its main tree, its ticket prefix <prefix>) by the short number of its ticket,
|
|
1659
|
-
// another project by « <sigle> <short number> » (its sigle and its prefix read from its own root),
|
|
1660
|
-
// a place with no ticket « passe »; a place with no root (a state of before) is the board's.
|
|
1661
|
-
function nommerLesPrises(tenues, { racine, prefix }) {
|
|
1662
|
-
return tenues.map(({ ticket, racine: deLaPrise }) => {
|
|
1663
|
-
const ici = !deLaPrise || (racine && path.resolve(deLaPrise) === path.resolve(racine));
|
|
1664
|
-
let prefixeDuProjet = prefix;
|
|
1665
|
-
if (!ici) {
|
|
1666
|
-
try {
|
|
1667
|
-
prefixeDuProjet = prefixeDeLaRacine(deLaPrise);
|
|
1668
|
-
} catch {
|
|
1669
|
-
prefixeDuProjet = '';
|
|
1670
|
-
}
|
|
1671
|
-
}
|
|
1672
|
-
const numero = !ticket
|
|
1673
|
-
? 'passe'
|
|
1674
|
-
: prefixeDuProjet && ticket.startsWith(`${prefixeDuProjet}-`)
|
|
1675
|
-
? ticket.slice(prefixeDuProjet.length + 1)
|
|
1676
|
-
: courtDuTicket(ticket);
|
|
1677
|
-
return ici ? numero : `${sigleDuProjet(deLaPrise).sigle ?? path.basename(deLaPrise)} ${numero}`;
|
|
1678
|
-
});
|
|
1679
|
-
}
|
|
1680
1733
|
// The sign of a ticket's line in AGENTS, by the tone of its state: ▶ what runs, ⛔ what asks for a
|
|
1681
1734
|
// correction, ⏸ a wait, for the machine (grey) or for someone (yellow).
|
|
1682
|
-
|
|
1735
|
+
// A circuit that runs bears the full triangle, the hollow one in a short circuit (<court>), as
|
|
1736
|
+
// its line of FAITS AUJOURD'HUI bears the full or the hollow round (`SIGNE_DE_LA_VOIE`).
|
|
1737
|
+
const signeDuTon = (ton, court = false) =>
|
|
1738
|
+
ton === TONS.enCours ? (court ? '▷' : '▶') : ton === 'alerte' ? '⛔' : '⏸';
|
|
1683
1739
|
// The step of the circuit <c>, by its state or its stop.
|
|
1684
1740
|
const etapeDuCircuitLu = c => etapeDuCircuit({ ...c, raison: c.arret });
|
|
1685
1741
|
// A circuit that waits for the supervisor (`attendLeSuperviseur`, the one rule): who must answer
|
|
1686
1742
|
// its question, the supervisor when its stop names no one.
|
|
1687
|
-
|
|
1743
|
+
// A question the supervisor carried to the owner (`chez` in the file of the stops gone up) is the
|
|
1744
|
+
// owner's.
|
|
1745
|
+
const enQuestion = (c, chez = new Set()) =>
|
|
1746
|
+
attendLeSuperviseur(c) ? (chez.has(cleDe(c)) ? 'responsable' : (c.qui ?? SUPERVISEUR)) : null;
|
|
1747
|
+
const chezLui = t =>
|
|
1748
|
+
new Set((t.remontees ?? []).filter(r => Number.isFinite(r.chez)).map(r => r.cle));
|
|
1749
|
+
// The state at the right of the line « ⤷ Question » of the circuit <c>: « chez lui · N min » (N from
|
|
1750
|
+
// the mark), « lue il y a N min » (from the reading), « envoyée » (in the queue of the session);
|
|
1751
|
+
// empty when the greffon has not sent it.
|
|
1752
|
+
const etatDeLaQuestion = (c, t) => {
|
|
1753
|
+
const r = (t.remontees ?? []).find(x => x.cle === cleDe(c));
|
|
1754
|
+
const min = depuis =>
|
|
1755
|
+
`${Math.max(0, Math.floor(((t.maintenant ?? Date.now()) - depuis) / MINUTE))} min`;
|
|
1756
|
+
return !r
|
|
1757
|
+
? ''
|
|
1758
|
+
: Number.isFinite(r.chez)
|
|
1759
|
+
? `chez lui · ${min(r.chez)}`
|
|
1760
|
+
: estLue(r)
|
|
1761
|
+
? `lue il y a ${min(r.lue)}`
|
|
1762
|
+
: 'envoyée';
|
|
1763
|
+
};
|
|
1688
1764
|
|
|
1689
1765
|
/**
|
|
1690
1766
|
* The state of each ticket's line of AGENTS on the board <t>, the one source of its signs, which
|
|
@@ -1693,16 +1769,26 @@ const enQuestion = c => (attendLeSuperviseur(c) ? (c.qui ?? SUPERVISEUR) : null)
|
|
|
1693
1769
|
* and its witness (`temoin`: the part it holds or waits for, « · <sorte> faits/prévus · <durée> »,
|
|
1694
1770
|
* « · part <sorte> · <durée> », else the progress of its automatic pass, `temoinDe`), in this
|
|
1695
1771
|
* order: frozen; ended without its issue; its question (to the supervisor or to another); stopped;
|
|
1696
|
-
* its wait for the disk, a place
|
|
1772
|
+
* its wait for the disk, a place, a part or its first
|
|
1697
1773
|
* state; else it runs. `lignes`: one entry per
|
|
1698
1774
|
* ticket's line of AGENTS, its id, its project on a board of several and its sign: each circuit,
|
|
1699
|
-
* each ticket led in direct (▶) and each agent shown out of a circuit (▶).
|
|
1775
|
+
* each ticket led in direct (▶) and each agent shown out of a circuit (▶). `parts`: by ticket, the
|
|
1776
|
+
* pass of each ticket AGENTS shows (circuit, direct, out of a circuit, agent), its icon (`icone`,
|
|
1777
|
+
* 🔒 it holds a part, ⏳ it waits for one) and its text (`texte`), which the ticket's line bears.
|
|
1700
1778
|
*/
|
|
1701
1779
|
export function etatsDAgents(t) {
|
|
1702
1780
|
const maintenant = t.maintenant ?? Date.now();
|
|
1703
1781
|
const p = t.places;
|
|
1704
1782
|
const enCircuit = new Set((t.circuits ?? []).map(c => c.id));
|
|
1705
|
-
|
|
1783
|
+
// The tickets AGENTS shows on a line: each circuit, each ticket worked out of a circuit, each
|
|
1784
|
+
// agent and each direct. The part of a pass of one of them stands on its line.
|
|
1785
|
+
const montres = new Set([
|
|
1786
|
+
...enCircuit,
|
|
1787
|
+
...(t.horsCircuit ?? []).map(x => x.id),
|
|
1788
|
+
...t.agents.flatMap(b => b.enCours.map(x => x.id)),
|
|
1789
|
+
...(t.directs ?? []).map(x => x.id),
|
|
1790
|
+
]);
|
|
1791
|
+
const duCircuit = x => Boolean(x.ticket && montres.has(x.ticket));
|
|
1706
1792
|
const partDe = new Map();
|
|
1707
1793
|
const tientUnePart = new Set();
|
|
1708
1794
|
for (const tenu of t.machine?.prises ?? []) {
|
|
@@ -1717,16 +1803,20 @@ export function etatsDAgents(t) {
|
|
|
1717
1803
|
const sorte = tenu.sorte.toLocaleLowerCase('fr');
|
|
1718
1804
|
partDe.set(tenu.ticket, {
|
|
1719
1805
|
fige,
|
|
1806
|
+
icone: '🔒',
|
|
1720
1807
|
texte: fige
|
|
1721
1808
|
? ` · ${sorte} figée ${ilYa(age)}${compte ? ` · ${compte}` : ''}`
|
|
1722
|
-
: ` · ${sorte}${compte ? ` ${compte}` : ''} · ${ilYa(maintenant - (tenu.depuis ?? maintenant))}${tenu.depasse ? ` · ⚠ ${tenu.depasse}` : ''}`,
|
|
1809
|
+
: ` · ${sorte}${compte ? ` ${compte}` : ''}${tenu.coeurs ? ` · ${tenu.coeurs} cœurs` : ''} · ${ilYa(maintenant - (tenu.depuis ?? maintenant))}${tenu.depasse ? ` · ⚠ ${tenu.depasse}` : ''}`,
|
|
1723
1810
|
});
|
|
1724
1811
|
}
|
|
1812
|
+
const reserves = (t.machine?.prises ?? []).reduce((n, x) => n + (x.coeurs ?? 0), 0);
|
|
1725
1813
|
for (const w of t.machine?.attentes ?? []) {
|
|
1726
1814
|
if (duCircuit(w) && !partDe.has(w.ticket)) {
|
|
1815
|
+
const budget = t.machine?.budget?.coeurs;
|
|
1727
1816
|
partDe.set(w.ticket, {
|
|
1728
1817
|
fige: false,
|
|
1729
|
-
|
|
1818
|
+
icone: '⏳',
|
|
1819
|
+
texte: ` · attend ${w.coeurs} cœurs · ${reserves} réservés sur ${budget} · ${ilYa(maintenant - w.depuis)}`,
|
|
1730
1820
|
});
|
|
1731
1821
|
}
|
|
1732
1822
|
}
|
|
@@ -1748,7 +1838,7 @@ export function etatsDAgents(t) {
|
|
|
1748
1838
|
return ['reporteLimite', `limite d'usage · reprise ${heure}`];
|
|
1749
1839
|
}
|
|
1750
1840
|
if (!c.vivant) {
|
|
1751
|
-
const qui = enQuestion(c);
|
|
1841
|
+
const qui = enQuestion(c, chezLui(t));
|
|
1752
1842
|
return c.sansIssue
|
|
1753
1843
|
? ['sansIssue', 'fini sans son issue']
|
|
1754
1844
|
: qui === SUPERVISEUR
|
|
@@ -1761,7 +1851,7 @@ export function etatsDAgents(t) {
|
|
|
1761
1851
|
return attendLeDisque.has(c.id)
|
|
1762
1852
|
? ['attendLeDisque', 'disque']
|
|
1763
1853
|
: attendUnePlace.has(c.id)
|
|
1764
|
-
? ['attendUnePlace',
|
|
1854
|
+
? ['attendUnePlace', 'attend une place']
|
|
1765
1855
|
: attendUnePart.has(c.id)
|
|
1766
1856
|
? ['attendUnePart', '']
|
|
1767
1857
|
: !etape
|
|
@@ -1772,18 +1862,30 @@ export function etatsDAgents(t) {
|
|
|
1772
1862
|
for (const c of t.circuits ?? []) {
|
|
1773
1863
|
const etape = etapeDuCircuitLu(c);
|
|
1774
1864
|
const temoin =
|
|
1775
|
-
partDe.get(c.id) ??
|
|
1776
|
-
(c.vivant && etape?.qui.includes(AUTO) ? temoinDe(c, maintenant) : null);
|
|
1865
|
+
partDe.get(c.id) ?? (c.vivant && etape?.qui.includes(AUTO) ? temoinDe(c, maintenant) : null);
|
|
1777
1866
|
const [etat, raison] = etatDuCircuit(c, temoin);
|
|
1778
|
-
circuits.set(c.id, {
|
|
1867
|
+
circuits.set(c.id, {
|
|
1868
|
+
etat,
|
|
1869
|
+
raison,
|
|
1870
|
+
ton: TONS[etat],
|
|
1871
|
+
// A question carried to the owner is his to answer: ⛔, which « toi : … question » counts.
|
|
1872
|
+
signe:
|
|
1873
|
+
etat === 'attendLeResponsable' && chezLui(t).has(cleDe(c))
|
|
1874
|
+
? '⛔'
|
|
1875
|
+
: signeDuTon(TONS[etat], c.court),
|
|
1876
|
+
temoin,
|
|
1877
|
+
});
|
|
1779
1878
|
}
|
|
1780
1879
|
const ligne = (x, signe) => ({ id: x.id, projet: x.projet, signe });
|
|
1781
1880
|
return {
|
|
1782
1881
|
circuits,
|
|
1882
|
+
parts: partDe,
|
|
1783
1883
|
lignes: [
|
|
1784
1884
|
...(t.circuits ?? []).map(c => ligne(c, circuits.get(c.id).signe)),
|
|
1785
1885
|
...(t.horsCircuit ?? []).map(x => ligne(x, '▶')),
|
|
1786
|
-
...t.agents.flatMap(b => b.enCours
|
|
1886
|
+
...[...t.agents.flatMap(b => b.enCours), ...(t.directs ?? [])]
|
|
1887
|
+
.filter(x => !enCircuit.has(x.id))
|
|
1888
|
+
.map(x => ligne(x, '▶')),
|
|
1787
1889
|
],
|
|
1788
1890
|
};
|
|
1789
1891
|
}
|
|
@@ -1797,7 +1899,7 @@ export function etatsDAgents(t) {
|
|
|
1797
1899
|
export function comptesDAgents(t, projet) {
|
|
1798
1900
|
const l = etatsDAgents(t).lignes.filter(x => projet === undefined || x.projet === projet);
|
|
1799
1901
|
const n = s => l.filter(x => x.signe === s).length;
|
|
1800
|
-
return { enCours: n('▶'), enAttente: n('⏸'), arretes: n('⛔') };
|
|
1902
|
+
return { enCours: n('▶') + n('▷'), enAttente: n('⏸'), arretes: n('⛔') };
|
|
1801
1903
|
}
|
|
1802
1904
|
|
|
1803
1905
|
// The board's lines, `largeur` columns wide, each with its tone (titre, alerte, attention, actif,
|
|
@@ -1825,7 +1927,9 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
1825
1927
|
// The labels' column of the head and of AGENTS, « [OB] », « [OSD] ».
|
|
1826
1928
|
const large = Math.max(0, ...(t.projets ?? []).map(p => p.etiquette.length + 3));
|
|
1827
1929
|
const colonneDe = etiquette => `[${etiquette}]`.padEnd(large);
|
|
1828
|
-
|
|
1930
|
+
// The first line: the project's name, the frame's version at its right edge.
|
|
1931
|
+
const version = versionDuPanneau();
|
|
1932
|
+
L(version ? couper(nom.toUpperCase(), version, largeur) : nom.toUpperCase(), TONS.titre);
|
|
1829
1933
|
// The state of each ticket's line of AGENTS, which AGENTS draws and the head counts.
|
|
1830
1934
|
const etats = etatsDAgents(t);
|
|
1831
1935
|
// The three lines of the head, grouped by who acts, each with its tone from TONS; an absent
|
|
@@ -1931,32 +2035,21 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
1931
2035
|
L('AGENTS ▶ en cours · en attente', TONS.titre);
|
|
1932
2036
|
const maintenant = t.maintenant ?? Date.now();
|
|
1933
2037
|
// The places of the machine (scripts/places-de-la-machine.mjs), the first line of AGENTS:
|
|
1934
|
-
// « Places
|
|
2038
|
+
// « Places 2/9/10 · charge 11,2/12 · mémoire 9/30 Go », the places of circuits the board's
|
|
2039
|
+
// projects hold, those held on the machine and the ceiling, the load
|
|
1935
2040
|
// over one minute of the cores, the free memory of the total; a value of the ceiling the poste names and the
|
|
1936
2041
|
// server refused, in place of the load and the memory, by its name.
|
|
1937
2042
|
const p = t.places;
|
|
1938
2043
|
if (p) {
|
|
1939
2044
|
const nb = n => (Number.isInteger(n) ? String(n) : n.toFixed(1).replace('.', ','));
|
|
1940
|
-
// Who holds each place stands between the count and the load: the most names that keep the
|
|
1941
|
-
// line within the width, the others counted « +n ».
|
|
1942
|
-
const noms = p.noms ?? [];
|
|
1943
2045
|
const suite = p.faute
|
|
1944
2046
|
? `plafond refusé : ${p.faute}`
|
|
1945
2047
|
: `charge ${nb(p.charge)}/${p.coeurs} · mémoire ${p.memoireGo}/${p.memoireTotaleGo} Go`;
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
? `${[noms.slice(0, k).join(', '), ...(k < noms.length ? [`+${noms.length - k}`] : [])]
|
|
1950
|
-
.filter(Boolean)
|
|
1951
|
-
.join(' ')} · `
|
|
1952
|
-
: ''
|
|
1953
|
-
}${suite}`;
|
|
1954
|
-
let k = noms.length;
|
|
1955
|
-
while (k > 0 && colonnes(ligne(k)) > largeur) {
|
|
1956
|
-
k--;
|
|
1957
|
-
}
|
|
2048
|
+
// The places of circuits: the board's own (its project's, its projects' on a board of several),
|
|
2049
|
+
// those held on the whole machine, the ceiling.
|
|
2050
|
+
const ligne = `Places ${p.siennes ?? 0}/${p.prises}/${p.plafond} · ${suite}`;
|
|
1958
2051
|
poser({
|
|
1959
|
-
texte: cadre(ligne
|
|
2052
|
+
texte: cadre(ligne, '', largeur),
|
|
1960
2053
|
ton: p.faute ? TONS.plafondRefuse : p.charge >= p.coeurs ? TONS.machineChargee : TONS.mesure,
|
|
1961
2054
|
});
|
|
1962
2055
|
// A ticket that waits for the disk of its project's copies: what holds it, the ticket named.
|
|
@@ -1967,16 +2060,27 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
1967
2060
|
ticket: w.ticket,
|
|
1968
2061
|
});
|
|
1969
2062
|
}
|
|
1970
|
-
// The
|
|
1971
|
-
//
|
|
1972
|
-
|
|
2063
|
+
// The machine closed by the supervisor (`fermeture` of the places: since when, its phase): said,
|
|
2064
|
+
// with how long it has lasted, so a closure forgotten is seen; it holds no place itself, so it
|
|
2065
|
+
// says what its places still do.
|
|
2066
|
+
if (p.fermeture) {
|
|
2067
|
+
const { depuis, phase } = p.fermeture;
|
|
2068
|
+
poser({
|
|
2069
|
+
texte: couperAvant(
|
|
2070
|
+
'machine fermée par le superviseur',
|
|
2071
|
+
` · depuis ${dureeDeLaFermeture(maintenant - depuis)}`,
|
|
2072
|
+
'',
|
|
2073
|
+
largeur
|
|
2074
|
+
),
|
|
2075
|
+
ton: TONS.attendLeDisque,
|
|
2076
|
+
});
|
|
1973
2077
|
poser({
|
|
1974
2078
|
texte: cadre(
|
|
1975
|
-
|
|
2079
|
+
phase === 'vide' ? 'la machine est vide' : 'attend la fin des étapes en cours',
|
|
1976
2080
|
'',
|
|
1977
2081
|
largeur
|
|
1978
2082
|
),
|
|
1979
|
-
ton:
|
|
2083
|
+
ton: TONS.attendLeDisque,
|
|
1980
2084
|
});
|
|
1981
2085
|
}
|
|
1982
2086
|
}
|
|
@@ -2003,10 +2107,10 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
2003
2107
|
});
|
|
2004
2108
|
}
|
|
2005
2109
|
const enCircuit = new Set((t.circuits ?? []).map(c => c.id));
|
|
2006
|
-
const duCircuit = x => Boolean(x.ticket && enCircuit.has(x.ticket));
|
|
2007
2110
|
// The parts of the machine (`lireLaMesure`, `lignesDesParts`): the budget taken, then who holds
|
|
2008
|
-
// a part and who waits for what; the part of each
|
|
2009
|
-
// (`etatsDAgents`),
|
|
2111
|
+
// a part and who waits for what; the part of each ticket shown stands on its line
|
|
2112
|
+
// (`etatsDAgents`), a ticket's pass the board does not show nowhere but in the count, the pass
|
|
2113
|
+
// without a ticket here. A reserve of the user that is faulty is said by its name.
|
|
2010
2114
|
const m = t.machine;
|
|
2011
2115
|
if (m?.faute) {
|
|
2012
2116
|
poser({
|
|
@@ -2019,12 +2123,16 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
2019
2123
|
budget: m.budget,
|
|
2020
2124
|
prises: m.prises,
|
|
2021
2125
|
attentes: m.attentes,
|
|
2022
|
-
masquer:
|
|
2126
|
+
masquer: p => Boolean(p.ticket),
|
|
2023
2127
|
court: courtDuTicket,
|
|
2024
2128
|
})) {
|
|
2025
2129
|
poser({
|
|
2026
2130
|
texte: cadre(l, '', largeur),
|
|
2027
|
-
ton: l.startsWith('⏳')
|
|
2131
|
+
ton: l.startsWith('⏳')
|
|
2132
|
+
? TONS.attendUnePart
|
|
2133
|
+
: l.startsWith('Parts')
|
|
2134
|
+
? TONS.mesure
|
|
2135
|
+
: TONS.enCours,
|
|
2028
2136
|
...(l.startsWith('Parts') ? {} : { avancement: true }),
|
|
2029
2137
|
});
|
|
2030
2138
|
}
|
|
@@ -2073,7 +2181,9 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
2073
2181
|
const e = etapeDe(c);
|
|
2074
2182
|
return e ? blocDe(e) : !c.vivant ? ailleurs : blocDe(ETAPES[0]);
|
|
2075
2183
|
};
|
|
2076
|
-
const montres = t.agents.flatMap(b => b.enCours.
|
|
2184
|
+
const montres = [...t.agents.flatMap(b => b.enCours), ...(t.directs ?? [])].filter(
|
|
2185
|
+
x => !enCircuit.has(x.id)
|
|
2186
|
+
);
|
|
2077
2187
|
// A ticket's number, or on several projects' board its whole id, in one column.
|
|
2078
2188
|
const nomme = x => String(plusieurs ? x.id : x.numero);
|
|
2079
2189
|
const colonne = Math.max(
|
|
@@ -2082,17 +2192,29 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
2082
2192
|
);
|
|
2083
2193
|
// A ticket's line in AGENTS: « <signe> <numéro> <sujet> … <droite> »; on several projects'
|
|
2084
2194
|
// board « <[projet]> <id> <sujet> … <signe> <droite> », the owner's maquette (grillhouse-erp.1).
|
|
2195
|
+
// The icon of its pass (🔒 holds a part, ⏳ waits for one) follows the head, before the subject.
|
|
2085
2196
|
const teteDe = (signe, x) =>
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2197
|
+
`${
|
|
2198
|
+
plusieurs
|
|
2199
|
+
? `${colonneDe(x.projet)}${nomme(x).padEnd(colonne)} `
|
|
2200
|
+
: `${signe} ${nomme(x).padEnd(colonne)} `
|
|
2201
|
+
}${etats.parts.has(x.id) ? `${etats.parts.get(x.id).icone} ` : ''}`;
|
|
2202
|
+
// What the pass of the ticket <x> says on its line, after its kind.
|
|
2203
|
+
const partDuTicket = x => etats.parts.get(x.id)?.texte ?? '';
|
|
2089
2204
|
const droiteDe = (signe, droite) =>
|
|
2090
2205
|
plusieurs ? `${signe}${droite ? ` ${droite}` : ''}` : droite;
|
|
2091
2206
|
// A ticket's line of `largeur` columns: its head <tete> (its sign and number, or its project and
|
|
2092
2207
|
// id) whole, then its subject, cut to leave <suite> and the right part <droite> whole; without
|
|
2093
2208
|
// room for the subject, <suite> is cut, never the head.
|
|
2094
|
-
const ligneDuTicket = (tete, sujet,
|
|
2095
|
-
const
|
|
2209
|
+
const ligneDuTicket = (tete, sujet, suiteEntiere, droite, coupable = false) => {
|
|
2210
|
+
const libre = largeur - colonnes(tete) - (droite ? colonnes(droite) + 1 : 0);
|
|
2211
|
+
// The subject keeps its room (PLACE_DU_SUJET at most), the suite is cut for it.
|
|
2212
|
+
const gardee = Math.min(PLACE_DU_SUJET, colonnes(sujet));
|
|
2213
|
+
const suite =
|
|
2214
|
+
coupable && colonnes(suiteEntiere) > libre - gardee && libre - gardee >= 2
|
|
2215
|
+
? `${debutDe(suiteEntiere, libre - gardee - 1)}…`
|
|
2216
|
+
: suiteEntiere;
|
|
2217
|
+
const place = libre - colonnes(suite);
|
|
2096
2218
|
if (place < 2) {
|
|
2097
2219
|
return couper(`${tete}${suite}`, droite, largeur);
|
|
2098
2220
|
}
|
|
@@ -2131,13 +2253,17 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
2131
2253
|
...(temoin ? { avancement: true } : {}),
|
|
2132
2254
|
});
|
|
2133
2255
|
};
|
|
2256
|
+
const chez = chezLui(t);
|
|
2134
2257
|
const contenu = b => {
|
|
2135
2258
|
const tous = (t.circuits ?? []).filter(c => blocDuCircuit(c) === b);
|
|
2136
|
-
const circuits = tous.filter(c => !enQuestion(c));
|
|
2259
|
+
const circuits = tous.filter(c => !enQuestion(c, chez));
|
|
2137
2260
|
// The circuits on a question, by who must answer it, the supervisor first.
|
|
2138
|
-
const enQuestions = [
|
|
2261
|
+
const enQuestions = [
|
|
2262
|
+
SUPERVISEUR,
|
|
2263
|
+
...new Set(tous.map(c => enQuestion(c, chez)).filter(Boolean)),
|
|
2264
|
+
]
|
|
2139
2265
|
.filter((qui, i, l) => l.indexOf(qui) === i)
|
|
2140
|
-
.map(qui => [qui, tous.filter(c => enQuestion(c) === qui)])
|
|
2266
|
+
.map(qui => [qui, tous.filter(c => enQuestion(c, chez) === qui)])
|
|
2141
2267
|
.filter(([, l]) => l.length);
|
|
2142
2268
|
const enCours = b.enCours.filter(x => !enCircuit.has(x.id));
|
|
2143
2269
|
return {
|
|
@@ -2158,13 +2284,22 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
2158
2284
|
}
|
|
2159
2285
|
for (const x of enCours) {
|
|
2160
2286
|
L(
|
|
2161
|
-
ligneDuTicket(
|
|
2287
|
+
ligneDuTicket(
|
|
2288
|
+
teteDe('▶', x),
|
|
2289
|
+
x.sujet,
|
|
2290
|
+
partDuTicket(x),
|
|
2291
|
+
droiteDe('▶', conso(x.travail, x.jetons)),
|
|
2292
|
+
true
|
|
2293
|
+
),
|
|
2162
2294
|
TONS.enCours,
|
|
2163
2295
|
x.id
|
|
2164
2296
|
);
|
|
2165
2297
|
}
|
|
2166
2298
|
for (const [qui, l] of enQuestions) {
|
|
2167
|
-
L(
|
|
2299
|
+
L(
|
|
2300
|
+
cadre(`${retrait}⤷ Question · ${qui}`, etatDeLaQuestion(l[0], t) || ' ', largeur),
|
|
2301
|
+
TONS.titre
|
|
2302
|
+
);
|
|
2168
2303
|
for (const c of l) {
|
|
2169
2304
|
ligneDuCircuit(c);
|
|
2170
2305
|
}
|
|
@@ -2175,11 +2310,36 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
2175
2310
|
cadre(`${retrait}${b.numero} · ${b.titre}${b.qui ? ` · ${b.qui}` : ''}`, '', largeur),
|
|
2176
2311
|
plein ? TONS.titre : TONS.vide
|
|
2177
2312
|
);
|
|
2178
|
-
// The
|
|
2179
|
-
//
|
|
2313
|
+
// The block « Direct », first of the agents: a line per ticket an agent of a direct works, its
|
|
2314
|
+
// number, its subject, its role and its duration: « ▶ <numéro> <sujet> · direct ».
|
|
2315
|
+
const lesDirects = (t.directs ?? []).filter(x => !enCircuit.has(x.id));
|
|
2316
|
+
if (lesDirects.length) {
|
|
2317
|
+
L(cadre(' Direct', '', largeur), TONS.titre);
|
|
2318
|
+
for (const x of lesDirects) {
|
|
2319
|
+
poser({
|
|
2320
|
+
texte: ligneDuTicket(
|
|
2321
|
+
teteDe('▶', x),
|
|
2322
|
+
x.sujet,
|
|
2323
|
+
` · ${ROLE_DIRECT}${partDuTicket(x)}`,
|
|
2324
|
+
droiteDe('▶', conso(x.travail, x.jetons)),
|
|
2325
|
+
true
|
|
2326
|
+
),
|
|
2327
|
+
ton: TONS.enCours,
|
|
2328
|
+
ticket: x.id,
|
|
2329
|
+
});
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
// The tickets worked out of a circuit with no agent at work, once each, before the steps, from
|
|
2333
|
+
// their claim to their close: « ▶ <numéro> <sujet> · en direct ».
|
|
2180
2334
|
for (const x of t.horsCircuit ?? []) {
|
|
2181
2335
|
poser({
|
|
2182
|
-
texte: ligneDuTicket(
|
|
2336
|
+
texte: ligneDuTicket(
|
|
2337
|
+
teteDe('▶', x),
|
|
2338
|
+
x.sujet,
|
|
2339
|
+
` · en direct${partDuTicket(x)}`,
|
|
2340
|
+
droiteDe('▶', ''),
|
|
2341
|
+
true
|
|
2342
|
+
),
|
|
2183
2343
|
ton: TONS.enDirect,
|
|
2184
2344
|
ticket: x.id,
|
|
2185
2345
|
});
|
|
@@ -2216,6 +2376,7 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
2216
2376
|
...(t.circuits ?? []).map(c => c.id),
|
|
2217
2377
|
...(t.horsCircuit ?? []).map(x => x.id),
|
|
2218
2378
|
...t.agents.flatMap(b => b.enCours.map(x => x.id)),
|
|
2379
|
+
...(t.directs ?? []).map(x => x.id),
|
|
2219
2380
|
]);
|
|
2220
2381
|
for (const ch of t.chantiers) {
|
|
2221
2382
|
L('', undefined);
|
|
@@ -2247,11 +2408,11 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
2247
2408
|
? 'attend archi'
|
|
2248
2409
|
: n.etat === 'enAttente'
|
|
2249
2410
|
? 'en attente'
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2411
|
+
: n.etat === 'reportes'
|
|
2412
|
+
? 'reporté'
|
|
2413
|
+
: n.etat === 'fermes'
|
|
2414
|
+
? '✓'
|
|
2415
|
+
: '';
|
|
2255
2416
|
// Every open ticket of the chantier has its line under the title of its state, the states in
|
|
2256
2417
|
// their order, the tickets in their numbers' order. A ticket an agent block shows stands there
|
|
2257
2418
|
// alone; its children keep their lines.
|
|
@@ -2354,10 +2515,17 @@ export function lignes(t, nom, largeur = LARGEUR, groupes = {}) {
|
|
|
2354
2515
|
const n = t.faitsDuJour.length;
|
|
2355
2516
|
const temps = t.faitsDuJour.reduce((s, x) => s + x.travail, 0);
|
|
2356
2517
|
const jetons = t.faitsDuJour.reduce((s, x) => s + x.jetons, 0);
|
|
2518
|
+
// The tickets of the day that took the short circuit.
|
|
2519
|
+
const courts = t.faitsDuJour.filter(x => x.voie === 'court').length;
|
|
2357
2520
|
L(
|
|
2358
2521
|
cadre(
|
|
2359
2522
|
"FAITS AUJOURD'HUI",
|
|
2360
|
-
|
|
2523
|
+
[
|
|
2524
|
+
`${n} ticket${n > 1 ? 's' : ''}`,
|
|
2525
|
+
...(courts ? [`${courts} court${courts > 1 ? 's' : ''}`] : []),
|
|
2526
|
+
duree(temps),
|
|
2527
|
+
k(jetons),
|
|
2528
|
+
].join(' · '),
|
|
2361
2529
|
largeur
|
|
2362
2530
|
),
|
|
2363
2531
|
TONS.titre
|
|
@@ -2742,11 +2910,12 @@ function lire(
|
|
|
2742
2910
|
// A read-only place keeps the board working, without its cache.
|
|
2743
2911
|
}
|
|
2744
2912
|
const jour = jourLu;
|
|
2745
|
-
// The kept results of the circuits of the tickets done since the day's marker,
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
tous.filter(x => x.closed_at && Date.parse(x.closed_at) >= jour).map(x => x.id)
|
|
2749
|
-
|
|
2913
|
+
// The kept results of the circuits of the tickets done since the day's marker, and of the
|
|
2914
|
+
// circuits read, in the main tree.
|
|
2915
|
+
const voies = voiesDesCircuits(commun ? path.dirname(commun) : racine, [
|
|
2916
|
+
...tous.filter(x => x.closed_at && Date.parse(x.closed_at) >= jour).map(x => x.id),
|
|
2917
|
+
...lesCircuitsLus.liste.map(c => c.ticket),
|
|
2918
|
+
]);
|
|
2750
2919
|
const t = assembler({
|
|
2751
2920
|
tous,
|
|
2752
2921
|
prefix,
|
|
@@ -2772,6 +2941,7 @@ function lire(
|
|
|
2772
2941
|
superviseur,
|
|
2773
2942
|
externes: lireLesExternes(racine, tous),
|
|
2774
2943
|
limite: maxDuProjet(commun ? path.dirname(commun) : racine) ?? null,
|
|
2944
|
+
lotSurMain: lotEstSurMain(commun ? path.dirname(commun) : racine),
|
|
2775
2945
|
});
|
|
2776
2946
|
return { t, prefix, tous, vivants, commun };
|
|
2777
2947
|
}
|
|
@@ -2789,7 +2959,8 @@ function lireLesPlaces() {
|
|
|
2789
2959
|
|
|
2790
2960
|
// The boards of several projects as one (grillhouse-erp.1), as the multi-root explorer of VS Code
|
|
2791
2961
|
// keeps one view and files each root under its name: <lus> holds each project's label
|
|
2792
|
-
// (`etiquette`, its ticket prefix)
|
|
2962
|
+
// (`etiquette`, its ticket prefix), the root of its main tree (`racine`, by which the places of
|
|
2963
|
+
// its circuits are counted) and its board (`t`) or the fault that keeps it out (`erreur`),
|
|
2793
2964
|
// the session's project first. Each ticket, alert and chantier is marked with its project's label
|
|
2794
2965
|
// (`projet`), the agents' blocks hold every project's tickets at their step, and `projets` gives
|
|
2795
2966
|
// each project's counters or fault, which the head shows one line each.
|
|
@@ -2819,6 +2990,7 @@ export function ensemble(lus) {
|
|
|
2819
2990
|
ciDeMain: premier.t.ciDeMain,
|
|
2820
2991
|
circuits: tous('circuits'),
|
|
2821
2992
|
horsCircuit: tous('horsCircuit'),
|
|
2993
|
+
directs: tous('directs'),
|
|
2822
2994
|
chantiers: lisibles.flatMap(l => l.t.chantiers.map(noeud(l.etiquette))),
|
|
2823
2995
|
autres: tous('autres'),
|
|
2824
2996
|
agents: premier.t.agents.map(b => {
|
|
@@ -2830,7 +3002,14 @@ export function ensemble(lus) {
|
|
|
2830
3002
|
}),
|
|
2831
3003
|
maintenant: premier.t.maintenant,
|
|
2832
3004
|
machine: premier.t.machine,
|
|
2833
|
-
places: premier.t.places
|
|
3005
|
+
places: premier.t.places && {
|
|
3006
|
+
...premier.t.places,
|
|
3007
|
+
siennes: (premier.t.places.tenues ?? []).filter(
|
|
3008
|
+
x =>
|
|
3009
|
+
x.racine &&
|
|
3010
|
+
lisibles.some(l => l.racine && path.resolve(l.racine) === path.resolve(x.racine))
|
|
3011
|
+
).length,
|
|
3012
|
+
},
|
|
2834
3013
|
nuit: premier.t.nuit,
|
|
2835
3014
|
faitsDuJour: tous('faitsDuJour'),
|
|
2836
3015
|
decouvertes: lisibles.reduce(
|
|
@@ -2970,6 +3149,15 @@ export async function tableau(
|
|
|
2970
3149
|
ici.t.alertes.push({ etat: 'panne', ton: TONS.panne, texte: ligneDeLaCiDeMain(ci) });
|
|
2971
3150
|
}
|
|
2972
3151
|
}
|
|
3152
|
+
// A start of the CI that GitHub refused is an alert apart (scripts/ci-de-main.mjs), until a start succeeds.
|
|
3153
|
+
const fauteDeLaCi = ici.t && ci ? fauteDeDeclenchement(racine) : null;
|
|
3154
|
+
if (fauteDeLaCi) {
|
|
3155
|
+
ici.t.alertes.push({
|
|
3156
|
+
etat: 'panne',
|
|
3157
|
+
ton: TONS.panne,
|
|
3158
|
+
texte: alerteDeDeclenchement(fauteDeLaCi).texte,
|
|
3159
|
+
});
|
|
3160
|
+
}
|
|
2973
3161
|
// A project is labelled by its sigle (scripts/sigle-du-projet.mjs: the key `grillhouse.sigle`, else
|
|
2974
3162
|
// its ticket prefix), as the line of the places names it; a project with neither keeps its
|
|
2975
3163
|
// folder's name. A faulty key is said in an alert, the prefix staying the sigle; two projects of
|
|
@@ -3009,7 +3197,15 @@ export async function tableau(
|
|
|
3009
3197
|
);
|
|
3010
3198
|
const etat = ligneEtat(ici.t, autres.map(l => l.t).filter(Boolean));
|
|
3011
3199
|
const t = projets.length
|
|
3012
|
-
? ensemble(
|
|
3200
|
+
? ensemble(
|
|
3201
|
+
lus.map(l => ({
|
|
3202
|
+
etiquette: etiquette(l),
|
|
3203
|
+
// The root of the project's main tree, which each place of a circuit carries.
|
|
3204
|
+
racine: l.commun ? path.dirname(l.commun) : l.dossier,
|
|
3205
|
+
t: l.t,
|
|
3206
|
+
erreur: l.erreur,
|
|
3207
|
+
}))
|
|
3208
|
+
)
|
|
3013
3209
|
: ici.t;
|
|
3014
3210
|
// The project is named by its repository's folder, as a shell prompt names it.
|
|
3015
3211
|
const nom = [path.basename(racine), ...lus.slice(1).map(etiquette)].join(' + ');
|