@roomi-fields/grillhouse 0.29.0 → 0.30.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.
Files changed (222) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +739 -0
  3. package/bin/grillhouse.mjs +79 -18
  4. package/cadre/templates/projet/.github/workflows/ci.yml +2 -13
  5. package/cadre/templates/projet/CLAUDE.md +5 -1
  6. package/cadre/templates/projet/docs/agents/issue-tracker.md +1 -1
  7. package/cadre/templates/projet/package.json +2 -2
  8. package/charte.md +24 -0
  9. package/dist/temporal/acte.d.ts +24 -0
  10. package/dist/temporal/acte.js +139 -0
  11. package/dist/temporal/acte.js.map +1 -0
  12. package/dist/temporal/attributs.d.ts +6 -0
  13. package/dist/temporal/attributs.js +15 -0
  14. package/dist/temporal/attributs.js.map +1 -0
  15. package/dist/temporal/circuit/activites.d.ts +13 -0
  16. package/dist/temporal/circuit/activites.js +33 -0
  17. package/dist/temporal/circuit/activites.js.map +1 -0
  18. package/dist/temporal/circuit/client.d.ts +72 -0
  19. package/dist/temporal/circuit/client.js +247 -0
  20. package/dist/temporal/circuit/client.js.map +1 -0
  21. package/dist/temporal/circuit/commande.d.ts +2 -0
  22. package/dist/temporal/circuit/commande.js +238 -0
  23. package/dist/temporal/circuit/commande.js.map +1 -0
  24. package/dist/temporal/circuit/contrat.d.ts +305 -0
  25. package/dist/temporal/circuit/contrat.js +24 -0
  26. package/dist/temporal/circuit/contrat.js.map +1 -0
  27. package/dist/temporal/circuit/deroule.d.ts +3 -0
  28. package/dist/temporal/circuit/deroule.js +540 -0
  29. package/dist/temporal/circuit/deroule.js.map +1 -0
  30. package/dist/temporal/client.d.ts +47 -0
  31. package/dist/temporal/client.js +69 -0
  32. package/dist/temporal/client.js.map +1 -0
  33. package/dist/temporal/commande.d.ts +2 -0
  34. package/dist/temporal/commande.js +95 -0
  35. package/dist/temporal/commande.js.map +1 -0
  36. package/dist/temporal/deroules.d.ts +5 -0
  37. package/dist/temporal/deroules.js +10 -0
  38. package/dist/temporal/deroules.js.map +1 -0
  39. package/dist/temporal/etat.d.ts +33 -0
  40. package/dist/temporal/etat.js +59 -0
  41. package/dist/temporal/etat.js.map +1 -0
  42. package/dist/temporal/file/activites.d.ts +10 -0
  43. package/dist/temporal/file/activites.js +25 -0
  44. package/dist/temporal/file/activites.js.map +1 -0
  45. package/dist/temporal/file/client.d.ts +4 -0
  46. package/dist/temporal/file/client.js +6 -0
  47. package/dist/temporal/file/client.js.map +1 -0
  48. package/dist/temporal/file/contrat.d.ts +158 -0
  49. package/dist/temporal/file/contrat.js +14 -0
  50. package/dist/temporal/file/contrat.js.map +1 -0
  51. package/dist/temporal/file/deroule.d.ts +15 -0
  52. package/dist/temporal/file/deroule.js +235 -0
  53. package/dist/temporal/file/deroule.js.map +1 -0
  54. package/dist/temporal/installation.d.ts +124 -0
  55. package/dist/temporal/installation.js +408 -0
  56. package/dist/temporal/installation.js.map +1 -0
  57. package/dist/temporal/places/activites.d.ts +8 -0
  58. package/dist/temporal/places/activites.js +13 -0
  59. package/dist/temporal/places/activites.js.map +1 -0
  60. package/dist/temporal/places/client.d.ts +28 -0
  61. package/dist/temporal/places/client.js +64 -0
  62. package/dist/temporal/places/client.js.map +1 -0
  63. package/dist/temporal/places/contrat.d.ts +106 -0
  64. package/dist/temporal/places/contrat.js +21 -0
  65. package/dist/temporal/places/contrat.js.map +1 -0
  66. package/dist/temporal/places/deroule.d.ts +3 -0
  67. package/dist/temporal/places/deroule.js +198 -0
  68. package/dist/temporal/places/deroule.js.map +1 -0
  69. package/dist/temporal/sonde/activites.d.ts +6 -0
  70. package/dist/temporal/sonde/activites.js +52 -0
  71. package/dist/temporal/sonde/activites.js.map +1 -0
  72. package/dist/temporal/sonde/contrat.d.ts +35 -0
  73. package/dist/temporal/sonde/contrat.js +10 -0
  74. package/dist/temporal/sonde/contrat.js.map +1 -0
  75. package/dist/temporal/sonde/deroule.d.ts +3 -0
  76. package/dist/temporal/sonde/deroule.js +39 -0
  77. package/dist/temporal/sonde/deroule.js.map +1 -0
  78. package/dist/temporal/tickets/activites.d.ts +7 -0
  79. package/dist/temporal/tickets/activites.js +81 -0
  80. package/dist/temporal/tickets/activites.js.map +1 -0
  81. package/dist/temporal/tickets/client.d.ts +10 -0
  82. package/dist/temporal/tickets/client.js +31 -0
  83. package/dist/temporal/tickets/client.js.map +1 -0
  84. package/dist/temporal/tickets/contrat.d.ts +56 -0
  85. package/dist/temporal/tickets/contrat.js +13 -0
  86. package/dist/temporal/tickets/contrat.js.map +1 -0
  87. package/dist/temporal/tickets/deroule.d.ts +3 -0
  88. package/dist/temporal/tickets/deroule.js +94 -0
  89. package/dist/temporal/tickets/deroule.js.map +1 -0
  90. package/dist/temporal/travailleur.d.ts +2 -0
  91. package/dist/temporal/travailleur.js +69 -0
  92. package/dist/temporal/travailleur.js.map +1 -0
  93. package/docs/ARCHITECTURE.md +609 -80
  94. package/docs/CADRE.md +17 -0
  95. package/docs/INTERFACE.md +134 -42
  96. package/hooks/crochet.mjs +19 -2
  97. package/hooks/hooks.json +11 -0
  98. package/package.json +16 -4
  99. package/scripts/activites.mjs +2182 -0
  100. package/scripts/aiguillage.d.mts +37 -0
  101. package/scripts/aiguillage.mjs +7 -3
  102. package/scripts/avancement.mjs +128 -16
  103. package/scripts/bilan.mjs +37 -19
  104. package/scripts/cadre.mjs +11 -2
  105. package/scripts/circuit.mjs +881 -4059
  106. package/scripts/circuits-cles.d.mts +4 -0
  107. package/scripts/circuits-cles.mjs +21 -0
  108. package/scripts/circuits-du-serveur.mjs +105 -0
  109. package/scripts/codes-de-sortie.mjs +9 -0
  110. package/scripts/commandes-composees.mjs +45 -41
  111. package/scripts/commandes-du-path.d.mts +7 -0
  112. package/scripts/commandes-du-path.mjs +25 -0
  113. package/scripts/composition-des-langages.mjs +16 -12
  114. package/scripts/conformite.mjs +6 -13
  115. package/scripts/copies-finies.mjs +52 -47
  116. package/scripts/depart-du-ticket.d.mts +53 -0
  117. package/scripts/depart-du-ticket.mjs +124 -0
  118. package/scripts/dependances-internes.mjs +115 -0
  119. package/scripts/dernier-vert.mjs +7 -15
  120. package/scripts/donnees-cles.mjs +228 -0
  121. package/scripts/droits.mjs +11 -1
  122. package/scripts/effets.mjs +352 -0
  123. package/scripts/enveloppe/enveloppe.mjs +119 -8
  124. package/scripts/enveloppe/lancer.sh +14 -18
  125. package/scripts/enveloppe/paquets-du-plan.mjs +2 -2
  126. package/scripts/enveloppe/travail-de-la-copie.mjs +5 -1
  127. package/scripts/etapes.mjs +5 -2
  128. package/scripts/faits-du-circuit.mjs +493 -0
  129. package/scripts/file-des-tickets.d.mts +21 -0
  130. package/scripts/file-des-tickets.mjs +58 -0
  131. package/scripts/flux-des-paquets.mjs +187 -0
  132. package/scripts/gardes-du-cadre.mjs +12 -2
  133. package/scripts/integration/file.mjs +475 -420
  134. package/scripts/integration/integrer.mjs +17 -19
  135. package/scripts/integration/rejeu.mjs +19 -4
  136. package/scripts/jointure.d.ts +145 -27
  137. package/scripts/langages/cargo/commandes.mjs +289 -109
  138. package/scripts/langages/cargo/composants.mjs +130 -34
  139. package/scripts/langages/cargo/exemples.mjs +12 -21
  140. package/scripts/langages/cargo/index.mjs +18 -8
  141. package/scripts/langages/cargo/sccache.mjs +8 -14
  142. package/scripts/langages/python/commandes.mjs +216 -100
  143. package/scripts/langages/python/composants.mjs +53 -21
  144. package/scripts/langages/python/exemples.mjs +6 -16
  145. package/scripts/langages/python/index.mjs +24 -8
  146. package/scripts/langages/python/lot.mjs +1 -36
  147. package/scripts/langages/typescript/construire.mjs +6 -163
  148. package/scripts/langages/typescript/exemples.mjs +3 -11
  149. package/scripts/langages/typescript/frontieres.mjs +1 -1
  150. package/scripts/langages/typescript/index.mjs +43 -61
  151. package/scripts/langages/typescript/interfaces-contre-code.mjs +4 -4
  152. package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +63 -0
  153. package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +31 -0
  154. package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +40 -0
  155. package/scripts/langages/typescript/mise-a-jour.mjs +1 -2
  156. package/scripts/langages/typescript/tailles-des-tests.mjs +40 -9
  157. package/scripts/langages/typescript/tests-de-nuit.mjs +12 -9
  158. package/scripts/langages/typescript/tests.mjs +17 -8
  159. package/scripts/langages/typescript/titres-de-tests.mjs +297 -0
  160. package/scripts/langages/typescript/turbo-des-paquets.mjs +183 -38
  161. package/scripts/langages/typescript/verdict.mjs +1 -1
  162. package/scripts/langages/typescript/verifier.mjs +31 -11
  163. package/scripts/langages/typescript/vitest-config/base.mjs +22 -1
  164. package/scripts/langages/typescript/vitest-config/bornes.mjs +13 -0
  165. package/scripts/langages/typescript/vitest-config/cibles.mjs +36 -14
  166. package/scripts/langages/typescript/vitest-config/delais.mjs +54 -0
  167. package/scripts/langages/typescript/vitest-config/delais.setup.mjs +11 -0
  168. package/scripts/langages/typescript/vitest-config/duree.classement.mjs +100 -0
  169. package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +49 -63
  170. package/scripts/langages/typescript/vitest-config/machine.setup.mjs +3 -0
  171. package/scripts/langages/typescript/vitest.nuit.config.mjs +4 -0
  172. package/scripts/mesure/pression.mjs +3 -3
  173. package/scripts/mesure-de-la-machine.d.mts +21 -0
  174. package/scripts/mesure-de-la-machine.mjs +76 -0
  175. package/scripts/migrations/0.23.2-copies-du-cadre.mjs +8 -2
  176. package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +120 -0
  177. package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +81 -0
  178. package/scripts/migrations.mjs +5 -0
  179. package/scripts/nuit.sh +10 -3
  180. package/scripts/outils-cles.d.mts +24 -0
  181. package/scripts/outils-cles.mjs +0 -1
  182. package/scripts/paquet-npm.mjs +147 -0
  183. package/scripts/paquet.mjs +73 -4
  184. package/scripts/paquets.mjs +34 -6
  185. package/scripts/passe-de-la-machine.mjs +66 -0
  186. package/scripts/places-de-la-machine.mjs +360 -0
  187. package/scripts/places-du-serveur.mjs +170 -0
  188. package/scripts/prefixe-des-tickets.mjs +68 -0
  189. package/scripts/preparation.mjs +10 -3
  190. package/scripts/registre.mjs +3 -2
  191. package/scripts/regles-des-places.d.mts +36 -0
  192. package/scripts/regles-des-places.mjs +70 -0
  193. package/scripts/reponses-du-circuit.d.mts +6 -0
  194. package/scripts/reponses-du-circuit.mjs +28 -0
  195. package/scripts/resultats.mjs +7 -9
  196. package/scripts/retirer-les-copies-finies.mjs +25 -0
  197. package/scripts/sans-reponse.d.mts +4 -0
  198. package/scripts/sans-reponse.mjs +13 -0
  199. package/scripts/seances.mjs +918 -0
  200. package/scripts/services-du-noyau.mjs +26 -8
  201. package/scripts/session-start.sh +2 -2
  202. package/scripts/sortie.mjs +3 -3
  203. package/scripts/sous-commandes.mjs +38 -9
  204. package/scripts/style-a-l-ecriture.mjs +229 -0
  205. package/scripts/superviseur.mjs +122 -111
  206. package/scripts/tableau.mjs +148 -110
  207. package/scripts/taches-du-graphe.mjs +328 -0
  208. package/scripts/ticket-du-circuit.mjs +206 -0
  209. package/scripts/transitions.d.mts +148 -0
  210. package/scripts/transitions.mjs +901 -0
  211. package/scripts/verrou-de-fichier.mjs +2 -2
  212. package/scripts/verrou-de-machine.mjs +28 -13
  213. package/skills/explorateur/SKILL.md +2 -1
  214. package/skills/pitmaster/SKILL.md +17 -18
  215. package/skills/pitmaster/references/consigne-agent.md +5 -1
  216. package/skills/release/SKILL.md +3 -3
  217. package/skills/relecteur/SKILL.md +4 -2
  218. package/skills/testwriter/SKILL.md +36 -24
  219. package/scripts/demon.mjs +0 -251
  220. package/scripts/integration/file-attente.mjs +0 -61
  221. package/scripts/langages/cargo/touches.mjs +0 -93
  222. package/scripts/langages/typescript/script-des-tests.mjs +0 -6
