@roomi-fields/grillhouse 0.51.0 → 0.53.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 +68 -0
- package/agents/direct.md +1 -1
- package/cadre/templates/projet/vitest.config.cjs +45 -0
- package/charte/plan.md +47 -0
- package/charte/preuve.md +39 -0
- package/charte/superviseur.md +60 -0
- package/charte/tests.md +38 -0
- package/charte.md +23 -178
- package/dist/temporal/circuit/appel.d.ts +2 -0
- package/dist/temporal/circuit/appel.js +24 -2
- package/dist/temporal/circuit/appel.js.map +1 -1
- package/dist/temporal/circuit/client.d.ts +15 -7
- package/dist/temporal/circuit/client.js +42 -11
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/commande.js +17 -6
- package/dist/temporal/circuit/commande.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +9 -0
- package/dist/temporal/circuit/contrat.js +6 -0
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +25 -4
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/client.d.ts +35 -1
- package/dist/temporal/client.js +144 -1
- package/dist/temporal/client.js.map +1 -1
- package/dist/temporal/commande.js +31 -13
- package/dist/temporal/commande.js.map +1 -1
- package/dist/temporal/etat.d.ts +3 -1
- package/dist/temporal/etat.js +31 -17
- package/dist/temporal/etat.js.map +1 -1
- package/dist/temporal/file/activites.js +1 -1
- package/dist/temporal/file/activites.js.map +1 -1
- package/dist/temporal/file/contrat.d.ts +4 -5
- package/dist/temporal/file/contrat.js +2 -2
- package/dist/temporal/file/contrat.js.map +1 -1
- package/dist/temporal/file/deroule.js +7 -5
- package/dist/temporal/file/deroule.js.map +1 -1
- package/dist/temporal/installation.d.ts +103 -53
- package/dist/temporal/installation.js +842 -237
- package/dist/temporal/installation.js.map +1 -1
- package/dist/temporal/nuits/deroule.js +3 -1
- package/dist/temporal/nuits/deroule.js.map +1 -1
- package/dist/temporal/places/deroule.js +2 -1
- package/dist/temporal/places/deroule.js.map +1 -1
- package/dist/temporal/sonde/deroule.js +2 -1
- package/dist/temporal/sonde/deroule.js.map +1 -1
- package/dist/temporal/tickets/deroule.js +4 -3
- package/dist/temporal/tickets/deroule.js.map +1 -1
- package/dist/temporal/travailleur.d.ts +7 -1
- package/dist/temporal/travailleur.js +49 -25
- package/dist/temporal/travailleur.js.map +1 -1
- package/docs/INTERFACE.md +20 -14
- package/docs/architecture/circuit.md +19 -16
- package/docs/architecture/entree.md +8 -9
- package/docs/architecture/greffon.md +54 -20
- package/docs/architecture/installation.md +99 -60
- package/docs/architecture/machine.md +31 -4
- package/docs/architecture/tests.md +22 -8
- package/docs/lexique.md +12 -3
- package/hooks/hooks.json +10 -10
- package/hooks/register.tsx +84 -2
- package/package.json +4 -2
- package/scripts/activites.mjs +25 -9
- package/scripts/aiguillage.mjs +1 -1
- package/scripts/attente-au-tour.mjs +2 -3
- package/scripts/bilan.mjs +116 -56
- package/scripts/bilans-gardes.mjs +37 -0
- package/scripts/circuit.mjs +256 -42
- package/scripts/circuits-du-serveur.mjs +3 -2
- package/scripts/circuits-tenus.d.mts +7 -0
- package/scripts/circuits-tenus.mjs +17 -0
- package/scripts/copie-de-montee.mjs +354 -0
- package/scripts/copies-du-depot.d.mts +13 -0
- package/scripts/copies-du-depot.mjs +66 -0
- package/scripts/copies-finies.mjs +6 -40
- package/scripts/crochets.mjs +16 -2
- package/scripts/direct.mjs +2 -2
- package/scripts/droits.mjs +117 -38
- package/scripts/engendres.mjs +5 -3
- package/scripts/entree-de-seance.mjs +35 -0
- package/scripts/enveloppe/enveloppe.mjs +23 -16
- package/scripts/enveloppe/lancer.sh +32 -22
- package/scripts/enveloppe/travail-de-la-copie.mjs +154 -0
- package/scripts/etapes.mjs +11 -3
- package/scripts/faits-du-circuit.mjs +12 -5
- package/scripts/file-des-tickets.d.mts +13 -2
- package/scripts/file-des-tickets.mjs +44 -12
- package/scripts/greffons.mjs +42 -27
- package/scripts/grillhouse-maj.mjs +105 -85
- package/scripts/init.mjs +1 -1
- package/scripts/integration/file.mjs +5 -2
- package/scripts/integration/integrer.mjs +14 -4
- package/scripts/jointure.d.ts +18 -1
- package/scripts/langages/c/commandes.mjs +17 -7
- package/scripts/langages/cargo/commandes.mjs +87 -34
- package/scripts/langages/cargo/index.mjs +6 -3
- package/scripts/langages/cargo/sccache.mjs +15 -12
- package/scripts/langages/python/commandes.mjs +68 -15
- package/scripts/langages/python/squelette.mjs +4 -3
- package/scripts/langages/typescript/configurations-de-vitest.mjs +118 -0
- package/scripts/langages/typescript/index.mjs +14 -12
- package/scripts/langages/typescript/migrations/configurations-en-commonjs.mjs +299 -0
- package/scripts/langages/typescript/squelette.mjs +20 -17
- package/scripts/langages/typescript/tests-de-nuit.mjs +3 -3
- package/scripts/langages/typescript/turbo-des-paquets.mjs +76 -39
- package/scripts/langages/typescript/verifier.mjs +27 -2
- package/scripts/langages/typescript/vitest-config/base.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/cibles.mjs +2 -2
- package/scripts/langages/typescript/{vitest.nuit.config.mjs → vitest.nuit.config.cjs} +61 -50
- package/scripts/mesure/pression.mjs +5 -3
- package/scripts/migrations/serveurs-de-l-index.mjs +1 -1
- package/scripts/migrations/suivi-du-superviseur-retire.mjs +56 -0
- package/scripts/migrations.mjs +2 -0
- package/scripts/montee.mjs +524 -0
- package/scripts/nuit.sh +3 -2
- package/scripts/outil.mjs +5 -3
- package/scripts/paquet-npm.mjs +22 -0
- package/scripts/paquet.mjs +5 -5
- package/scripts/pre-compact.mjs +25 -0
- package/scripts/reponses-du-circuit.d.mts +17 -2
- package/scripts/reponses-du-circuit.mjs +78 -20
- package/scripts/resultats.mjs +42 -14
- package/scripts/retirer-les-copies-finies.mjs +4 -7
- package/scripts/seances.mjs +81 -29
- package/scripts/services-du-noyau.mjs +7 -2
- package/scripts/session-start.sh +19 -10
- package/scripts/sortie-de-seance.mjs +70 -0
- package/scripts/sortie.mjs +4 -7
- package/scripts/sous-commandes.mjs +1 -1
- package/scripts/superviseur.mjs +417 -159
- package/scripts/tableau.mjs +249 -152
- package/scripts/ticket-du-circuit.mjs +22 -0
- package/scripts/transitions.d.mts +6 -9
- package/scripts/transitions.mjs +123 -36
- package/scripts/verrou-de-fichier.d.mts +11 -0
- package/skills/direct/SKILL.md +21 -11
- package/skills/explorateur/SKILL.md +8 -3
- package/skills/grill/SKILL.md +11 -8
- package/skills/grill/references/paquets.md +4 -4
- package/skills/pitmaster/SKILL.md +99 -53
- package/skills/pitmaster/references/cadre.md +1 -1
- package/skills/pitmaster/references/consigne-agent.md +1 -1
- package/skills/pitmaster/references/tour.md +6 -5
- package/skills/relecteur/SKILL.md +9 -2
- package/skills/testwriter/SKILL.md +3 -3
- package/cadre/templates/projet/pitmaster/SUIVI.md +0 -22
- package/cadre/templates/projet/vitest.config.ts +0 -44
- package/scripts/attente-a-l-arret.mjs +0 -114
|
@@ -10,20 +10,27 @@
|
|
|
10
10
|
//
|
|
11
11
|
// lieux : [--maison <dossier>] [--unites <dossier>] [--racine <dossier>] [--systemctl <programme>]
|
|
12
12
|
//
|
|
13
|
+
// - `installer --declarations <dossier>` reads the project's declarations (its languages, the
|
|
14
|
+
// version it installs, its lock) in <dossier>, the copy of a montée (scripts/montee.mjs), the
|
|
15
|
+
// units naming the project of `--racine` all the same.
|
|
13
16
|
// - `installer` lays down the program `temporal` at its pinned version, its archive downloaded
|
|
14
17
|
// from its release (or read from <fichier>) and checked against its pinned sum, writes the units
|
|
15
|
-
// of the account
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
18
|
+
// of the account, starts the instance of the project's version and makes it current, and retires
|
|
19
|
+
// the drained ones (./installation.ts); the workers' templates take TEMPORAL from the
|
|
20
|
+
// program laid down, the package.json is not written. One pass plays at a time on the account,
|
|
21
|
+
// and its last gesture purges the versions of the tool nothing names; its report is written, and
|
|
22
|
+
// a source the purge cannot read, or a removal that fails, exits 1. An archive or a version refused, systemd
|
|
23
|
+
// failing, or a version that cannot be made current: its line on the error stream, exit 1. Systemd
|
|
24
|
+
// failing, the units stay written and not applied: the next run applies them.
|
|
19
25
|
// - `installer --programme-seul` lays down the program alone, checked as above, and writes its
|
|
20
26
|
// path, one line, on the standard output: no unit, no package.json, no systemctl. The night gets the
|
|
21
27
|
// pinned program so (`TEMPORAL=$(npx grillhouse temporal installer --programme-seul)`).
|
|
22
28
|
// - `etat` writes the state of each service on the standard output (./etat.ts); exit 0 when
|
|
23
29
|
// installed, 1 when not.
|
|
24
30
|
// - `perime` reads only (no systemctl, no download, no writing): it writes `perime` on the standard
|
|
25
|
-
// output when the units applied differ from what `installer` would write
|
|
26
|
-
//
|
|
31
|
+
// output when the units applied differ from what `installer` would write, or the instance of the
|
|
32
|
+
// project's version is not applied (travailleurPerime), and nothing otherwise; exit 0. The
|
|
33
|
+
// session's start asks it and names `installer` under « Manque ».
|
|
27
34
|
// - `purger` deletes the workflows closed for longer than the retention, then, with the server
|
|
28
35
|
// stopped, removes the orphan histories and compacts the database, and says the counts and the
|
|
29
36
|
// sizes (./installation.ts); a circuit in flight, the server or systemd failing: its line on the
|
|
@@ -33,11 +40,20 @@
|
|
|
33
40
|
// that a test plays under a trial home and never in the account's systemd.
|
|
34
41
|
// - A malformed call writes the usage on the error stream, exit 2.
|
|
35
42
|
import { readFileSync } from 'node:fs';
|
|
43
|
+
import path from 'node:path';
|
|
36
44
|
import { etat, texteDeLEtat } from './etat.js';
|
|
37
|
-
import { installer, lieuxDe, poserLeProgramme, purger, systemctlDuCompte, texteDeLaPurge, texteDeLInstallation, travailleurPerime, } from './installation.js';
|
|
45
|
+
import { codeDeLInstallation, installer, lieuxDe, poserLeProgramme, purger, systemctlDuCompte, texteDeLaPurge, texteDeLInstallation, travailleurPerime, } from './installation.js';
|
|
38
46
|
const USAGE = 'Usage : grillhouse temporal <installer|etat|perime|purger> [--programme-seul] [--archive <fichier>] ' +
|
|
39
|
-
'[--maison <dossier>] [--unites <dossier>] [--racine <dossier>] [--
|
|
40
|
-
|
|
47
|
+
'[--maison <dossier>] [--unites <dossier>] [--racine <dossier>] [--declarations <dossier>] ' +
|
|
48
|
+
'[--systemctl <programme>]\n';
|
|
49
|
+
const OPTIONS = new Set([
|
|
50
|
+
'--archive',
|
|
51
|
+
'--maison',
|
|
52
|
+
'--unites',
|
|
53
|
+
'--racine',
|
|
54
|
+
'--declarations',
|
|
55
|
+
'--systemctl',
|
|
56
|
+
]);
|
|
41
57
|
// The action and the options of <args>, or null for a malformed call.
|
|
42
58
|
function lire(args) {
|
|
43
59
|
const [action, ...reste] = args;
|
|
@@ -54,7 +70,8 @@ function lire(args) {
|
|
|
54
70
|
}
|
|
55
71
|
for (let i = 0; i < reste.length; i += 2) {
|
|
56
72
|
const [o, v] = [reste[i], reste[i + 1]];
|
|
57
|
-
|
|
73
|
+
const deLInstallation = o === '--archive' || o === '--declarations';
|
|
74
|
+
if (!OPTIONS.has(o) || v === undefined || (deLInstallation && action !== 'installer')) {
|
|
58
75
|
return null;
|
|
59
76
|
}
|
|
60
77
|
options[o.slice(2)] = v;
|
|
@@ -72,7 +89,7 @@ async function principal(args) {
|
|
|
72
89
|
const archive = o.archive;
|
|
73
90
|
const obtenir = archive ? { obtenir: () => Promise.resolve(readFileSync(archive)) } : {};
|
|
74
91
|
if (programmeSeul) {
|
|
75
|
-
if (o.unites || o.racine || o.systemctl) {
|
|
92
|
+
if (o.unites || o.racine || o.declarations || o.systemctl) {
|
|
76
93
|
process.stderr.write(USAGE);
|
|
77
94
|
return 2;
|
|
78
95
|
}
|
|
@@ -96,9 +113,10 @@ async function principal(args) {
|
|
|
96
113
|
process.stdout.write(texteDeLaPurge(await purger({ lieux, systemctl })));
|
|
97
114
|
return 0;
|
|
98
115
|
}
|
|
99
|
-
const
|
|
116
|
+
const declarations = o.declarations ? { declarations: path.resolve(o.declarations) } : {};
|
|
117
|
+
const r = await installer({ lieux, systemctl, ...obtenir, ...declarations });
|
|
100
118
|
process.stdout.write(texteDeLInstallation(r));
|
|
101
|
-
return
|
|
119
|
+
return codeDeLInstallation(r);
|
|
102
120
|
}
|
|
103
121
|
principal(process.argv.slice(2)).then(code => {
|
|
104
122
|
process.exitCode = code;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commande.js","sourceRoot":"","sources":["../../src/temporal/commande.ts"],"names":[],"mappings":";AACA,gGAAgG;AAChG,EAAE;AACF,sGAAsG;AACtG,8FAA8F;AAC9F,+FAA+F;AAC/F,mGAAmG;AACnG,6GAA6G;AAC7G,0GAA0G;AAC1G,EAAE;AACF,qGAAqG;AACrG,EAAE;AACF,+FAA+F;AAC/F,mGAAmG;AACnG,
|
|
1
|
+
{"version":3,"file":"commande.js","sourceRoot":"","sources":["../../src/temporal/commande.ts"],"names":[],"mappings":";AACA,gGAAgG;AAChG,EAAE;AACF,sGAAsG;AACtG,8FAA8F;AAC9F,+FAA+F;AAC/F,mGAAmG;AACnG,6GAA6G;AAC7G,0GAA0G;AAC1G,EAAE;AACF,qGAAqG;AACrG,EAAE;AACF,8FAA8F;AAC9F,gGAAgG;AAChG,yDAAyD;AACzD,+FAA+F;AAC/F,mGAAmG;AACnG,mGAAmG;AACnG,wFAAwF;AACxF,iGAAiG;AACjG,mGAAmG;AACnG,+GAA+G;AAC/G,qGAAqG;AACrG,gFAAgF;AAChF,+FAA+F;AAC/F,uGAAuG;AACvG,0FAA0F;AAC1F,4FAA4F;AAC5F,2BAA2B;AAC3B,oGAAoG;AACpG,mGAAmG;AACnG,6FAA6F;AAC7F,oEAAoE;AACpE,+FAA+F;AAC/F,iGAAiG;AACjG,mGAAmG;AACnG,0BAA0B;AAC1B,gGAAgG;AAChG,iGAAiG;AACjG,6EAA6E;AAC7E,mEAAmE;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,IAAI,MAAM,WA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AC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1F,MAAM,CAAC,GAAG,MAAM,SAAS,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,OAAO,EAAE,GAAG,YAAY,EAAE,CAAC,CAAC;IAC7E,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9C,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CACnC,IAAI,CAAC,EAAE;IACL,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;AAC1B,CAAC,EACD,CAAC,CAAU,EAAE,EAAE;IACb,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACxE,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CACF,CAAC"}
|
package/dist/temporal/etat.d.ts
CHANGED
|
@@ -3,12 +3,14 @@ import { type Epingle, type Lieux, type Systemctl } from './installation.js';
|
|
|
3
3
|
interface EtatDuService {
|
|
4
4
|
role: 'serveur' | 'travailleur du projet' | 'travailleur de la machine';
|
|
5
5
|
unite: string;
|
|
6
|
+
/** The version an instance names; absent for the server. */
|
|
7
|
+
version?: string;
|
|
6
8
|
actif: boolean;
|
|
7
9
|
}
|
|
8
10
|
/** The state of the account's Temporal. */
|
|
9
11
|
export interface Etat {
|
|
10
12
|
installe: boolean;
|
|
11
|
-
/** The program
|
|
13
|
+
/** The program and the unit files missing, by their paths; a task queue without any instance. */
|
|
12
14
|
manques: string[];
|
|
13
15
|
programme: {
|
|
14
16
|
chemin: string;
|
package/dist/temporal/etat.js
CHANGED
|
@@ -1,38 +1,52 @@
|
|
|
1
|
-
// The state of the account's Temporal (`grillhouse temporal etat`; installation.md §3.1): for the
|
|
2
|
-
// the
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
1
|
+
// The state of the account's Temporal (`grillhouse temporal etat`; installation.md §3.1): for the
|
|
2
|
+
// server and each instance applied of the workers of the project and of the machine, whether it runs
|
|
3
|
+
// (`systemctl --user is-active`), an instance with the version it names; the version of the program
|
|
4
|
+
// laid down (`temporal --version`), and whether the server answers (the common client library,
|
|
5
|
+
// ./client.ts). Without an installation (the program of the pinned version, a unit file, or any
|
|
6
|
+
// instance of one of the two task queues missing), it says what is missing, and the command fails.
|
|
6
7
|
import { spawnSync } from 'node:child_process';
|
|
7
8
|
import { existsSync } from 'node:fs';
|
|
8
9
|
import path from 'node:path';
|
|
9
10
|
import { sansReponseEn } from '../../scripts/sans-reponse.mjs';
|
|
10
11
|
import { DELAI_JOIGNABLE_MS, serveurJoignable } from './client.js';
|
|
11
|
-
import { cheminsDe, EPINGLE, unitesDe, } from './installation.js';
|
|
12
|
+
import { cheminsDe, EPINGLE, gabaritsDe, instancesAppliquees, UNITE_DU_SERVEUR, unitesDe, } from './installation.js';
|
|
12
13
|
/** The version that the program <programme> says (`temporal version <v> (…)`), or null. */
|
|
13
14
|
function versionDuProgramme(programme) {
|
|
14
15
|
const r = spawnSync(programme, ['--version'], { encoding: 'utf8' });
|
|
15
16
|
return /temporal version (\S+)/.exec(r.stdout ?? '')?.[1] ?? null;
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
'travailleur du projet',
|
|
20
|
-
'travailleur de la machine',
|
|
21
|
-
];
|
|
18
|
+
// The roles of the workers, in the order of their templates (`gabaritsDe`).
|
|
19
|
+
const ROLES = ['travailleur du projet', 'travailleur de la machine'];
|
|
22
20
|
/** The state of the account's Temporal at the places <lieux>. */
|
|
23
21
|
export async function etat({ lieux, systemctl, epingle = EPINGLE, versionDe = versionDuProgramme, joindre = () => serveurJoignable(), }) {
|
|
24
22
|
const { programme } = cheminsDe(lieux, epingle.version);
|
|
25
|
-
const
|
|
26
|
-
const
|
|
23
|
+
const files = [programme, ...unitesDe(lieux.racine).map(u => path.join(lieux.unites, u))].filter(f => !existsSync(f));
|
|
24
|
+
const travailleurs = gabaritsDe(lieux.racine).map(({ gabarit }, i) => ({
|
|
25
|
+
gabarit,
|
|
26
|
+
instances: instancesAppliquees(lieux, gabarit, epingle).map(({ unite, version }) => ({
|
|
27
|
+
role: ROLES[i],
|
|
28
|
+
unite,
|
|
29
|
+
version,
|
|
30
|
+
})),
|
|
31
|
+
}));
|
|
32
|
+
const manques = [
|
|
33
|
+
...files,
|
|
34
|
+
...travailleurs
|
|
35
|
+
.filter(t => t.instances.length === 0)
|
|
36
|
+
.map(t => `aucune instance ${t.gabarit.replace('@.service', '@<version>.service')}`),
|
|
37
|
+
];
|
|
27
38
|
const installe = manques.length === 0;
|
|
39
|
+
const services = [
|
|
40
|
+
{ role: 'serveur', unite: UNITE_DU_SERVEUR },
|
|
41
|
+
...travailleurs.flatMap(t => t.instances),
|
|
42
|
+
];
|
|
28
43
|
return {
|
|
29
44
|
installe,
|
|
30
45
|
manques,
|
|
31
46
|
programme: { chemin: programme, version: existsSync(programme) ? versionDe(programme) : null },
|
|
32
|
-
services:
|
|
33
|
-
|
|
34
|
-
unite,
|
|
35
|
-
actif: systemctl(['is-active', unite]).stdout.trim() === 'active',
|
|
47
|
+
services: services.map(s => ({
|
|
48
|
+
...s,
|
|
49
|
+
actif: systemctl(['is-active', s.unite]).stdout.trim() === 'active',
|
|
36
50
|
})),
|
|
37
51
|
joignable: installe ? await joindre() : null,
|
|
38
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"etat.js","sourceRoot":"","sources":["../../src/temporal/etat.ts"],"names":[],"mappings":"AAAA,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,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACrF,CAAC;IACD,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AAClC,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { readFile } from 'node:fs/promises';
|
|
|
8
8
|
import { fileURLToPath } from 'node:url';
|
|
9
9
|
import { jouer } from '../acte.js';
|
|
10
10
|
// The package.json of the package that carries this worker: three levels above this module, in
|
|
11
|
-
// src/ as in dist
|
|
11
|
+
// src/ as in dist/: its version is the one the queue says it started under.
|
|
12
12
|
const PACKAGE_JSON = new URL('../../../package.json', import.meta.url);
|
|
13
13
|
export async function lireLaVersionDeLOutil() {
|
|
14
14
|
const { version } = JSON.parse(await readFile(PACKAGE_JSON, 'utf8'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activites.js","sourceRoot":"","sources":["../../../src/temporal/file/activites.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,6DAA6D;AAC7D,iGAAiG;AACjG,8FAA8F;AAC9F,4FAA4F;AAC5F,4BAA4B;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAMnC,+FAA+F;AAC/F,
|
|
1
|
+
{"version":3,"file":"activites.js","sourceRoot":"","sources":["../../../src/temporal/file/activites.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,6DAA6D;AAC7D,iGAAiG;AACjG,8FAA8F;AAC9F,4FAA4F;AAC5F,4BAA4B;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAMnC,+FAA+F;AAC/F,4EAA4E;AAC5E,MAAM,YAAY,GAAG,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CAAC,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,CAAiC;IAC1E,MAAM,KAAK,CAAC,kBAAkB,EAAE,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -7,8 +7,8 @@ export declare const ISSUE_DE_LA_FILE = "issueDeLaFile";
|
|
|
7
7
|
/** The query of the queue: the entry under way and those that wait. */
|
|
8
8
|
export declare const L_ETAT_DE_LA_FILE = "etatDeLaFile";
|
|
9
9
|
/**
|
|
10
|
-
* The signal that asks the queue to restart as new
|
|
11
|
-
* continues as new at once; busy, it finishes its entry under way, gives its issue to the circuit,
|
|
10
|
+
* The signal that asks the queue to restart as new, which no command sends and the queue still
|
|
11
|
+
* treats for the histories in flight: at rest it continues as new at once; busy, it finishes its entry under way, gives its issue to the circuit,
|
|
12
12
|
* then continues as new with those that wait, none of them treated before.
|
|
13
13
|
*/
|
|
14
14
|
export declare const RELANCER = "relancer";
|
|
@@ -38,8 +38,7 @@ export interface VueDeLaFile {
|
|
|
38
38
|
attente: string[];
|
|
39
39
|
/**
|
|
40
40
|
* The version of the tool the queue started under (`lireLaVersionDeLOutil`, read when a run
|
|
41
|
-
* starts); a queue recorded before this field answers without it, which reads « inconnue
|
|
42
|
-
* (`temporal installer` restarts it).
|
|
41
|
+
* starts); a queue recorded before this field answers without it, which reads « inconnue ».
|
|
43
42
|
*/
|
|
44
43
|
version?: string;
|
|
45
44
|
}
|
|
@@ -50,7 +49,7 @@ export interface VueDeLaFile {
|
|
|
50
49
|
export interface IssueDeLaFile {
|
|
51
50
|
etat: 'ferme' | 'en-file' | 'rouvert' | 'echec';
|
|
52
51
|
raison: string;
|
|
53
|
-
/** A branch reopened
|
|
52
|
+
/** A branch reopened on a rebase that leaves files in conflict: the circuit takes its lot back. */
|
|
54
53
|
conflit?: boolean;
|
|
55
54
|
}
|
|
56
55
|
/**
|
|
@@ -14,8 +14,8 @@ export const ISSUE_DE_LA_FILE = 'issueDeLaFile';
|
|
|
14
14
|
/** The query of the queue: the entry under way and those that wait. */
|
|
15
15
|
export const L_ETAT_DE_LA_FILE = 'etatDeLaFile';
|
|
16
16
|
/**
|
|
17
|
-
* The signal that asks the queue to restart as new
|
|
18
|
-
* continues as new at once; busy, it finishes its entry under way, gives its issue to the circuit,
|
|
17
|
+
* The signal that asks the queue to restart as new, which no command sends and the queue still
|
|
18
|
+
* treats for the histories in flight: at rest it continues as new at once; busy, it finishes its entry under way, gives its issue to the circuit,
|
|
19
19
|
* then continues as new with those that wait, none of them treated before.
|
|
20
20
|
*/
|
|
21
21
|
export const RELANCER = 'relancer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contrat.js","sourceRoot":"","sources":["../../../src/temporal/file/contrat.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,uEAAuE;AACvE,8EAA8E;AAC9E,kGAAkG;AAClG,wFAAwF;AACxF,wFAAwF;AACxF,6FAA6F;AAE7F,6DAA6D;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,QAAQ,MAAM,EAAE,CAAC;AAC/D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC;AAC/B,0FAA0F;AAC1F,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAChD,uEAAuE;AACvE,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAChD;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"contrat.js","sourceRoot":"","sources":["../../../src/temporal/file/contrat.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,uEAAuE;AACvE,8EAA8E;AAC9E,kGAAkG;AAClG,wFAAwF;AACxF,wFAAwF;AACxF,6FAA6F;AAE7F,6DAA6D;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,QAAQ,MAAM,EAAE,CAAC;AAC/D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC;AAC/B,0FAA0F;AAC1F,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC;AAChD,uEAAuE;AACvE,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAChD;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;AA6CnC;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAC5B,MAAc,EACd,MAAc,EACd,CAAmF;IAEnF,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACjC,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;QAChB,OAAO;YACL,IAAI,EAAE,OAAO;YACb,MAAM,EAAE;gBACN,aAAa,MAAM,oBAAoB,KAAK,uCAAuC,CAAC,CAAC,SAAS,wJAAwJ;gBACtP,CAAC,CAAC,MAAM;aACT;iBACE,MAAM,CAAC,OAAO,CAAC;iBACf,IAAI,CAAC,KAAK,CAAC;SACf,CAAC;IACJ,CAAC;IACD,OAAO;QACL,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,CAAC,aAAa,KAAK,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;KAClF,CAAC;AACJ,CAAC"}
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
// for none: it starts the CI of main when the tip and the hour ask for it (one pass an hour at most,
|
|
15
15
|
// after a lot entered), then reads it, which opens the defect ticket of a red passage; it never
|
|
16
16
|
// waits for it. Past its length
|
|
17
|
-
// of history, or when the signal RELANCER asks it (
|
|
18
|
-
// continues as new between two entries, with those that wait: busy,
|
|
19
|
-
// way first and treats none of those that wait before restarting. The
|
|
20
|
-
// marker of the final pass (`deprecatePatch`) replay on it.
|
|
21
|
-
|
|
17
|
+
// of history, or when the signal RELANCER asks it (no command sends it; it is treated for the
|
|
18
|
+
// histories in flight), the queue continues as new between two entries, with those that wait: busy,
|
|
19
|
+
// it finishes its entry under way first and treats none of those that wait before restarting. The
|
|
20
|
+
// histories recorded with the marker of the final pass (`deprecatePatch`) replay on it.
|
|
21
|
+
// Deterministic: it imports the workflow API and the contract.
|
|
22
|
+
import { allHandlersFinished, ChildWorkflowCancellationType, condition, continueAsNew, defineQuery, defineSignal, deprecatePatch, getExternalWorkflowHandle, isCancellation, ParentClosePolicy, patched, proxyActivities, setHandler, startChild, workflowInfo, setWorkflowOptions, } from '@temporalio/workflow';
|
|
22
23
|
import { WorkflowExecutionAlreadyStartedError } from '@temporalio/common';
|
|
23
24
|
import { idDeLaFile, ENTRER, issueDeLEntree, ISSUE_DE_LA_FILE, L_ETAT_DE_LA_FILE, RELANCER, } from './contrat.js';
|
|
24
25
|
// Every act of the queue: a replacement of a branch and its install last 2 h at most; the rest
|
|
@@ -256,4 +257,5 @@ export async function fileDuProjet(entree) {
|
|
|
256
257
|
}
|
|
257
258
|
}
|
|
258
259
|
}
|
|
260
|
+
setWorkflowOptions({ versioningBehavior: 'AUTO_UPGRADE' }, fileDuProjet);
|
|
259
261
|
//# sourceMappingURL=deroule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deroule.js","sourceRoot":"","sources":["../../../src/temporal/file/deroule.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,sEAAsE;AACtE,mGAAmG;AACnG,iGAAiG;AACjG,qGAAqG;AACrG,+FAA+F;AAC/F,mGAAmG;AACnG,kGAAkG;AAClG,gGAAgG;AAChG,gGAAgG;AAChG,oGAAoG;AACpG,kGAAkG;AAClG,kGAAkG;AAClG,qGAAqG;AACrG,gGAAgG;AAChG,gCAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"deroule.js","sourceR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CAAC,MAAM,GAAG,CAAC,IAAI,OAAO,IAAI,UAAU,EAAE,CAAC;QACjE,IAAI,WAAW,EAAE,CAAC;YAChB,MAAM,UAAU,CAAC,WAAW,CAAC,CAAC;YAC9B,WAAW,GAAG,KAAK,CAAC;YACpB,WAAW,GAAG,KAAK,CAAC;QACtB,CAAC;QACD,iFAAiF;QACjF,WAAW,GAAG,CAAC,CAAC,MAAM,SAAS,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC;QAC5D,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YACnC,OAAO,GAAG,OAAO,CAAC,KAAK,EAAG,CAAC;YAC3B,MAAM,KAAK,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,CAAC;YAC/C,4DAA4D;YAC5D,MAAM,yBAAyB,CAAC,OAAO,CAAC,OAAO,CAAC;iBAC7C,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC;iBAC5B,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;YAC1B,OAAO,GAAG,IAAI,CAAC;YACf,WAAW,GAAG,IAAI,CAAC;YACnB,WAAW,GAAG,IAAI,CAAC;QACrB,CAAC;QACD,IAAI,OAAO,IAAI,UAAU,EAAE,EAAE,CAAC;YAC5B,MAAM,SAAS,CAAC,mBAAmB,CAAC,CAAC;YACrC,OAAO,aAAa,CAAsB,EAAE,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;QAC/E,CAAC;IACH,CAAC;AACH,CAAC;AAED,kBAAkB,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ClientDesDeploiements } from './client.js';
|
|
2
2
|
/** A platform the pin has an archive for, in the release's words. */
|
|
3
3
|
export type Plateforme = 'linux_amd64' | 'linux_arm64' | 'darwin_amd64' | 'darwin_arm64';
|
|
4
4
|
/** The version of the program `temporal` and the SHA-256 of the archive of each platform. */
|
|
@@ -10,8 +10,6 @@ export interface Epingle {
|
|
|
10
10
|
export declare const EPINGLE: Epingle;
|
|
11
11
|
/** The unit of the server. */
|
|
12
12
|
export declare const UNITE_DU_SERVEUR = "grillhouse-temporal.service";
|
|
13
|
-
/** The unit of the worker of the machine. */
|
|
14
|
-
export declare const UNITE_DE_LA_MACHINE = "grillhouse-travailleur-machine.service";
|
|
15
13
|
/** The task queue of the worker of the machine. */
|
|
16
14
|
export declare const FILE_DE_LA_MACHINE = "grillhouse-machine";
|
|
17
15
|
/** The platform of Node's <platform> and <arch>; refused by its name when the pin has none. */
|
|
@@ -26,37 +24,45 @@ export interface Lieux {
|
|
|
26
24
|
}
|
|
27
25
|
/** The places, each from the environment when absent: $HOME, its systemd/user, the cwd. */
|
|
28
26
|
export declare function lieuxDe({ maison, unites, racine }?: Partial<Lieux>, env?: Record<string, string | undefined>): Lieux;
|
|
29
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* The program of <version>, the server's database file, the units applied and the lock of the
|
|
29
|
+
* installation, under the home of <lieux>.
|
|
30
|
+
*/
|
|
30
31
|
export declare function cheminsDe(lieux: Lieux, version: string): {
|
|
31
32
|
programme: string;
|
|
32
33
|
donnees: string;
|
|
33
34
|
appliquees: string;
|
|
35
|
+
verrou: string;
|
|
34
36
|
};
|
|
35
|
-
/** The unit of the worker of the project at <racine>. */
|
|
36
|
-
export declare const uniteDuProjet: (racine: string) => string;
|
|
37
37
|
/** The task queue of the worker of the project at <racine>. */
|
|
38
38
|
export declare const fileDuProjet: (racine: string) => string;
|
|
39
|
-
/** The
|
|
39
|
+
/** The two templates of the workers, each with its task queue: the project's, the machine's. */
|
|
40
|
+
export declare const gabaritsDe: (racine: string) => {
|
|
41
|
+
gabarit: string;
|
|
42
|
+
file: string;
|
|
43
|
+
}[];
|
|
44
|
+
/** The three unit files, in their order: the server, the templates of the project and the machine. */
|
|
40
45
|
export declare const unitesDe: (racine: string) => string[];
|
|
41
46
|
/**
|
|
42
|
-
*
|
|
43
|
-
* the
|
|
47
|
+
* The instances of the template <gabarit> among the units applied at the places <lieux>, each with
|
|
48
|
+
* the version it names.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instancesAppliquees(lieux: Lieux, gabarit: string, epingle?: Epingle): {
|
|
51
|
+
unite: string;
|
|
52
|
+
version: string;
|
|
53
|
+
}[];
|
|
54
|
+
/**
|
|
55
|
+
* What a template runs besides the worker of its instance's version: Node, under the PATH <chemin>
|
|
56
|
+
* and the tools of the project <outils> (each its variable and its path).
|
|
44
57
|
*/
|
|
45
58
|
export interface Travail {
|
|
46
59
|
version: string;
|
|
47
60
|
node: string;
|
|
48
|
-
travailleur: string;
|
|
49
61
|
chemin: string;
|
|
50
62
|
outils: Record<string, string>;
|
|
51
63
|
}
|
|
52
64
|
/** The text of each unit of the account, by its file's name. */
|
|
53
|
-
export declare function textesDesUnites(lieux: Lieux, { version, node,
|
|
54
|
-
/**
|
|
55
|
-
* The frame's worker of the project at <racine>: that of the published version it names, laid down
|
|
56
|
-
* by <outil> (its folder), refused when that version carries none; else its own version of the
|
|
57
|
-
* frame, else this one.
|
|
58
|
-
*/
|
|
59
|
-
export declare function travailleurDe(racine: string, outil: (version: string) => string, exiger?: boolean): string;
|
|
65
|
+
export declare function textesDesUnites(lieux: Lieux, { version, node, chemin, outils }: Travail): Record<string, string>;
|
|
60
66
|
/**
|
|
61
67
|
* The PATH of each worker's unit: the folder of Node <node>, then those of the account's tools
|
|
62
68
|
* and of the <executables> of the languages <trouver> finds, then the system's; a program not
|
|
@@ -85,39 +91,44 @@ export interface OptionsDuProgramme {
|
|
|
85
91
|
plateforme?: Plateforme;
|
|
86
92
|
obtenir?: (url: string) => Promise<Buffer>;
|
|
87
93
|
}
|
|
94
|
+
export type { ClientDesDeploiements } from './client.js';
|
|
88
95
|
/** What the installation receives; each one but the places and systemctl has its default. */
|
|
89
96
|
export interface OptionsDInstallation extends OptionsDuProgramme {
|
|
90
97
|
systemctl: Systemctl;
|
|
91
98
|
node?: string;
|
|
92
|
-
travailleur?: string;
|
|
93
99
|
/**
|
|
94
|
-
* Lays down the published version of the frame
|
|
95
|
-
* the home of the places by default.
|
|
100
|
+
* Lays down the published version of the frame the project installs: its folder, under the cache
|
|
101
|
+
* of the home of the places by default.
|
|
96
102
|
*/
|
|
97
103
|
outil?: (version: string) => string;
|
|
98
104
|
/** The path of an account's tool, or null (`trouverDansLePath`). */
|
|
99
105
|
trouver?: (nom: string) => string | null;
|
|
106
|
+
/**
|
|
107
|
+
* The folder whose declarations the installation reads (the languages, the version the project
|
|
108
|
+
* installs, its lock), the paths and names staying those of the places: the copy of a montée; the
|
|
109
|
+
* project of the places by default.
|
|
110
|
+
*/
|
|
111
|
+
declarations?: string;
|
|
100
112
|
/**
|
|
101
113
|
* The tickets whose circuit runs on the server (`circuitDuTicket`, status Running); none when the
|
|
102
114
|
* server does not answer (`circuitsEnVolDuServeur`).
|
|
103
115
|
*/
|
|
104
|
-
circuitsEnVol?: () => string[]
|
|
116
|
+
circuitsEnVol?: () => string[] | Promise<string[]>;
|
|
105
117
|
/** Compacts the database file <base> and gives its size before and after (`compacterLaBase`). */
|
|
106
118
|
compacter?: (base: string) => Compactage;
|
|
107
|
-
/**
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
119
|
+
/** The Worker Deployments of the server (`deploiementsDuServeur`, ./client.ts). */
|
|
120
|
+
serveur?: ClientDesDeploiements;
|
|
121
|
+
/** The command line of each living process of the machine; throws when they do not read. */
|
|
122
|
+
processus?: () => string[][];
|
|
123
|
+
/** The tickets of the project at <racine> whose circuit the server holds; rejects when mute. */
|
|
124
|
+
circuitsTenus?: (racine: string) => Promise<string[]>;
|
|
125
|
+
/** The closed tickets of the project at <racine>; throws when they do not read. */
|
|
126
|
+
ticketsFermes?: (racine: string) => string[];
|
|
113
127
|
}
|
|
114
|
-
/**
|
|
115
|
-
export interface ClientDeLaFile {
|
|
116
|
-
vue(id: string): Promise<VueDeLaFile | null>;
|
|
117
|
-
relancer(id: string): Promise<void>;
|
|
118
|
-
}
|
|
119
|
-
/** The line the command writes of a report. */
|
|
128
|
+
/** What the command writes of a report: its line, then those of the purge of the versions. */
|
|
120
129
|
export declare function texteDeLInstallation(r: RapportDInstallation): string;
|
|
130
|
+
/** The exit code of an installation: 1 when the purge could not read a source or remove a version. */
|
|
131
|
+
export declare const codeDeLInstallation: (r: RapportDInstallation) => 0 | 1;
|
|
121
132
|
/** The size of the database before and after its compaction, in bytes. */
|
|
122
133
|
export interface Compactage {
|
|
123
134
|
avant: number;
|
|
@@ -137,10 +148,32 @@ export interface RapportDInstallation {
|
|
|
137
148
|
pose: boolean;
|
|
138
149
|
/** The units it wrote. */
|
|
139
150
|
unites: string[];
|
|
140
|
-
/** The
|
|
151
|
+
/** The server and the templates systemd was told of (written now, or never applied). */
|
|
141
152
|
appliquees: string[];
|
|
153
|
+
/** The instances it started. */
|
|
154
|
+
demarrees: string[];
|
|
155
|
+
/** The instances whose version it made current. */
|
|
156
|
+
courantes: string[];
|
|
157
|
+
/** The instances, and the units of before the template, it stopped, disabled and removed. */
|
|
158
|
+
retirees: string[];
|
|
159
|
+
/** The units it would retire but for a started activity their process holds. */
|
|
160
|
+
retenues: string[];
|
|
161
|
+
/** The running instances started under the former text of a template this pass changed. */
|
|
162
|
+
sousLAncienTexte: string[];
|
|
163
|
+
/**
|
|
164
|
+
* The drop-ins of the units of before the template: those this pass copied to the folder of the
|
|
165
|
+
* template, those it moved there (the former file removed), and those whose name that folder
|
|
166
|
+
* holds with another content.
|
|
167
|
+
*/
|
|
168
|
+
complements: {
|
|
169
|
+
copies: Complement[];
|
|
170
|
+
deplaces: Complement[];
|
|
171
|
+
conflits: Complement[];
|
|
172
|
+
};
|
|
142
173
|
/** Whether anything changed. */
|
|
143
174
|
change: boolean;
|
|
175
|
+
/** What the purge of the versions of the tool did. */
|
|
176
|
+
versions: RapportDesVersions;
|
|
144
177
|
/** The size of the database before and after its compaction; absent when it was not compacted. */
|
|
145
178
|
compactage?: Compactage;
|
|
146
179
|
/**
|
|
@@ -148,17 +181,35 @@ export interface RapportDInstallation {
|
|
|
148
181
|
* applies; absent when nothing deferred them.
|
|
149
182
|
*/
|
|
150
183
|
serveurDiffere?: string[];
|
|
184
|
+
}
|
|
185
|
+
/** A drop-in of a unit of before the template: its path there, and at the folder of the template. */
|
|
186
|
+
interface Complement {
|
|
187
|
+
depart: string;
|
|
188
|
+
arrivee: string;
|
|
189
|
+
}
|
|
190
|
+
/** What the purge of the versions of the tool did. */
|
|
191
|
+
interface RapportDesVersions {
|
|
151
192
|
/**
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
* restarts once that entry has its issue), or « aucune » (no queue in flight, a queue of the
|
|
155
|
-
* installed version, or a server that does not answer).
|
|
193
|
+
* The versions it removed, each with the size its files gave back, in bytes; `reste` for what
|
|
194
|
+
* an earlier removal left of a version something names.
|
|
156
195
|
*/
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
196
|
+
retirees: {
|
|
197
|
+
version: string;
|
|
198
|
+
octets: number;
|
|
199
|
+
reste: boolean;
|
|
200
|
+
}[];
|
|
201
|
+
/** The versions it kept, each with what names it. */
|
|
202
|
+
gardees: {
|
|
203
|
+
version: string;
|
|
204
|
+
raisons: string[];
|
|
205
|
+
}[];
|
|
206
|
+
/** The sources it could not read, each said. */
|
|
207
|
+
illisibles: string[];
|
|
208
|
+
/** The removals that failed. */
|
|
209
|
+
echecs: {
|
|
210
|
+
version: string;
|
|
211
|
+
raison: string;
|
|
212
|
+
}[];
|
|
162
213
|
}
|
|
163
214
|
/**
|
|
164
215
|
* Compacts the SQLite database <base> (`VACUUM`), its journal folded into it first; its size before
|
|
@@ -174,12 +225,12 @@ export declare function poserLeProgramme(options: OptionsDuProgramme): Promise<{
|
|
|
174
225
|
pose: boolean;
|
|
175
226
|
}>;
|
|
176
227
|
/**
|
|
177
|
-
* Whether the worker the account runs is stale:
|
|
178
|
-
* unites-appliquees.json)
|
|
179
|
-
* `grillhouse.outil
|
|
180
|
-
* laid down
|
|
181
|
-
*
|
|
182
|
-
*
|
|
228
|
+
* Whether the worker the account runs is stale: a unit applied by `installer` (the sums of
|
|
229
|
+
* unites-appliquees.json) differs from the text `installer` would write now, or the instance of the
|
|
230
|
+
* version the project installs (`grillhouse.outil`, else its installed package) is not among them;
|
|
231
|
+
* nothing laid down. Without an applied state, false: the initial deployment is not a rise. Any
|
|
232
|
+
* error of the computation (a tool not found) is stale, as `installer` refuses it by its name. It
|
|
233
|
+
* plays nothing and writes nothing.
|
|
183
234
|
*/
|
|
184
235
|
export declare function travailleurPerime({ lieux, epingle, node, trouver, }: {
|
|
185
236
|
lieux: Lieux;
|
|
@@ -199,7 +250,7 @@ export interface OptionsDeLaPurge {
|
|
|
199
250
|
systemctl: Systemctl;
|
|
200
251
|
epingle?: Epingle;
|
|
201
252
|
/** The tickets whose circuit runs on the server, as the installation asks them. */
|
|
202
|
-
circuitsEnVol?: () => string[]
|
|
253
|
+
circuitsEnVol?: () => string[] | Promise<string[]>;
|
|
203
254
|
/** How many workflows the server counts under a list filter (`compterSurLeServeur`). */
|
|
204
255
|
compter?: (requete: string) => Promise<number>;
|
|
205
256
|
temporal?: ProgrammeTemporal;
|
|
@@ -231,6 +282,5 @@ export declare function texteDeLaPurge(r: RapportDeLaPurge): string;
|
|
|
231
282
|
* again.
|
|
232
283
|
*/
|
|
233
284
|
export declare function purger({ lieux, systemctl, epingle, circuitsEnVol, compter, temporal, retirer, compacter, maintenant, attendre, }: OptionsDeLaPurge): Promise<RapportDeLaPurge>;
|
|
234
|
-
/** Installs the account's Temporal at the places <lieux
|
|
235
|
-
export declare function installer(
|
|
236
|
-
export {};
|
|
285
|
+
/** Installs the account's Temporal at the places <lieux>, one pass at a time (see the header). */
|
|
286
|
+
export declare function installer(options: OptionsDInstallation): Promise<RapportDInstallation>;
|