@roomi-fields/grillhouse 0.52.0 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +96 -0
  3. package/agents/direct.md +1 -1
  4. package/cadre/templates/projet/docs/agents/issue-tracker.md +2 -2
  5. package/cadre/templates/projet/vitest.config.cjs +45 -0
  6. package/charte/superviseur.md +36 -37
  7. package/charte.md +13 -1
  8. package/dist/temporal/circuit/appel.d.ts +2 -0
  9. package/dist/temporal/circuit/appel.js +24 -2
  10. package/dist/temporal/circuit/appel.js.map +1 -1
  11. package/dist/temporal/circuit/client.d.ts +14 -5
  12. package/dist/temporal/circuit/client.js +41 -9
  13. package/dist/temporal/circuit/client.js.map +1 -1
  14. package/dist/temporal/circuit/commande.js +17 -6
  15. package/dist/temporal/circuit/commande.js.map +1 -1
  16. package/dist/temporal/circuit/contrat.d.ts +9 -0
  17. package/dist/temporal/circuit/contrat.js +6 -0
  18. package/dist/temporal/circuit/contrat.js.map +1 -1
  19. package/dist/temporal/circuit/deroule.js +29 -12
  20. package/dist/temporal/circuit/deroule.js.map +1 -1
  21. package/dist/temporal/client.d.ts +35 -1
  22. package/dist/temporal/client.js +144 -1
  23. package/dist/temporal/client.js.map +1 -1
  24. package/dist/temporal/commande.js +31 -13
  25. package/dist/temporal/commande.js.map +1 -1
  26. package/dist/temporal/etat.d.ts +3 -1
  27. package/dist/temporal/etat.js +31 -17
  28. package/dist/temporal/etat.js.map +1 -1
  29. package/dist/temporal/file/activites.js +1 -1
  30. package/dist/temporal/file/activites.js.map +1 -1
  31. package/dist/temporal/file/contrat.d.ts +4 -5
  32. package/dist/temporal/file/contrat.js +2 -2
  33. package/dist/temporal/file/contrat.js.map +1 -1
  34. package/dist/temporal/file/deroule.js +7 -5
  35. package/dist/temporal/file/deroule.js.map +1 -1
  36. package/dist/temporal/installation.d.ts +116 -53
  37. package/dist/temporal/installation.js +898 -241
  38. package/dist/temporal/installation.js.map +1 -1
  39. package/dist/temporal/nuits/deroule.js +3 -1
  40. package/dist/temporal/nuits/deroule.js.map +1 -1
  41. package/dist/temporal/places/deroule.js +2 -1
  42. package/dist/temporal/places/deroule.js.map +1 -1
  43. package/dist/temporal/sonde/deroule.js +2 -1
  44. package/dist/temporal/sonde/deroule.js.map +1 -1
  45. package/dist/temporal/tickets/deroule.js +4 -3
  46. package/dist/temporal/tickets/deroule.js.map +1 -1
  47. package/dist/temporal/travailleur.d.ts +7 -1
  48. package/dist/temporal/travailleur.js +49 -25
  49. package/dist/temporal/travailleur.js.map +1 -1
  50. package/docs/INTERFACE.md +37 -12
  51. package/docs/architecture/circuit.md +21 -18
  52. package/docs/architecture/entree.md +10 -11
  53. package/docs/architecture/greffon.md +45 -27
  54. package/docs/architecture/installation.md +92 -59
  55. package/docs/architecture/machine.md +2 -2
  56. package/docs/architecture/tests.md +15 -6
  57. package/docs/lexique.md +2 -2
  58. package/hooks/hooks.json +10 -0
  59. package/hooks/register.tsx +59 -39
  60. package/package.json +3 -2
  61. package/scripts/activites.mjs +5 -4
  62. package/scripts/aiguillage.mjs +5 -2
  63. package/scripts/bd-garde.mjs +69 -0
  64. package/scripts/ci-de-main.mjs +259 -56
  65. package/scripts/circuit.mjs +274 -47
  66. package/scripts/circuits-du-serveur.mjs +3 -2
  67. package/scripts/circuits-tenus.d.mts +7 -0
  68. package/scripts/circuits-tenus.mjs +17 -0
  69. package/scripts/commandes-composees.mjs +1 -1
  70. package/scripts/copie-de-montee.mjs +354 -0
  71. package/scripts/copies-du-depot.d.mts +13 -0
  72. package/scripts/copies-du-depot.mjs +66 -0
  73. package/scripts/copies-finies.mjs +6 -40
  74. package/scripts/crochets.mjs +16 -2
  75. package/scripts/direct.mjs +2 -2
  76. package/scripts/droits.mjs +13 -6
  77. package/scripts/engendres.mjs +5 -3
  78. package/scripts/enveloppe/travail-de-la-copie.mjs +77 -0
  79. package/scripts/etapes.mjs +11 -3
  80. package/scripts/faits-du-circuit.mjs +12 -5
  81. package/scripts/file-des-tickets.d.mts +13 -2
  82. package/scripts/file-des-tickets.mjs +71 -21
  83. package/scripts/greffons.mjs +42 -27
  84. package/scripts/grillhouse-maj.mjs +105 -85
  85. package/scripts/init.mjs +1 -1
  86. package/scripts/integration/file.mjs +5 -2
  87. package/scripts/integration/integrer.mjs +14 -4
  88. package/scripts/jointure.d.ts +16 -0
  89. package/scripts/langages/c/commandes.mjs +18 -8
  90. package/scripts/langages/cargo/commandes.mjs +88 -35
  91. package/scripts/langages/cargo/index.mjs +6 -3
  92. package/scripts/langages/cargo/sccache.mjs +15 -12
  93. package/scripts/langages/cargo/tailles-des-tests.mjs +115 -6
  94. package/scripts/langages/python/commandes.mjs +19 -9
  95. package/scripts/langages/python/squelette.mjs +2 -2
  96. package/scripts/langages/typescript/code-mort.mjs +36 -3
  97. package/scripts/langages/typescript/configurations-de-vitest.mjs +118 -0
  98. package/scripts/langages/typescript/index.mjs +2 -0
  99. package/scripts/langages/typescript/migrations/configurations-en-commonjs.mjs +370 -0
  100. package/scripts/langages/typescript/mise-a-jour.mjs +49 -12
  101. package/scripts/langages/typescript/parcours.mjs +5 -1
  102. package/scripts/langages/typescript/squelette.mjs +20 -17
  103. package/scripts/langages/typescript/tests-de-nuit.mjs +3 -3
  104. package/scripts/langages/typescript/turbo-des-paquets.mjs +24 -37
  105. package/scripts/langages/typescript/vitest-config/base.mjs +1 -1
  106. package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -1
  107. package/scripts/langages/typescript/vitest-config/cibles.mjs +2 -2
  108. package/scripts/langages/typescript/{vitest.nuit.config.mjs → vitest.nuit.config.cjs} +61 -50
  109. package/scripts/langages.d.mts +6 -0
  110. package/scripts/langages.mjs +6 -0
  111. package/scripts/lire.mjs +236 -0
  112. package/scripts/mesure/pression.mjs +5 -3
  113. package/scripts/migrations/cout-des-jetons-au-registre.mjs +136 -0
  114. package/scripts/migrations/lire-un-ticket.mjs +46 -0
  115. package/scripts/migrations.mjs +4 -0
  116. package/scripts/montee.mjs +588 -0
  117. package/scripts/nuit.sh +21 -12
  118. package/scripts/outil.mjs +5 -3
  119. package/scripts/paquet-npm.mjs +22 -0
  120. package/scripts/paquet.mjs +5 -5
  121. package/scripts/pre-compact.mjs +25 -0
  122. package/scripts/registre.d.mts +7 -1
  123. package/scripts/registre.mjs +114 -102
  124. package/scripts/reponses-du-circuit.d.mts +17 -2
  125. package/scripts/reponses-du-circuit.mjs +78 -20
  126. package/scripts/resultats.mjs +55 -17
  127. package/scripts/retirer-les-copies-finies.mjs +4 -7
  128. package/scripts/seances.mjs +28 -3
  129. package/scripts/services-du-noyau.mjs +7 -2
  130. package/scripts/session-start.sh +18 -11
  131. package/scripts/sortie.mjs +4 -7
  132. package/scripts/sous-commandes.mjs +2 -0
  133. package/scripts/suiveur.mjs +12 -4
  134. package/scripts/superviseur.mjs +135 -84
  135. package/scripts/tableau.mjs +651 -224
  136. package/scripts/tarifs.mjs +67 -0
  137. package/scripts/ticket-du-circuit.mjs +25 -4
  138. package/scripts/transitions.d.mts +6 -14
  139. package/scripts/transitions.mjs +126 -49
  140. package/scripts/verdict-de-la-nuit.mjs +2 -2
  141. package/scripts/verrou-de-fichier.d.mts +11 -0
  142. package/skills/direct/SKILL.md +21 -11
  143. package/skills/explorateur/SKILL.md +16 -6
  144. package/skills/grill/SKILL.md +9 -7
  145. package/skills/grill/references/paquets.md +4 -4
  146. package/skills/mesure/SKILL.md +4 -3
  147. package/skills/pitmaster/SKILL.md +56 -35
  148. package/skills/pitmaster/references/consigne-agent.md +1 -1
  149. package/skills/pitmaster/references/erreurs.md +4 -2
  150. package/skills/pitmaster/references/tour.md +11 -4
  151. package/skills/relecteur/SKILL.md +8 -1
  152. package/skills/testwriter/SKILL.md +1 -1
  153. package/types/index.d.ts +3 -1
  154. package/cadre/templates/projet/vitest.config.ts +0 -44
  155. package/scripts/base-des-workflows.mjs +0 -58