@@ -0,0 +1,36 @@
1
+ // The types of the rules of the places of the machine (./regles-des-places.mjs), which the
2
+ // workflow of the machine under Temporal (src/temporal/places/) imports.
3
+
4
+ /** The memory a start wants free, in bytes: 4 GB. */
5
+ export const MEMOIRE_MIN: number;
6
+
7
+ /** A duration as a line says it: seconds under 2 min, else minutes. */
8
+ export function duree(ms: number): string;
9
+
10
+ /** What the machine gives at a moment: its cores, its load over one minute, its free memory. */
11
+ export interface MesureDeLaMachine {
12
+ coeurs: number;
13
+ charge: number;
14
+ /** In bytes. */
15
+ memoireLibre: number;
16
+ }
17
+
18
+ /** Whether a start is admitted at this load and this free memory; a refusal says why. */
19
+ export function admission(m: MesureDeLaMachine): { ok: true } | { ok: false; raison: string };
20
+
21
+ /** Why a taking does not pass now on a state of the places, null when it passes. */
22
+ export function refusDeLaPlace(
23
+ etat: {
24
+ prises: readonly unknown[];
25
+ attentes: readonly { id: string; rang: number; ticket?: string | null; raison?: string }[];
26
+ dernier: number;
27
+ },
28
+ o: {
29
+ id: string;
30
+ rang: number;
31
+ plafond: number;
32
+ espacementMs: number;
33
+ maintenant: number;
34
+ mesurer: () => MesureDeLaMachine;
35
+ }
36
+ ): string | null;
@@ -0,0 +1,70 @@
1
+ // The rules of the places of the machine, with no input nor output: whether a start is admitted
2
+ // at a load and a free memory, as `make -l` admits it, and why a taking does not pass now. The
3
+ // workflow of the machine (src/temporal/places/, grillhouse-4nr.7) holds the places of the machine
4
+ // and decides by them; a session or a pass takes its place there by
5
+ // scripts/places-de-la-machine.mjs. The workflow bundles this module, which imports nothing. What
6
+ // the machine gives, its load and its memory, is measured by scripts/mesure-de-la-machine.mjs.
7
+
8
+ /** The memory a start wants free, in bytes: 4 GB. */
9
+ export const MEMOIRE_MIN = 4 * 1024 ** 3;
10
+
11
+ // 11.2 → « 11,2 », 4 → « 4 ».
12
+ const nombre = n => (Number.isInteger(n) ? String(n) : n.toFixed(1).replace('.', ','));
13
+
14
+ /**
15
+ * A duration as a line says it: seconds under 2 min, else minutes.
16
+ * @param {number} ms
17
+ * @returns {string}
18
+ */
19
+ export const duree = ms =>
20
+ ms < 120_000 ? `${Math.round(ms / 1000)} s` : `${Math.round(ms / 60_000)} min`;
21
+
22
+ /**
23
+ * Whether a start is admitted at this load and this free memory, as `make -l` admits it: the load
24
+ * under the number of cores, and at least MEMOIRE_MIN free. A refusal says why.
25
+ * @param {{ coeurs: number, charge: number, memoireLibre: number }} o `memoireLibre` in bytes
26
+ * @returns {{ ok: true } | { ok: false, raison: string }}
27
+ */
28
+ export function admission({ coeurs, charge, memoireLibre }) {
29
+ if (charge >= coeurs) {
30
+ return { ok: false, raison: `charge de la machine ${nombre(charge)} sur ${coeurs} cœurs` };
31
+ }
32
+ if (memoireLibre < MEMOIRE_MIN) {
33
+ return {
34
+ ok: false,
35
+ raison: `mémoire libre ${nombre(memoireLibre / 1024 ** 3)} Go, sous les ${MEMOIRE_MIN / 1024 ** 3} Go demandés`,
36
+ };
37
+ }
38
+ return { ok: true };
39
+ }
40
+
41
+ /**
42
+ * Why the taking <id> of the rank <rang> does not pass now on the state <etat> (`prises`,
43
+ * `attentes`, `dernier`, the time of the last start), null when it passes: no free place under
44
+ * <plafond>; a wait of a lower rank alive, which keeps its turn between projects; the admission at
45
+ * the load and the memory <mesurer> gives (read only when the place and the turn pass); two starts
46
+ * closer than <espacementMs> at the time <maintenant>.
47
+ * @param {{ prises: object[], attentes: { id: string, rang: number, ticket?: string | null,
48
+ * raison?: string }[], dernier: number }} etat
49
+ * @param {{ id: string, rang: number, plafond: number, espacementMs: number, maintenant: number,
50
+ * mesurer: () => { coeurs: number, charge: number, memoireLibre: number } }} o
51
+ * @returns {string | null}
52
+ */
53
+ export function refusDeLaPlace(etat, { id, rang, plafond, espacementMs, maintenant, mesurer }) {
54
+ if (etat.prises.length >= plafond) {
55
+ return `aucune place libre : ${etat.prises.length} prises sur ${plafond}`;
56
+ }
57
+ const avant = etat.attentes.find(a => a.id !== id && a.rang < rang);
58
+ if (avant) {
59
+ return `place réservée : ${avant.ticket ?? 'un départ'} est arrivé avant et attend (${avant.raison})`;
60
+ }
61
+ const a = admission(mesurer());
62
+ if (!a.ok) {
63
+ return a.raison;
64
+ }
65
+ const ecoule = maintenant - etat.dernier;
66
+ if (ecoule < espacementMs) {
67
+ return `espacement des départs : le dernier date de ${duree(ecoule)}, ${duree(espacementMs)} au moins`;
68
+ }
69
+ return null;
70
+ }
@@ -0,0 +1,6 @@
1
+ // The types of ./reponses-du-circuit.mjs, for the frame's TypeScript (src/temporal/circuit/client.ts).
2
+
3
+ /** The statuses of a workflow ended without its issue. */
4
+ export const SANS_ISSUE: Set<string>;
5
+ /** The answers accepted for the circuit of <ticket> whose workflow has the status <statut>. */
6
+ export function lesReponses(ticket: string, statut: string, ecrit: boolean): string;
@@ -0,0 +1,28 @@
1
+ // The answers a circuit accepts from the supervisor, by the status of its workflow, with no input
2
+ // nor output: the one rule the client (src/temporal/circuit/client.ts: its refusals and the
3
+ // circuits it reads), the opening, the wait, the board and the line of a stop name.
4
+
5
+ /** The statuses of a workflow ended without its issue. */
6
+ export const SANS_ISSUE = new Set(['TERMINATED', 'FAILED', 'TIMED_OUT', 'CANCELLED']);
7
+
8
+ /**
9
+ * The answers accepted for the circuit of <ticket> whose workflow has the status <statut>, a state
10
+ * written in its memo or not (<ecrit>), each a command between backquotes after the first, which
11
+ * has none: ended without its issue, `--reprendre` from that state or `--depuis`; running, every
12
+ * answer; stopped on the supervisor's word, all but `--arreter`.
13
+ * @param {string} ticket
14
+ * @param {string} statut
15
+ * @param {boolean} ecrit
16
+ * @returns {string}
17
+ */
18
+ export function lesReponses(ticket, statut, ecrit) {
19
+ const circuit = `npx grillhouse circuit ${ticket}`;
20
+ const depuis = '--depuis <testwriter|developpeur> --contexte <texte>';
21
+ if (SANS_ISSUE.has(statut)) {
22
+ return ecrit ? `${circuit} --reprendre\` ou \`${depuis}` : `${circuit} ${depuis}`;
23
+ }
24
+ const etendre = '--etendre <paquet>';
25
+ return statut === 'RUNNING'
26
+ ? `${circuit} --reprendre\`, \`${depuis}\`, \`${etendre}\` ou \`--arreter`
27
+ : `${circuit} --reprendre\`, \`${depuis}\` ou \`${etendre}`;
28
+ }
@@ -13,8 +13,9 @@
13
13
  // with its `piece`: the circuit goes on, or stops at « hors-portee » or « besoin », the piece
