@roomi-fields/grillhouse 0.45.1 → 0.47.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 +52 -0
- package/cadre/templates/c/package.json +19 -0
- package/cadre/templates/projet/.github/workflows/ci.yml +34 -49
- package/cadre/templates/projet/.github/workflows/machine-vierge.yml +101 -0
- package/cadre/templates/projet/CLAUDE.md +28 -5
- package/cadre/templates/projet/docs/agents/issue-tracker.md +1 -1
- package/charte.md +61 -23
- package/dist/temporal/circuit/appel.d.ts +7 -0
- package/dist/temporal/circuit/appel.js +17 -0
- package/dist/temporal/circuit/appel.js.map +1 -1
- package/dist/temporal/circuit/client.d.ts +28 -5
- package/dist/temporal/circuit/client.js +56 -13
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/commande.js +16 -4
- package/dist/temporal/circuit/commande.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +22 -2
- package/dist/temporal/circuit/contrat.js +76 -0
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +68 -11
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/file/activites.d.ts +2 -0
- package/dist/temporal/file/activites.js +7 -0
- package/dist/temporal/file/activites.js.map +1 -1
- package/dist/temporal/file/contrat.d.ts +28 -18
- package/dist/temporal/file/contrat.js +8 -5
- package/dist/temporal/file/contrat.js.map +1 -1
- package/dist/temporal/file/deroule.d.ts +1 -1
- package/dist/temporal/file/deroule.js +91 -42
- package/dist/temporal/file/deroule.js.map +1 -1
- package/dist/temporal/tickets/activites.d.ts +1 -0
- package/dist/temporal/tickets/activites.js +37 -11
- package/dist/temporal/tickets/activites.js.map +1 -1
- package/dist/temporal/tickets/contrat.d.ts +14 -0
- package/dist/temporal/tickets/deroule.js +16 -3
- package/dist/temporal/tickets/deroule.js.map +1 -1
- package/docs/ARCHITECTURE.md +309 -128
- package/docs/INTERFACE.md +42 -22
- package/hooks/register.tsx +30 -0
- package/package.json +1 -1
- package/scripts/activites.mjs +60 -21
- package/scripts/arbres-juges.mjs +59 -0
- package/scripts/attente-a-l-arret.mjs +29 -52
- package/scripts/attente-au-tour.mjs +8 -26
- package/scripts/avancement.mjs +2 -38
- package/scripts/branche-de-nuit.mjs +14 -45
- package/scripts/ci-de-main.mjs +273 -0
- package/scripts/circuit.mjs +204 -64
- package/scripts/circuits-cles.d.mts +9 -0
- package/scripts/circuits-cles.mjs +38 -0
- package/scripts/coeurs-dedies.mjs +4 -3
- package/scripts/dernier-vert.mjs +78 -10
- package/scripts/enveloppe/travail-de-la-copie.mjs +5 -2
- package/scripts/etapes.mjs +7 -2
- package/scripts/faits-du-circuit.mjs +63 -28
- package/scripts/fichiers-nommes.mjs +55 -0
- package/scripts/file-des-tickets.d.mts +17 -0
- package/scripts/file-des-tickets.mjs +39 -0
- package/scripts/grillhouse-maj.mjs +20 -1
- package/scripts/integration/file.mjs +137 -592
- package/scripts/integration/integrer.mjs +10 -7
- package/scripts/langages/c/binaires.json +4 -0
- package/scripts/langages/c/binaires.mjs +83 -0
- package/scripts/langages/c/clang-format.mjs +62 -0
- package/scripts/langages/c/clang-tidy.mjs +93 -0
- package/scripts/langages/c/clang.mjs +42 -0
- package/scripts/langages/c/commandes.mjs +530 -0
- package/scripts/langages/c/composants.mjs +209 -0
- package/scripts/langages/c/exemples.mjs +250 -0
- package/scripts/langages/c/index-interfaces.mjs +77 -0
- package/scripts/langages/c/index.mjs +120 -0
- package/scripts/langages/c/lot.mjs +41 -0
- package/scripts/langages/c/mise-a-jour.mjs +70 -0
- package/scripts/langages/c/squelette.mjs +61 -0
- package/scripts/langages/c/verdict.mjs +99 -0
- package/scripts/langages/cargo/clippy.mjs +16 -9
- package/scripts/langages/cargo/commandes.mjs +7 -2
- package/scripts/langages/cargo/sccache.mjs +19 -6
- package/scripts/langages/typescript/tests.mjs +31 -5
- package/scripts/langages/typescript/turbo-des-paquets.mjs +67 -8
- package/scripts/langages/typescript/vitest-config/changements.mjs +32 -3
- package/scripts/langages/typescript/vitest-config/lances.mjs +16 -0
- package/scripts/langages-des-paquets.mjs +30 -2
- package/scripts/langages.mjs +1 -0
- package/scripts/limite-d-usage.mjs +88 -0
- package/scripts/mesure/avancement.mjs +1 -1
- package/scripts/migrations/0.47.0-ci-de-main.mjs +48 -0
- package/scripts/migrations.mjs +2 -2
- package/scripts/outils-cles.d.mts +13 -5
- package/scripts/outils-cles.mjs +157 -17
- package/scripts/passe-de-la-machine.mjs +26 -2
- package/scripts/places-de-la-machine.mjs +52 -6
- package/scripts/plafond-de-la-machine.d.mts +10 -2
- package/scripts/plafond-de-la-machine.mjs +39 -13
- package/scripts/reponses-du-circuit.d.mts +16 -0
- package/scripts/reponses-du-circuit.mjs +39 -3
- package/scripts/resultats.mjs +32 -11
- package/scripts/seances.mjs +211 -59
- package/scripts/session-start.sh +2 -11
- package/scripts/sortie.mjs +1 -1
- package/scripts/sous-commandes.mjs +5 -2
- package/scripts/superviseur.mjs +305 -295
- package/scripts/tableau.mjs +73 -45
- package/scripts/transitions.d.mts +22 -1
- package/scripts/transitions.mjs +111 -13
- package/scripts/workflows-du-cadre.mjs +21 -1
- package/skills/explorateur/SKILL.md +34 -13
- package/skills/grill/SKILL.md +6 -5
- package/skills/pitmaster/SKILL.md +33 -27
- package/skills/redacteur/references/documents-d-un-composant.md +1 -1
- package/skills/relecteur/SKILL.md +6 -0
- package/skills/testwriter/SKILL.md +4 -0
- package/scripts/ci-des-branches.mjs +0 -93
- package/scripts/migrations/0.33.0-ci-des-branches-de-ticket.mjs +0 -31
package/charte.md
CHANGED
|
@@ -36,7 +36,8 @@ professionnel.
|
|
|
36
36
|
`developpeur`). Ainsi le code se mesure à des tests qu'il n'a pas écrits. Un critère répond à
|
|
37
37
|
un besoin réel de l'usage actuel. Ainsi le ticket garde la taille du besoin.
|
|
38
38
|
5. Le ticket se ferme sur ses tests ciblés, le verdict du `relecteur` sur le lot et le commit du
|
|
39
|
-
circuit, seul à commiter, entré sur main par la file
|
|
39
|
+
circuit, seul à commiter, entré sur main par la file sur sa passe finale, la CI de main jouant
|
|
40
|
+
ensuite par paquets. Ainsi ce qui est déclaré fini l'est
|
|
40
41
|
vraiment.
|
|
41
42
|
6. Chaque agent laisse sa passation en commentaire au ticket (`bd comments add`), avec ce qui
|
|
42
43
|
n'est pas fait et pourquoi ; une séance que le circuit mène finit sur sa fiche, la sortie
|
|
@@ -58,6 +59,15 @@ mécaniques que la liste des étapes écrit (rejouer, régénérer, juger un lot
|
|
|
58
59
|
tout autre arrêt monte au superviseur avec sa pièce, et il monte au responsable ce qui lui
|
|
59
60
|
revient. Ainsi aucune séance ne juge ce qu'une règle tranche.
|
|
60
61
|
|
|
62
|
+
**Le greffon pousse les questions dans la file de la séance du superviseur, la réponse les
|
|
63
|
+
acquitte** : le greffon de la séance qui tient le verrou du superviseur met chaque question neuve
|
|
64
|
+
d'un circuit du projet et des projets de son groupe qu'aucune autre séance ne supervise, et chaque
|
|
65
|
+
fin de circuit, dans la file des messages de cette séance, un
|
|
66
|
+
message par relevé, à la fin du tour en cours ; une question sans réponse revient à l'intervalle
|
|
67
|
+
de la clé `grillhouse.rappel`, et sa réponse au circuit l'acquitte. Sans séance de superviseur ni
|
|
68
|
+
greffon, rien n'est poussé : le tableau, l'ouverture de séance et le crochet de fin de tour portent
|
|
69
|
+
les questions. Ainsi une question ne dépend d'aucune attente que la séance relance.
|
|
70
|
+
|
|
61
71
|
**Un agent qui a la réponse l'applique** : une décision qu'il sait trancher et qu'il recommande
|
|
62
72
|
(un nom, une signature, un paquet à retirer de son plan), il la prend et l'écrit dans sa fiche,
|
|
63
73
|
sans s'arrêter ; seule monte une question qui revient au responsable (le langage, l'architecture,
|
|
@@ -141,7 +151,7 @@ l'architecture fixe le langage, et le code le suit.
|
|
|
141
151
|
dossier qu'attend l'outil de son langage : près de son module pour un test unitaire (en Rust, un
|
|
142
152
|
`tests.rs` ou un dossier `tests/` sous `src/`, comme le veut le contrôle tidy de rustc), dans le
|
|
143
153
|
dossier de tests du paquet pour un test par l'interface (en Rust, un module de `tests/it/` du
|
|
144
|
-
crate). Les sortes de tests, qui les écrit, qui les lit et qui les joue sont les mêmes dans chaque
|
|
154
|
+
crate ; en C, un fichier `tests/test_<nom>.c` du paquet, un exécutable et un test CTest). Les sortes de tests, qui les écrit, qui les lit et qui les joue sont les mêmes dans chaque
|
|
145
155
|
langage ; seule l'adresse d'un fichier de test suit l'outil. Ainsi chaque test a un fichier à lui,
|
|
146
156
|
que le testwriter écrit.
|
|
147
157
|
|
|
@@ -163,26 +173,45 @@ données (des fichiers qu'un schéma valide, une fiche à un catalogue) ne passe
|
|
|
163
173
|
de code ; il passe par la validation du projet et sa CI, comme une formule de Homebrew ou un
|
|
164
174
|
type de DefinitelyTyped. Ainsi le circuit garde les tests et le code pour ce qui en a.
|
|
165
175
|
|
|
166
|
-
**Un
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
`eslint --fix
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
**Un ticket prend le circuit court quand aucun test honnête ne peut rougir avant son lot**, le
|
|
177
|
+
produit se comportant pareil avant et après : la suite existante, qui reste verte, et la relecture
|
|
178
|
+
font la preuve, comme les grands changements de Google (Rosie, ClangMR), Renovate, `nx migrate`,
|
|
179
|
+
`eslint --fix`, sans test neuf. Un test honnête échoue avant le lot et passe après, sur un
|
|
180
|
+
comportement qu'un test, un autre paquet ou une interface publiée observe. Le doute va au circuit
|
|
181
|
+
complet. L'explorateur juge au plan que le ticket est mécanique, et l'écrit avec sa raison, ce
|
|
182
|
+
qu'il a cherché et sa commande. La liste qui suit donne des exemples du critère, non son
|
|
183
|
+
périmètre : montée du cadre, documents seuls, renommage ou déplacement, montée de dépendance,
|
|
184
|
+
configuration seule (sans garde qui en mesure l'effet), correction de style, seuil relevé,
|
|
185
|
+
commentaires de code seuls, suppression de code sans appelant vivant, fichiers engendrés
|
|
186
|
+
régénérés, textes de messages qu'aucun test ni aucun autre paquet ne lit, typage resserré sans
|
|
187
|
+
changement à l'exécution et dont aucun lecteur du relevé ne casse à la compilation.
|
|
188
|
+
Le circuit court a deux formes : le geste qu'une commande ou un outil joue passe par 1.1 (Geste
|
|
189
|
+
mécanique, l'explorateur joue la commande du plan), sans testwriter ni développeur ; le geste
|
|
190
|
+
écrit à la main (commentaires, code supprimé, texte d'un message, typage resserré) saute le
|
|
191
|
+
testwriter et la preuve du rouge, et une séance du développeur écrit, puis les contrôles et la
|
|
192
|
+
relecture. Reste au circuit complet ce qu'un utilisateur ou un autre paquet observe (une sortie,
|
|
193
|
+
un code de retour, une interface publiée) ; le texte qui accompagne un changement de comportement
|
|
194
|
+
reste dans son lot. Une configuration dont une garde mesure l'effet reste au circuit. Une
|
|
195
|
+
réorganisation qui a du code garde sa règle : sous un plan qui dit « comportement tests-adaptés », la
|
|
196
|
+
suite existante fait la preuve : elle accepte chaque vert, le testwriter garde ses tests, et le
|
|
197
|
+
développeur écrit le code, puis les contrôles et la relecture ; « comportement inchangé » est le
|
|
198
|
+
geste écrit à la main, le développeur seul, sans testwriter ni preuve. Hors de ce cas, une preuve qui ne trouve aucun rouge passe aux
|
|
199
|
+
contrôles et à la relecture sans séance du développeur.
|
|
200
|
+
La bascule marche dans les deux sens, sur le même plan, ses paquets et ses critères gardés : le
|
|
201
|
+
testwriter qui ne trouve aucun comportement à tester s'arrête (motif `aucun-comportement`), et le
|
|
202
|
+
superviseur répond `--mecanique [<commande>]` (avec sa commande vers 1.1, sans elle vers le
|
|
203
|
+
développeur) ; le relecteur d'un lot du circuit court qui voit un comportement changer le rend
|
|
204
|
+
avec le motif `comportement-change`, et le ticket repart à 2 Tests, sa sorte changée. Cette
|
|
205
|
+
bascule compte parmi les `RENDU` : le troisième arrête toujours le circuit. Ainsi chaque séance
|
|
206
|
+
du circuit a un lot à écrire.
|
|
178
207
|
|
|
179
208
|
**Un ticket prend l'une de trois voies** : le circuit complet pour un comportement qui change ;
|
|
180
|
-
le circuit court
|
|
209
|
+
le circuit court pour un geste sans comportement neuf, que l'explorateur juge au plan par son critère, et que la bascule rend dans les deux sens ; hors
|
|
181
210
|
du circuit, mené en direct par le superviseur, pour un défaut du circuit lui-même (le circuit ne se
|
|
182
211
|
répare pas par lui-même), une correction triviale repérée en analyse (une ligne fautive, un
|
|
183
212
|
mauvais argument), un ticket de données ou le squelette d'un paquet ; il porte l'étiquette `direct`, que la file des
|
|
184
|
-
tickets ignore, même s'il porte aussi `circuit`. Un lot hors du circuit
|
|
185
|
-
|
|
213
|
+
tickets ignore, même s'il porte aussi `circuit`. Un lot hors du circuit entre
|
|
214
|
+
sur main sur sa vérification complète verte. Un changement de comportement du produit va au
|
|
186
215
|
circuit, même pressé. Ainsi la voie d'un ticket se lit à la charte, et non au choix de la séance.
|
|
187
216
|
|
|
188
217
|
**La file directe se tient comme la file des tickets** : un ticket direct attend ouvert, et l'en-tête
|
|
@@ -281,17 +310,26 @@ dossier.
|
|
|
281
310
|
lourde qui trouve moins de 4 Go libres, sous le dossier temporaire ou sur le disque de sa copie,
|
|
282
311
|
attend la place et dit ce qui l'occupe, le ticket nommé. Ainsi le poste ne sature jamais ses
|
|
283
312
|
disques.
|
|
284
|
-
- **Main reste vert** : la file n'avance main que sur l'arbre que la
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
313
|
+
- **Main reste vert** : la file n'avance main que sur l'arbre que la passe finale du circuit (ou,
|
|
314
|
+
hors du circuit, la vérification du lot direct) a jugé vert, le lot posé sur la pointe de main ;
|
|
315
|
+
elle n'attend aucune CI de branche. La CI du projet joue ensuite sur main, par paquets, au plus
|
|
316
|
+
une fois par heure (le modèle de Google, TAP, et de Chromium) : elle voit ce que la passe finale
|
|
317
|
+
ne joue pas (autres plates-formes, matrice de versions, flux hors `npm run verifier`). Un rouge
|
|
318
|
+
de la CI de main, ou de la machine vierge, alerte le superviseur avec les lots entrés depuis le
|
|
319
|
+
dernier vert, sans arrêter la file, et ouvre un ticket de défaut sous `a-valider` : un rouge de
|
|
320
|
+
main est un défaut ouvert tant que ce ticket n'est pas fermé. Un test connu rouge se met en
|
|
321
|
+
quarantaine dans le test lui-même (`it.skip` ou `it.fails`), avec le ticket qui le corrige.
|
|
322
|
+
Ainsi chaque rouge a son ticket.
|
|
288
323
|
- **L'index d'abord** : toute recherche commence par `rtfm_search` (mode `hybrid`) pour le quoi, et
|
|
289
324
|
par `codegraph explore` (ou l'outil `codegraph_explore`) pour l'appel ; le shell lit un fichier
|
|
290
325
|
déjà nommé. Ainsi une affirmation sur le code repose sur ce que le code contient.
|
|
291
326
|
- **Tout se lit, le plan s'écrit** : dans son enveloppe, un agent lit tout le dépôt, index compris,
|
|
292
327
|
et n'écrit que les paquets que le plan de son ticket nomme. Une écriture hors du plan l'arrête,
|
|
293
|
-
et le superviseur étend le plan ou refuse.
|
|
294
|
-
|
|
328
|
+
et le superviseur étend le plan ou refuse. Deux cas le circuit étend le plan lui-même, sans
|
|
329
|
+
arrêt, sa pièce écrite au ticket : un fichier que la description du ticket nomme, et un
|
|
330
|
+
composant que le relevé nommait et que le plan avait écarté, quand il rougit aux contrôles ou à
|
|
331
|
+
la passe finale (écarter un lecteur est une prévision, que les contrôles vérifient). Ainsi
|
|
332
|
+
l'agent lit ce dont il a besoin, et les gardes tiennent l'architecture.
|
|
295
333
|
- Tickets : Beads (`bd`), sous le préfixe du projet, voir `docs/agents/issue-tracker.md`.
|
|
296
334
|
- Une compétence du cadre s'appelle avec son préfixe `grillhouse:` ; un document pour un agent
|
|
297
335
|
s'écrit avec `grillhouse:writing-for-agents`.
|
|
@@ -13,6 +13,13 @@ export interface Appel {
|
|
|
13
13
|
/** The hour its question waits for (`bd update --defer`), the circuit left in its wait. */
|
|
14
14
|
reporter: string | null;
|
|
15
15
|
recommencer: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The answer to a stop of the testwriter that finds no behaviour to test (`--mecanique`): the
|
|
18
|
+
* command a gesture plays (1.1), or none for a gesture written by hand (the developpeur).
|
|
19
|
+
*/
|
|
20
|
+
mecanique: {
|
|
21
|
+
commande: string | null;
|
|
22
|
+
} | null;
|
|
16
23
|
contexte: string | null;
|
|
17
24
|
}
|
|
18
25
|
/** The refusal of a fresh launch of <ticket> whose circuit was stopped on the supervisor's word. */
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { ETAPES_DE_REPRISE } from './contrat.js';
|
|
4
4
|
export const USAGE = 'usage: npx grillhouse circuit <ticket> [--reprendre [--contexte <texte>] | ' +
|
|
5
5
|
'--depuis <testwriter|preuve|developpeur|controles|passe-finale> --contexte <texte> | ' +
|
|
6
|
+
'--mecanique [<commande>] --contexte <raison> | ' +
|
|
6
7
|
'--etendre <paquet>[,<paquet>…] [--contexte <texte>] | --arreter [--contexte <motif>] | ' +
|
|
7
8
|
'--reporter <heure> [--contexte <motif>] | ' +
|
|
8
9
|
'--recommencer]\n';
|
|
@@ -23,6 +24,7 @@ export function lireLAppel(argv) {
|
|
|
23
24
|
arreter: false,
|
|
24
25
|
reporter: null,
|
|
25
26
|
recommencer: false,
|
|
27
|
+
mecanique: null,
|
|
26
28
|
contexte: null,
|
|
27
29
|
};
|
|
28
30
|
for (let i = 0; i < argv.length; i++) {
|
|
@@ -44,6 +46,14 @@ export function lireLAppel(argv) {
|
|
|
44
46
|
else if (a === '--recommencer') {
|
|
45
47
|
o.recommencer = true;
|
|
46
48
|
}
|
|
49
|
+
else if (a === '--mecanique') {
|
|
50
|
+
// Its command is optional: the next word, unless it is an option.
|
|
51
|
+
const commande = suivant !== undefined && !suivant.startsWith('-') ? suivant : null;
|
|
52
|
+
o.mecanique = { commande };
|
|
53
|
+
if (commande !== null) {
|
|
54
|
+
i++;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
47
57
|
else if (a === '--etendre') {
|
|
48
58
|
const liste = String(suivant ?? '')
|
|
49
59
|
.split(',')
|
|
@@ -82,6 +92,13 @@ export function lireLAppel(argv) {
|
|
|
82
92
|
if (!ticket) {
|
|
83
93
|
throw new Usage('le ticket manque.');
|
|
84
94
|
}
|
|
95
|
+
if (o.mecanique &&
|
|
96
|
+
(o.reprendre || o.depuis || o.etendre || o.arreter || o.recommencer || o.reporter)) {
|
|
97
|
+
throw new Usage('--mecanique va seule, avec son --contexte : le ticket bascule en circuit court sur le même plan.');
|
|
98
|
+
}
|
|
99
|
+
if (o.mecanique && (o.contexte === null || o.contexte.trim() === '')) {
|
|
100
|
+
throw new Usage('--mecanique attend son --contexte : la raison du circuit court.');
|
|
101
|
+
}
|
|
85
102
|
if (o.reporter && (o.reprendre || o.depuis || o.etendre || o.arreter || o.recommencer)) {
|
|
86
103
|
throw new Usage('--reporter va seule, son motif en --contexte : le circuit reste en attente.');
|
|
87
104
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appel.js","sourceRoot":"","sources":["../../../src/temporal/circuit/appel.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,iFAAiF;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,CAAC,MAAM,KAAK,GAChB,6EAA6E;IAC7E,uFAAuF;IACvF,yFAAyF;IACzF,4CAA4C;IAC5C,kBAAkB,CAAC;AAErB,uCAAuC;AACvC,MAAM,OAAO,KAAM,SAAQ,KAAK;CAAG;
|
|
1
|
+
{"version":3,"file":"appel.js","sourceRoot":"","sources":["../../../src/temporal/circuit/appel.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,iFAAiF;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,CAAC,MAAM,KAAK,GAChB,6EAA6E;IAC7E,uFAAuF;IACvF,iDAAiD;IACjD,yFAAyF;IACzF,4CAA4C;IAC5C,kBAAkB,CAAC;AAErB,uCAAuC;AACvC,MAAM,OAAO,KAAM,SAAQ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AA6E,CAAC,CAAC;IACjG,CAAC;IACD,IAAI,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;QACzE,MAAM,IAAI,KAAK,CAAC,8EAA8E,CAAC,CAAC;IAClG,CAAC;IACD,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;IACnE,CAAC;IACD,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;IACvF,CAAC;IACD,IAAI,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;QACxD,MAAM,IAAI,KAAK,CACb,kFAAkF,CACnF,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3C,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;IAClE,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;AAC1B,CAAC"}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
import { type Client } from '@temporalio/client';
|
|
1
|
+
import { type Client, type WorkflowExecutionInfo } from '@temporalio/client';
|
|
2
2
|
/**
|
|
3
|
-
* The workflows a page of a list of the server gives at
|
|
3
|
+
* The workflows a page of a list of the server gives at first. The server pages by 1000 by default,
|
|
4
4
|
* and a page of circuits, each with its memo, passes the 4 MB a gRPC message of the client takes
|
|
5
|
-
* (« Received message larger than max »,
|
|
6
|
-
*
|
|
5
|
+
* (« Received message larger than max », read as « Temporal ne répond pas »): every list of the
|
|
6
|
+
* frame goes by `listerLesDeroules`, which asks for pages of PAGE and halves them when a page is
|
|
7
|
+
* still too large.
|
|
7
8
|
*/
|
|
8
|
-
export declare const PAGE =
|
|
9
|
+
export declare const PAGE = 20;
|
|
10
|
+
/**
|
|
11
|
+
* The workflows the query <query> finds on the server, read whole, by pages of PAGE. No size of
|
|
12
|
+
* page is safe for good, a memo having no bound of its own: a page the client refuses as too large
|
|
13
|
+
* makes the list start again with pages of half the size, down to one workflow a page (pc3,
|
|
14
|
+
* 2026-11-21: 100 circuits passed the 4 MB by 3 kB, and the queues of the tickets of two projects
|
|
15
|
+
* failed on it).
|
|
16
|
+
*/
|
|
17
|
+
export declare function listerLesDeroules(client: Client, query: string): Promise<WorkflowExecutionInfo[]>;
|
|
9
18
|
import { type EntreeDuCircuit, type ETAPES_DE_REPRISE, type FinDuCircuit, type VueDuCircuit } from './contrat.js';
|
|
10
19
|
/** Starts the circuit of <entree> on the task queue <file>, or leaves the one that runs: its id. */
|
|
11
20
|
export declare function demarrerLeCircuit(client: Client, entree: EntreeDuCircuit, file: string): Promise<string>;
|
|
@@ -42,6 +51,12 @@ export declare function arreterLeCircuit(client: Client, racine: string, ticket:
|
|
|
42
51
|
export declare function reprendreDepuis(client: Client, racine: string, ticket: string, role: (typeof ETAPES_DE_REPRISE)[number], contexte?: string | null, ou?: OuReprendre): Promise<string>;
|
|
43
52
|
/** Extends the plan of the stopped circuit to <paquets>, then resumes it (`--etendre`). */
|
|
44
53
|
export declare function etendreLeCircuit(client: Client, racine: string, ticket: string, paquets: string[], contexte?: string | null, ou?: OuReprendre): Promise<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Turns the circuit of <ticket>, stopped on the testwriter's question or blocked word, to the
|
|
56
|
+
* short circuit on the same plan, its reason <contexte> (`--mecanique`): with a <commande>, the
|
|
57
|
+
* gesture of 1.1; without, the developpeur writes. Refused out of such a stop, by its name.
|
|
58
|
+
*/
|
|
59
|
+
export declare function basculerEnMecanique(client: Client, racine: string, ticket: string, commande: string | null, contexte: string | null, ou?: OuReprendre): Promise<string>;
|
|
45
60
|
/** The circuit as it stands: its step, whether it waits, its question. */
|
|
46
61
|
export declare function lireLeCircuit(client: Client, racine: string, ticket: string): Promise<VueDuCircuit>;
|
|
47
62
|
/** The end of the circuit: integrated, or stopped on the supervisor's word. */
|
|
@@ -82,6 +97,14 @@ export interface CircuitLu {
|
|
|
82
97
|
integre: boolean;
|
|
83
98
|
/** The time its workflow ended (ms), null while it runs. */
|
|
84
99
|
fin: number | null;
|
|
100
|
+
/**
|
|
101
|
+
* The report the circuit keeps while it waits for the usage limit to lift (`raison`
|
|
102
|
+
* « limite-d-usage », `reprise` the hour the usage returns, in ms), null otherwise.
|
|
103
|
+
*/
|
|
104
|
+
report: {
|
|
105
|
+
raison: string;
|
|
106
|
+
reprise: number;
|
|
107
|
+
} | null;
|
|
85
108
|
}
|
|
86
109
|
/**
|
|
87
110
|
* The circuits of the repository at <racine>, read in one call to the server (a `workflow.list`,
|
|
@@ -10,17 +10,50 @@
|
|
|
10
10
|
// from the step of its agent, on the task queue of the project's worker (decision Q2 of
|
|
11
11
|
// grillhouse-4nr.12).
|
|
12
12
|
import { lesReponses, SANS_ISSUE } from '../../../scripts/reponses-du-circuit.mjs';
|
|
13
|
-
import { WorkflowNotFoundError, WorkflowUpdateFailedError } from '@temporalio/client';
|
|
13
|
+
import { WorkflowNotFoundError, WorkflowUpdateFailedError, } from '@temporalio/client';
|
|
14
14
|
import { ApplicationFailure, defaultPayloadConverter, WorkflowExecutionAlreadyStartedError, } from '@temporalio/common';
|
|
15
15
|
import { fileDuProjet } from '../installation.js';
|
|
16
16
|
/**
|
|
17
|
-
* The workflows a page of a list of the server gives at
|
|
17
|
+
* The workflows a page of a list of the server gives at first. The server pages by 1000 by default,
|
|
18
18
|
* and a page of circuits, each with its memo, passes the 4 MB a gRPC message of the client takes
|
|
19
|
-
* (« Received message larger than max »,
|
|
20
|
-
*
|
|
19
|
+
* (« Received message larger than max », read as « Temporal ne répond pas »): every list of the
|
|
20
|
+
* frame goes by `listerLesDeroules`, which asks for pages of PAGE and halves them when a page is
|
|
21
|
+
* still too large.
|
|
21
22
|
*/
|
|
22
|
-
export const PAGE =
|
|
23
|
-
|
|
23
|
+
export const PAGE = 20;
|
|
24
|
+
// Whether the error <e> of a list says a page larger than a gRPC message takes.
|
|
25
|
+
const pageTropGrande = (e) => {
|
|
26
|
+
for (let x = e; x; x = x.cause) {
|
|
27
|
+
if (/RESOURCE_EXHAUSTED|larger than max/.test(String(x.message ?? ''))) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* The workflows the query <query> finds on the server, read whole, by pages of PAGE. No size of
|
|
35
|
+
* page is safe for good, a memo having no bound of its own: a page the client refuses as too large
|
|
36
|
+
* makes the list start again with pages of half the size, down to one workflow a page (pc3,
|
|
37
|
+
* 2026-11-21: 100 circuits passed the 4 MB by 3 kB, and the queues of the tickets of two projects
|
|
38
|
+
* failed on it).
|
|
39
|
+
*/
|
|
40
|
+
export async function listerLesDeroules(client, query) {
|
|
41
|
+
for (let taille = PAGE;; taille = Math.floor(taille / 2)) {
|
|
42
|
+
try {
|
|
43
|
+
const lus = [];
|
|
44
|
+
for await (const w of client.workflow.list({ query, pageSize: taille })) {
|
|
45
|
+
lus.push(w);
|
|
46
|
+
}
|
|
47
|
+
return lus;
|
|
48
|
+
}
|
|
49
|
+
catch (e) {
|
|
50
|
+
if (taille <= 1 || !pageTropGrande(e)) {
|
|
51
|
+
throw e;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
import { ARRETER, CIRCUIT, DEPUIS, ETENDRE, etatDeLaReprise, idDuCircuit, L_ETAT, MECANIQUE, REFUS_DU_VALIDATEUR, REPRENDRE, } from './contrat.js';
|
|
24
57
|
/** Starts the circuit of <entree> on the task queue <file>, or leaves the one that runs: its id. */
|
|
25
58
|
export async function demarrerLeCircuit(client, entree, file) {
|
|
26
59
|
const id = idDuCircuit(entree.racine, entree.ticket);
|
|
@@ -64,6 +97,9 @@ function refuserApresLaFin(genre, raison, ticket) {
|
|
|
64
97
|
if (genre === 'etendre' && raison === 'integre') {
|
|
65
98
|
throw new ReponseRefusee(`--etendre : le lot de ${ticket} est intégré.`);
|
|
66
99
|
}
|
|
100
|
+
if (genre === 'mecanique' && raison === 'integre') {
|
|
101
|
+
throw new ReponseRefusee(`--mecanique : le lot de ${ticket} est intégré.`);
|
|
102
|
+
}
|
|
67
103
|
}
|
|
68
104
|
// The update <envoyer> to a workflow that runs: a refusal of its validator (out of a wait, a
|
|
69
105
|
// question already answered, an answer out of its values: REFUS_DU_VALIDATEUR) is a refusal by
|
|
@@ -109,9 +145,10 @@ async function repondre(client, racine, ticket, reponse, dit, envoyer, ou) {
|
|
|
109
145
|
etatDArret = fin.raison === 'arrete' ? (fin.etat ?? null) : null;
|
|
110
146
|
}
|
|
111
147
|
else {
|
|
112
|
-
// Ended without its issue: the state its last memo holds
|
|
113
|
-
etatDArret = d.memo
|
|
114
|
-
if (reponse.genre === 'etendre' ||
|
|
148
|
+
// Ended without its issue: the state its last memo holds, which --reprendre reopens from.
|
|
149
|
+
etatDArret = etatDeLaReprise(d.memo);
|
|
150
|
+
if (reponse.genre === 'etendre' ||
|
|
151
|
+
((reponse.genre === 'reprendre' || reponse.genre === 'mecanique') && !etatDArret)) {
|
|
115
152
|
throw new ReponseRefusee(`le déroulé de ${ticket} a fini sans son issue (${d.status.name})${etatDArret ? '' : ', aucun état écrit'} : \`${lesReponses(ticket, d.status.name, Boolean(etatDArret))}\` le rouvre.`);
|
|
116
153
|
}
|
|
117
154
|
}
|
|
@@ -205,6 +242,14 @@ export async function reprendreDepuis(client, racine, ticket, role, contexte = n
|
|
|
205
242
|
export async function etendreLeCircuit(client, racine, ticket, paquets, contexte = null, ou = {}) {
|
|
206
243
|
return repondre(client, racine, ticket, { genre: 'etendre', paquets, contexte }, `étendu à ${paquets.join(', ')}`, () => handle(client, racine, ticket).executeUpdate(ETENDRE, { args: [{ paquets, contexte, ...seanceDe(ou) }] }), ou);
|
|
207
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* Turns the circuit of <ticket>, stopped on the testwriter's question or blocked word, to the
|
|
247
|
+
* short circuit on the same plan, its reason <contexte> (`--mecanique`): with a <commande>, the
|
|
248
|
+
* gesture of 1.1; without, the developpeur writes. Refused out of such a stop, by its name.
|
|
249
|
+
*/
|
|
250
|
+
export async function basculerEnMecanique(client, racine, ticket, commande, contexte, ou = {}) {
|
|
251
|
+
return repondre(client, racine, ticket, { genre: 'mecanique', commande, contexte }, commande === null ? 'basculé : le développeur écrit' : 'basculé : 1.1 Geste mécanique', () => handle(client, racine, ticket).executeUpdate(MECANIQUE, { args: [{ commande, contexte, ...seanceDe(ou) }] }), ou);
|
|
252
|
+
}
|
|
208
253
|
/** The circuit as it stands: its step, whether it waits, its question. */
|
|
209
254
|
export async function lireLeCircuit(client, racine, ticket) {
|
|
210
255
|
return handle(client, racine, ticket).query(L_ETAT);
|
|
@@ -222,10 +267,7 @@ export async function finDuCircuit(client, racine, ticket) {
|
|
|
222
267
|
export async function lireLesCircuits(client, racine, { integres = false } = {}) {
|
|
223
268
|
const prefixe = idDuCircuit(racine, '');
|
|
224
269
|
const lus = [];
|
|
225
|
-
for
|
|
226
|
-
query: `WorkflowType = '${CIRCUIT}'`,
|
|
227
|
-
pageSize: PAGE,
|
|
228
|
-
})) {
|
|
270
|
+
for (const w of await listerLesDeroules(client, `WorkflowType = '${CIRCUIT}'`)) {
|
|
229
271
|
if (w.workflowId.startsWith(prefixe)) {
|
|
230
272
|
lus.push(w);
|
|
231
273
|
}
|
|
@@ -275,6 +317,7 @@ export async function lireLesCircuits(client, racine, { integres = false } = {})
|
|
|
275
317
|
numero: memo.numero ?? 0,
|
|
276
318
|
integre,
|
|
277
319
|
fin: w.closeTime ? w.closeTime.getTime() : null,
|
|
320
|
+
report: memo.report ?? null,
|
|
278
321
|
});
|
|
279
322
|
}
|
|
280
323
|
return out.sort((a, b) => a.ticket.localeCompare(b.ticket, 'en'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/temporal/circuit/client.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,gGAAgG;AAChG,mGAAmG;AACnG,8FAA8F;AAC9F,kGAAkG;AAClG,kGAAkG;AAClG,+FAA+F;AAC/F,4FAA4F;AAC5F,gGAAgG;AAChG,wFAAwF;AACxF,sBAAsB;AACtB,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAe,MAAM,oBAAoB,CAAC;AACnG,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,oCAAoC,GACrC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAC;AACxB,OAAO,EACL,OAAO,EACP,OAAO,EACP,MAAM,EACN,OAAO,EACP,WAAW,EACX,MAAM,EACN,mBAAmB,EACnB,SAAS,GAQV,MAAM,cAAc,CAAC;AAEtB,oGAAoG;AACpG,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAc,EACd,MAAuB,EACvB,IAAY;IAEZ,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACrD,MAAM,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE;QACnC,UAAU,EAAE,EAAE;QACd,SAAS,EAAE,IAAI;QACf,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,wBAAwB,EAAE,cAAc;KACz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K,SAAS,IAAI,CAAC,CAAC;YAClC,UAAU;YACV,SAAS,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC;YACjC,OAAO;YACP,GAAG,EAAE,CAAC,CAAC,KAAK;YACZ,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,CAAC;YACxB,OAAO;YACP,GAAG,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,IAAI;SAC5B,CAAC,CAAC;IACL,CAAC;IACD,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AACpE,CAAC"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
// grillhouse circuit <ticket> --reprendre [--contexte <texte>]
|
|
7
7
|
// grillhouse circuit <ticket> --depuis <testwriter|developpeur> --contexte <texte>
|
|
8
8
|
// grillhouse circuit <ticket> --etendre <paquet>[,<paquet>…] [--contexte <texte>]
|
|
9
|
+
// grillhouse circuit <ticket> --mecanique [<commande>] --contexte <raison>
|
|
9
10
|
// grillhouse circuit <ticket> --arreter [--contexte <motif>]
|
|
10
11
|
// grillhouse circuit <ticket> --recommencer
|
|
11
12
|
//
|
|
@@ -19,6 +20,10 @@
|
|
|
19
20
|
// component the repository does not hold); so is a ticket whose circuit runs (`--arreter` stops
|
|
20
21
|
// it), and one stopped on the supervisor's word (`--reprendre`, `--depuis` or `--recommencer`
|
|
21
22
|
// reopens it).
|
|
23
|
+
// - `--mecanique` answers the stop of the testwriter that finds no behaviour to test: the ticket
|
|
24
|
+
// goes the short circuit on the same plan, to 1.1 with a command, to the developpeur without one
|
|
25
|
+
// (its `--contexte`, the reason, is required); refused (exit 2) out of that stop or when the ticket
|
|
26
|
+
// is already mechanical.
|
|
22
27
|
// - `--reprendre`, `--depuis` and `--etendre` answer the stop of the circuit (the updates of its
|
|
23
28
|
// workflow, or a new workflow on the state a stopped one gave back), `--arreter` stops it (its
|
|
24
29
|
// signal); a package of `--etendre` the repository does not hold is refused before, by its name; `--contexte` gives the supervisor's text to each, and `--depuis` requires it.
|
|
@@ -41,7 +46,7 @@ import { DELAI_JOIGNABLE_MS, adresseDuServeur, ouvrirLeClient, serveurJoignable,
|
|
|
41
46
|
import { fileDuProjet } from '../installation.js';
|
|
42
47
|
import { demarrerLesTickets } from '../tickets/client.js';
|
|
43
48
|
import { USAGE, Usage, lireLAppel, refusDuLancementApresArret } from './appel.js';
|
|
44
|
-
import { arreterLeCircuit, etendreLeCircuit, recommencerLeCircuit, reprendreDepuis, reprendreLeCircuit, ReponseRefusee, } from './client.js';
|
|
49
|
+
import { arreterLeCircuit, basculerEnMecanique, etendreLeCircuit, recommencerLeCircuit, reprendreDepuis, reprendreLeCircuit, ReponseRefusee, } from './client.js';
|
|
45
50
|
import { idDuCircuit } from './contrat.js';
|
|
46
51
|
// The main tree of the repository of the working directory, from git's common directory.
|
|
47
52
|
function arbrePrincipal() {
|
|
@@ -99,7 +104,7 @@ async function mettreEnFile(client, racine, ticket, recommence = false) {
|
|
|
99
104
|
}
|
|
100
105
|
bd(racine, 'update', ticket, '--add-label', 'circuit');
|
|
101
106
|
await demarrerLesTickets(client, { racine }, fileDuProjet(racine), seanceDuSuperviseur());
|
|
102
|
-
return `▶ ${ticket} est dans la file des tickets du projet : son circuit part dès que ses dépendances sont fermées et qu'une place du réglage est libre ; sa question
|
|
107
|
+
return `▶ ${ticket} est dans la file des tickets du projet : son circuit part dès que ses dépendances sont fermées et qu'une place du réglage est libre ; sa question arrive dans la file de la séance du superviseur (le greffon la pousse), sa fin se lit au panneau.`;
|
|
103
108
|
}
|
|
104
109
|
// The answer <appel> to the circuit of its ticket in <racine>: its line.
|
|
105
110
|
async function repondre(client, racine, appel) {
|
|
@@ -128,7 +133,9 @@ async function repondre(client, racine, appel) {
|
|
|
128
133
|
? await reprendreDepuis(client, racine, ticket, appel.depuis, contexte, ou)
|
|
129
134
|
: appel.etendre
|
|
130
135
|
? await etendreLeCircuit(client, racine, ticket, appel.etendre, contexte, ou)
|
|
131
|
-
:
|
|
136
|
+
: appel.mecanique
|
|
137
|
+
? await basculerEnMecanique(client, racine, ticket, appel.mecanique.commande, contexte, ou)
|
|
138
|
+
: await reprendreLeCircuit(client, racine, ticket, contexte, ou);
|
|
132
139
|
return `▶ Circuit de ${ticket} : ${dit}.`;
|
|
133
140
|
}
|
|
134
141
|
async function principal(argv) {
|
|
@@ -151,7 +158,12 @@ async function principal(argv) {
|
|
|
151
158
|
const racine = arbrePrincipal();
|
|
152
159
|
const c = ouvrirLeClient();
|
|
153
160
|
try {
|
|
154
|
-
const repond = appel.reprendre ||
|
|
161
|
+
const repond = appel.reprendre ||
|
|
162
|
+
appel.depuis ||
|
|
163
|
+
appel.etendre ||
|
|
164
|
+
appel.mecanique ||
|
|
165
|
+
appel.arreter ||
|
|
166
|
+
appel.reporter;
|
|
155
167
|
let ligne;
|
|
156
168
|
if (appel.recommencer) {
|
|
157
169
|
const retiree = await recommencerLeCircuit(c.client, racine, appel.ticket, retirerLaCopieDuTicket);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commande.js","sourceRoot":"","sources":["../../../src/temporal/circuit/commande.ts"],"names":[],"mappings":";AACA,gGAAgG;AAChG,2CAA2C;AAC3C,EAAE;AACF,8FAA8F;AAC9F,iEAAiE;AACjE,qFAAqF;AACrF,oFAAoF;AACpF,+DAA+D;AAC/D,8CAA8C;AAC9C,EAAE;AACF,8FAA8F;AAC9F,qFAAqF;AACrF,kGAAkG;AAClG,+FAA+F;AAC/F,mGAAmG;AACnG,qGAAqG;AACrG,+FAA+F;AAC/F,kGAAkG;AAClG,gGAAgG;AAChG,iBAAiB;AACjB,iGAAiG;AACjG,iGAAiG;A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,CAAC;QACX,CAAC;QACD,MAAM,CAAC,CAAC;IACV,CAAC;YAAS,CAAC;QACT,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC;IACnB,CAAC;AACH,CAAC;AAED,wFAAwF;AACxF,MAAM,OAAO,GAAG,CAAC,CAAU,EAAU,EAAE,CACrC,CAAC,YAAY,KAAK;IAChB,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;IAC/E,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAEhB,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,0BAA0B,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC/D,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DelaisDeLaCI } from '../file/contrat.js';
|
|
2
|
-
import type
|
|
2
|
+
import { type EtatDuPlan } from '../../../scripts/transitions.mjs';
|
|
3
3
|
/** The workflow's type. */
|
|
4
4
|
export declare const CIRCUIT = "circuitDuTicket";
|
|
5
5
|
/** The id of the workflow of the ticket <ticket> of the repository at <racine>. */
|
|
@@ -14,6 +14,11 @@ export declare const ARRETER = "arreter";
|
|
|
14
14
|
export declare const DEPUIS = "depuis";
|
|
15
15
|
/** The update that extends the plan of a stopped circuit, then resumes it (`--etendre`). */
|
|
16
16
|
export declare const ETENDRE = "etendre";
|
|
17
|
+
/**
|
|
18
|
+
* The update that turns a ticket stopped on the testwriter to the short circuit on the same plan,
|
|
19
|
+
* then resumes it (`--mecanique`).
|
|
20
|
+
*/
|
|
21
|
+
export declare const MECANIQUE = "mecanique";
|
|
17
22
|
/** The type of the failure a validator of an answer refuses it with, which the client names. */
|
|
18
23
|
export declare const REFUS_DU_VALIDATEUR = "RefusDuValidateur";
|
|
19
24
|
/** The query of the circuit as it stands. */
|
|
@@ -37,7 +42,7 @@ interface ConflitDeLAvance {
|
|
|
37
42
|
fichiers: string[];
|
|
38
43
|
rapport: string;
|
|
39
44
|
}
|
|
40
|
-
/** What the circuit keeps between steps (`MEMOIRE` of scripts/
|
|
45
|
+
/** What the circuit keeps between steps (`MEMOIRE` of scripts/transitions.mjs, and its session to resume). */
|
|
41
46
|
export type Memoire = Record<string, unknown>;
|
|
42
47
|
/** The ticket as the decisions read it. */
|
|
43
48
|
interface TicketDuCircuit {
|
|
@@ -86,6 +91,16 @@ export declare function resumeDeLEtat(e: unknown, auPlan?: boolean): ResumeDeLEt
|
|
|
86
91
|
* and gives it back when it stops on the supervisor's word, so that his answer reopens from it.
|
|
87
92
|
*/
|
|
88
93
|
export type EtatEcrit = Record<string, unknown>;
|
|
94
|
+
/**
|
|
95
|
+
* What the memo of a circuit keeps of the state <etat> the run wrote: only what a resumption
|
|
96
|
+
* rereads (its stop and what the circuit keeps between steps, each field bounded), the head of the
|
|
97
|
+
* report, never the whole report, the whole findings or the journals; so the memo stays small
|
|
98
|
+
* whatever the length of the ticket (Temporal asks for small memos, the heavy content staying in
|
|
99
|
+
* its own store).
|
|
100
|
+
*/
|
|
101
|
+
export declare function etatPourLeMemo(etat: unknown): EtatEcrit;
|
|
102
|
+
/** The state a resumption rereads from the memo <memo> of an ended run (whole or reduced, one path); null when it holds none. */
|
|
103
|
+
export declare function etatDeLaReprise(memo: Record<string, unknown> | undefined): EtatEcrit | null;
|
|
89
104
|
/** A stop a decision returns (scripts/transitions.mjs), or an exception fallen in an activity. */
|
|
90
105
|
export type ArretDecide = Record<string, unknown> & {
|
|
91
106
|
nom?: string;
|
|
@@ -111,6 +126,10 @@ export type Reponse = {
|
|
|
111
126
|
genre: 'etendre';
|
|
112
127
|
paquets: string[];
|
|
113
128
|
contexte?: string | null;
|
|
129
|
+
} | {
|
|
130
|
+
genre: 'mecanique';
|
|
131
|
+
commande: string | null;
|
|
132
|
+
contexte?: string | null;
|
|
114
133
|
} | {
|
|
115
134
|
genre: 'arreter';
|
|
116
135
|
contexte?: string | null;
|
|
@@ -304,6 +323,7 @@ export interface Activites {
|
|
|
304
323
|
valeur: unknown;
|
|
305
324
|
memoire: Memoire;
|
|
306
325
|
leve?: ArretDecide;
|
|
326
|
+
paquets?: string[];
|
|
307
327
|
} & Rendus>;
|
|
308
328
|
/**
|
|
309
329
|
* The effects <effets> of a decision, in their order (a line at the ticket, a gesture, a report),
|