@@ -1,4 +1,4 @@
1
- import { type VueDeLaFile } from './file/contrat.js';
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
- /** The program of <version> and the server's database file, under the home of <lieux>. */
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 three units, in their order: the server, the worker of the project, the machine's. */
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
- * What a worker's unit runs: Node and the frame's worker, under the PATH <chemin> and the tools of
43
- * the project <outils> (each its variable and its path).
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, travailleur, chemin, outils }: Travail): Record<string, string>;
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,47 @@ 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 a project names: its folder, under the cache of
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
- * The queue of the project on the server, by its id (`idDeLaFile`): its view, null when no queue
109
- * runs, a failure when the server does not answer; and the signal that restarts it as new
110
- * (`laFileDuServeur`).
111
- */
112
- file?: ClientDeLaFile;
113
- }
114
- /** The client of the queue of a project that the installation reads and signals. */
115
- export interface ClientDeLaFile {
116
- vue(id: string): Promise<VueDeLaFile | null>;
117
- relancer(id: string): Promise<void>;
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[];
118
127
  }
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
+ /**
131
+ * The exit code of an installation: 1 when a source that blocks every removal does not read, or a
132
+ * removal fails. The tickets of a project that do not read are said in the report, without it.
133
+ */
134
+ export declare const codeDeLInstallation: (r: RapportDInstallation) => 0 | 1;
121
135
  /** The size of the database before and after its compaction, in bytes. */