14
14
  // with the stop (testwriter, developpeur, and the explorateur's gesture of a mechanical ticket,
15
15
  // its own schema, `geste`);
16
- // - `verts_attendus` (`fichier` from the root, `test` its full name, or none for every green of a
17
- // file HEAD holds, `raison`): the proof of the red (testwriter);
16
+ // - `portent_le_travail` (`fichier` from the root, `test` its full name, or none for every test of
17
+ // the file): the tests of the lot that carry the ticket's work, which the proof of the red
18
+ // requires red (testwriter);
18
19
  // - `renvoi` (`role` testwriter): the circuit relaunches the testwriter, then the proof and the
19
20
  // developpeur (developpeur);
20
21
  // - `hors_plan` (`critere` its number, `paquet` the package out of the plan that would hold it,
@@ -303,18 +304,15 @@ const FICHES = {
303
304
  testwriter: objet(
304
305
  {
305
306
  ...STATUT,
306
- verts_attendus: liste(
307
+ portent_le_travail: liste(
307
308
  objet(
308
309
  {
309
310
  fichier: texte('Le fichier de tests, depuis la racine du dépôt.'),
310
- test: texte(
311
- 'Le nom complet du test ; absent, chaque vert du fichier, s’il est un fichier que HEAD tient.'
312
- ),
313
- raison: texte('Pourquoi ce test passe avant le code.'),
311
+ test: texte('Le nom complet du test ; absent, chaque test du fichier.'),
314
312
  },
315
- ['fichier', 'raison']
313
+ ['fichier']
316
314
  ),
317
- 'Chaque test vert avant le code, que la preuve du rouge admet.'
315
+ 'Les tests du lot qui portent le travail du ticket : la preuve du rouge exige qu’ils échouent avant le code.'
318
316
  ),
319
317
  ...DECOUVERTES,
320
318
  },
@@ -0,0 +1,25 @@
1
+ // The command of the removal of the finished copies (./copies-finies.mjs), which the night runs
2
+ // once its steps are played (scripts/nuit.sh):
3
+ //
4
+ // node scripts/retirer-les-copies-finies.mjs [<copie finie de jouer>…] from the main tree
5
+ //
6
+ // - The circuits that run are what the Temporal server says (./circuits-du-serveur.mjs, one call,
7
+ // 5 s at most); a server that does not answer, a client not built or any other fault of that
8
+ // reading leaves them unread (null), as the removal of ./copies-finies.mjs takes them.
9
+ // - The removal lives in ./copies-finies.mjs, which imports nothing of the built `dist/`: the lock
10
+ // of the machine (./verrou-de-machine.mjs) and the base configuration of the tests import it,
11
+ // and a project of trial holds the frame's scripts without `dist/`.
12
+ import { circuitsDuServeur } from './circuits-du-serveur.mjs';
13
+ import { retirerLesCopiesDuDepot } from './copies-finies.mjs';
14
+
15
+ const racine = process.cwd();
16
+ let vivants = null;
17
+ try {
18
+ vivants = new Set((await circuitsDuServeur(racine)).filter(c => c.vivant).map(c => c.ticket));
19
+ } catch {
20
+ vivants = null;
21
+ }
22
+ const lignes = retirerLesCopiesDuDepot(racine, process.argv.slice(2), vivants);
23
+ if (lignes.length) {
24
+ process.stdout.write(`${lignes.join('\n')}\n`);
25
+ }
@@ -0,0 +1,4 @@
1
+ // The types of ./sans-reponse.mjs, for the frame's TypeScript (src/temporal/circuit/commande.ts).
2
+
3
+ /** « Temporal ne répond pas en <n> s », <n> the delay <delaiMs> in seconds. */
4
+ export function sansReponseEn(delaiMs: number): string;
@@ -0,0 +1,13 @@
1
+ // What a reading of the Temporal server says when the server does not answer within its delay:
2
+ // the fact measured, « Temporal ne répond pas en <n> s », since a server slow under load and a port
3
+ // where none listens look the same from the client. One rule for every reader: the board, the
4
+ // opening of a session (scripts/circuits-du-serveur.mjs), the command of the circuit
5
+ // (src/temporal/circuit/commande.ts) and the state of the service (src/temporal/etat.ts), each
6
+ // with the delay of its own reading.
7
+
8
+ /**
9
+ * « Temporal ne répond pas en <n> s », <n> the delay <delaiMs> in seconds.
10
+ * @param {number} delaiMs
11
+ * @returns {string}
12
+ */
13
+ export const sansReponseEn = delaiMs => `Temporal ne répond pas en ${delaiMs / 1000} s`;