122
136
  export interface Compactage {
123
137
  avant: number;
@@ -137,10 +151,32 @@ export interface RapportDInstallation {
137
151
  pose: boolean;
138
152
  /** The units it wrote. */
139
153
  unites: string[];
140
- /** The units systemd was told of (written now, or written before and never applied). */
154
+ /** The server and the templates systemd was told of (written now, or never applied). */
141
155
  appliquees: string[];
156
+ /** The instances it started. */
157
+ demarrees: string[];
158
+ /** The instances whose version it made current. */
159
+ courantes: string[];
160
+ /** The instances, and the units of before the template, it stopped, disabled and removed. */
161
+ retirees: string[];
162
+ /** The units it would retire but for a started activity their process holds. */
163
+ retenues: string[];
164
+ /** The running instances started under the former text of a template this pass changed. */
165
+ sousLAncienTexte: string[];
166
+ /**
167
+ * The drop-ins of the units of before the template: those this pass copied to the folder of the
168
+ * template, those it moved there (the former file removed), and those whose name that folder
169
+ * holds with another content.
170
+ */
171
+ complements: {
172
+ copies: Complement[];
173
+ deplaces: Complement[];
174
+ conflits: Complement[];
175
+ };
142
176
  /** Whether anything changed. */
143
177
  change: boolean;
178
+ /** What the purge of the versions of the tool did. */
179
+ versions: RapportDesVersions;
144
180
  /** The size of the database before and after its compaction; absent when it was not compacted. */
145
181
  compactage?: Compactage;
146
182
  /**
@@ -149,16 +185,44 @@ export interface RapportDInstallation {
149
185
  */
150
186
  serveurDiffere?: string[];
151
187
  /**
152
- * What became of the queue of the project: « repartie (<ancienne> → <nouvelle>) » (at rest,
153
- * restarted as new), « repart après l'entrée de <ticket> (<ancienne> → <nouvelle>) » (busy, it
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).
188
+ * The server's unit this pass left standing: the later version of the frame that wrote it, and
189
+ * the earlier one this pass installs; absent otherwise.
156
190
  */
157
- file: string;
158
- /** The version the queue started under, « inconnue » when its view carries none; absent without a queue. */
159
- versionDeLaFile?: string;
160
- /** The version installed, that of the package the worker comes from; absent without a queue. */
161
- versionInstallee?: string;
191
+ serveurPlusNeuf?: {
192
+ ecrite: string;
193
+ installee: string;
194
+ };
195
+ }
196
+ /** A drop-in of a unit of before the template: its path there, and at the folder of the template. */
197
+ interface Complement {
198
+ depart: string;
199
+ arrivee: string;
200
+ }
201
+ /** What the purge of the versions of the tool did. */
202
+ interface RapportDesVersions {
203
+ /**
204
+ * The versions it removed, each with the size its files gave back, in bytes; `reste` for what
205
+ * an earlier removal left of a version something names.
206
+ */
207
+ retirees: {
208
+ version: string;
209
+ octets: number;
210
+ reste: boolean;
211
+ }[];
212
+ /** The versions it kept, each with what names it. */
213
+ gardees: {
214
+ version: string;
215
+ raisons: string[];
216
+ }[];
217
+ /** The sources it could not read that block every removal, each said. */
218
+ illisibles: string[];
219
+ /** The projects whose tickets it could not read, each said: their copies alone keep versions. */
220
+ ticketsIllisibles: string[];
221
+ /** The removals that failed. */
222
+ echecs: {
223
+ version: string;
224
+ raison: string;
225
+ }[];
162
226
  }
163
227
  /**
164
228
  * Compacts the SQLite database <base> (`VACUUM`), its journal folded into it first; its size before
@@ -174,12 +238,12 @@ export declare function poserLeProgramme(options: OptionsDuProgramme): Promise<{
174
238
  pose: boolean;
175
239
  }>;
176
240
  /**
177
- * Whether the worker the account runs is stale: the units applied by `installer` (the sums of
178
- * unites-appliquees.json) differ from the texts `installer` would write now, for the version
179
- * `grillhouse.outil` names (its worker deduced from its folder in the cache of the home, nothing
180
- * laid down) or, without the key, for the repository's. Without an applied state, false: the
181
- * initial deployment is not a rise. Any error of the computation (a tool not found) is stale, as
182
- * `installer` refuses it by its name. It plays nothing and writes nothing.
241
+ * Whether the worker the account runs is stale: a unit applied by `installer` (the sums of
242
+ * unites-appliquees.json) differs from the text `installer` would write now, or the instance of the
243
+ * version the project installs (`grillhouse.outil`, else its installed package) is not among them;
244
+ * nothing laid down. Without an applied state, false: the initial deployment is not a rise. Any
245
+ * error of the computation (a tool not found) is stale, as `installer` refuses it by its name. It
246
+ * plays nothing and writes nothing.
183
247
  */
184
248
  export declare function travailleurPerime({ lieux, epingle, node, trouver, }: {
185
249
  lieux: Lieux;
@@ -199,7 +263,7 @@ export interface OptionsDeLaPurge {
199
263
  systemctl: Systemctl;
200
264
  epingle?: Epingle;
201
265
  /** The tickets whose circuit runs on the server, as the installation asks them. */
202
- circuitsEnVol?: () => string[];
266
+ circuitsEnVol?: () => string[] | Promise<string[]>;
203
267
  /** How many workflows the server counts under a list filter (`compterSurLeServeur`). */
204
268
  compter?: (requete: string) => Promise<number>;
205
269
  temporal?: ProgrammeTemporal;
@@ -231,6 +295,5 @@ export declare function texteDeLaPurge(r: RapportDeLaPurge): string;
231
295
  * again.
232
296
  */
233
297
  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> (see the header). */
235
- export declare function installer({ lieux, systemctl, epingle, plateforme, obtenir, node, outil, travailleur, trouver, circuitsEnVol, compacter, file, }: OptionsDInstallation): Promise<RapportDInstallation>;
236
- export {};
298
+ /** Installs the account's Temporal at the places <lieux>, one pass at a time (see the header). */
299
+ export declare function installer(options: OptionsDInstallation): Promise<RapportDInstallation>;