@roomi-fields/grillhouse 0.47.1 → 0.48.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 (101) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +48 -0
  3. package/cadre/templates/projet/.github/workflows/ci.yml +18 -38
  4. package/cadre/templates/projet/.github/workflows/machine-vierge.yml +5 -0
  5. package/cadre/templates/projet/.github/workflows/nuit.yml +5 -0
  6. package/cadre/templates/projet/CLAUDE.md +23 -6
  7. package/charte.md +9 -2
  8. package/dist/temporal/circuit/commande.js +5 -3
  9. package/dist/temporal/circuit/commande.js.map +1 -1
  10. package/dist/temporal/commande.js +2 -13
  11. package/dist/temporal/commande.js.map +1 -1
  12. package/dist/temporal/deroules.d.ts +1 -1
  13. package/dist/temporal/deroules.js +2 -2
  14. package/dist/temporal/deroules.js.map +1 -1
  15. package/dist/temporal/file/activites.d.ts +1 -4
  16. package/dist/temporal/file/activites.js +13 -14
  17. package/dist/temporal/file/activites.js.map +1 -1
  18. package/dist/temporal/file/contrat.d.ts +20 -91
  19. package/dist/temporal/file/contrat.js +7 -3
  20. package/dist/temporal/file/contrat.js.map +1 -1
  21. package/dist/temporal/file/deroule.d.ts +1 -9
  22. package/dist/temporal/file/deroule.js +54 -163
  23. package/dist/temporal/file/deroule.js.map +1 -1
  24. package/dist/temporal/installation.d.ts +26 -1
  25. package/dist/temporal/installation.js +111 -2
  26. package/dist/temporal/installation.js.map +1 -1
  27. package/dist/temporal/nuits/activites.d.ts +11 -2
  28. package/dist/temporal/nuits/activites.js +16 -5
  29. package/dist/temporal/nuits/activites.js.map +1 -1
  30. package/dist/temporal/nuits/choix.d.ts +15 -0
  31. package/dist/temporal/nuits/choix.js +20 -0
  32. package/dist/temporal/nuits/choix.js.map +1 -1
  33. package/dist/temporal/nuits/contrat.d.ts +16 -3
  34. package/dist/temporal/nuits/deroule.js +9 -2
  35. package/dist/temporal/nuits/deroule.js.map +1 -1
  36. package/dist/temporal/places/client.d.ts +13 -2
  37. package/dist/temporal/places/client.js +17 -2
  38. package/dist/temporal/places/client.js.map +1 -1
  39. package/dist/temporal/places/contrat.d.ts +41 -4
  40. package/dist/temporal/places/contrat.js +8 -0
  41. package/dist/temporal/places/contrat.js.map +1 -1
  42. package/dist/temporal/places/deroule.js +46 -6
  43. package/dist/temporal/places/deroule.js.map +1 -1
  44. package/docs/ARCHITECTURE.md +166 -41
  45. package/docs/INTERFACE.md +13 -3
  46. package/package.json +1 -1
  47. package/scripts/activites.mjs +48 -10
  48. package/scripts/aiguillage.mjs +1 -0
  49. package/scripts/attente-a-l-arret.mjs +2 -5
  50. package/scripts/attente-au-tour.mjs +2 -5
  51. package/scripts/branche-de-nuit.mjs +32 -44
  52. package/scripts/ci-de-main.mjs +215 -16
  53. package/scripts/circuit.mjs +45 -33
  54. package/scripts/composition-des-langages.mjs +2 -0
  55. package/scripts/crochets.mjs +2 -2
  56. package/scripts/effets.mjs +2 -1
  57. package/scripts/enveloppe/enveloppe.mjs +61 -6
  58. package/scripts/enveloppe/travail-de-la-copie.mjs +2 -0
  59. package/scripts/etapes.mjs +11 -1
  60. package/scripts/etat-du-depot.mjs +23 -0
  61. package/scripts/faits-du-circuit.mjs +12 -23
  62. package/scripts/fermeture-de-la-machine.d.mts +27 -0
  63. package/scripts/fermeture-de-la-machine.mjs +108 -0
  64. package/scripts/greffons.mjs +1 -1
  65. package/scripts/integration/file.mjs +16 -13
  66. package/scripts/integration/integrer.mjs +2 -0
  67. package/scripts/jointure.d.ts +5 -0
  68. package/scripts/langages/c/index.mjs +2 -0
  69. package/scripts/langages/c/squelette.mjs +1 -1
  70. package/scripts/langages/cargo/index.mjs +2 -0
  71. package/scripts/langages/python/index.mjs +2 -0
  72. package/scripts/langages/typescript/index.mjs +3 -0
  73. package/scripts/langages/typescript/module-absent.mjs +24 -0
  74. package/scripts/langages/typescript/turbo-des-paquets.mjs +19 -1
  75. package/scripts/langages/typescript/vitest-config/lances.mjs +3 -1
  76. package/scripts/langages.mjs +25 -3
  77. package/scripts/machine.mjs +103 -0
  78. package/scripts/matieres-cles.mjs +17 -0
  79. package/scripts/matieres-lues.mjs +104 -0
  80. package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +32 -0
  81. package/scripts/migrations/0.48.0-poussee-retiree.mjs +31 -0
  82. package/scripts/migrations.mjs +4 -0
  83. package/scripts/nuit.sh +16 -44
  84. package/scripts/passe-de-la-machine.mjs +9 -7
  85. package/scripts/places-de-la-machine.mjs +74 -11
  86. package/scripts/places-du-serveur.mjs +29 -8
  87. package/scripts/poussee-retiree.mjs +18 -0
  88. package/scripts/registre.d.mts +2 -2
  89. package/scripts/regles-des-places.d.mts +36 -5
  90. package/scripts/regles-des-places.mjs +56 -9
  91. package/scripts/reponses-du-circuit.d.mts +2 -0
  92. package/scripts/reponses-du-circuit.mjs +26 -0
  93. package/scripts/resultats.mjs +40 -0
  94. package/scripts/sous-commandes.mjs +15 -2
  95. package/scripts/superviseur.mjs +64 -57
  96. package/scripts/tableau.mjs +132 -67
  97. package/scripts/transitions.d.mts +8 -0
  98. package/scripts/transitions.mjs +21 -3
  99. package/skills/pitmaster/SKILL.md +6 -3
  100. package/skills/relecteur/SKILL.md +3 -1
  101. package/scripts/poussee-cles.mjs +0 -46
@@ -5,5 +5,5 @@
5
5
  "author": {
6
6
  "name": "Romain Peyrichou"
7
7
  },
8
- "version": "0.47.1"
8
+ "version": "0.48.0"
9
9
  }
package/CHANGELOG.md CHANGED
@@ -6,6 +6,54 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.48.0] - 2026-11-22
10
+
11
+ - **What a test declares it reads enters the cache of its tests** (grillhouse-3uv.166): a test declared the files it reads by `// @lit <motif>`, which only the choice of the tests of a Vitest pass read, while Turborepo's cache of the test task hashed `grillhouse.lit` of the package alone; a package without the key replayed a green of before, and a red test entered main (SyntHub, SH-ae6.10.31, `packages/interface/tests/build.test.ts`). The generator of the packages' turbo.json now writes each `@lit` pattern of the package's test files in the inputs of its test task (`$TURBO_ROOT$/<motif>`, those `grillhouse.lit` covers left out), a package without the key included. In Grillhouse, the tests that read the workflows of `.github/workflows` (the repository's or the template's) and the guard of the trial directories declare what they read: a pass of the circuit left them out, and main went red twice on 2026-11-21. **Action for projects**: none, `npx grillhouse maj` rewrites the turbo.json; a `grillhouse.lit` added only to make the cache follow a `@lit` may go.
12
+
13
+ - **The pre-push hook Grillhouse commits carries the frame's line of today** (grillhouse-3uv.148.2): `.beads/hooks/pre-push` kept the former text « Push guard », which the frame rewrote at each push, leaving the working tree modified. The committed hook now holds the line of `CROCHETS`, and a test compares each committed hook to that table. **Action for projects**: none.
14
+
15
+ - **The proof resumed at a red plays tests alone** (grillhouse-3uv.163): after checks red on the guard of the consumers, which names a document (a line « Consommateurs » of an INTERFACE.md), the testwriter fixed that line and the proof of the red took the document for a test file that « ne se charge pas », three times, until the stop « preuve » (BPScript, bp-mono-vbwf.320.7.2). The proof now plays, of the files the red names, only the tests the runner of the language plays (`testsDeLaReprise`, the rule `estUnTest` the lot already follows); a red that names no test leaves nothing to play, and the proof passes.
16
+
17
+ - **The CI of the frame plays the project's preparation** (grillhouse-3uv.162): SyntHub and osc-bridge held their own copy of `ci.yml` to install system packages and toolchains, and missed three changes of the frame. Each job of `ci.yml`, `machine-vierge.yml` and `nuit.yml` that verifies or tests (not the merge of the reports) now plays `npm run --if-present ci:preparer` after `npm ci` and before the binaries of the languages; the script may export variables through `$GITHUB_ENV`. Without it nothing changes. The script is replayed at every job and per Node version: keep it idempotent, with its own installation rights on a runner of the project. Work of the project alone (a Docker image, a deployment) lives in a workflow of its own. `npx grillhouse maj` carries the step to every workflow bearing the mark. **Action for projects**: one that holds an unmarked copy of `ci.yml` puts its preparation in `ci:preparer`, replaces its copy by the marked file of the template, then plays `npx grillhouse maj`.
18
+
19
+ - **The line of the places counts the circuits: the board's, the machine's, the ceiling** (grillhouse-3uv.161): the line read « Places 1/10 · +1 » while nine circuits held a place of ten, since it counted the places of sessions and passes (`prises` of the server of the places), not the places of circuits the ceiling bounds, and « +n » stood for the names a narrow pane could not show. It now reads « Places 2/9/10 · charge 28,5/32 · mémoire 12/29 Go »: the places of circuits the project of the board holds (its projects together on a board of several), those held on the whole machine, the ceiling. `etatDesPlaces` gives the circuits granted (`prises`, `tenues`); the names of the tickets on the line and their count « +n » are removed, with `nommerLesPrises`.
20
+
21
+ - **An agent's session is bounded in CPU like a pass** (grillhouse-3uv.160): on 2026-11-21 a session's script of 64 busy loops took the machine to a load of 80 on 32 threads for five minutes. The envelope now starts each session in a control group of its own (`systemd-run --user --scope`, in the foreground, so it leaves with its process, a killed session included) with a hard CPU ceiling (`CPUQuota`) of the cores of the project's part (`grillhouse.part.coeurs`, else its default); the passes the session launches play inside that ceiling, without a group of their own. The group runs its command as written (`--expand-environment=no`): systemd-run otherwise expands each `${…}` of its arguments, which emptied the `${$1-}` of the envelope's script and failed every session (the night of 2026-11-22, grillhouse-wax); and it no longer sets `CPUAccounting`, which systemd 259 calls deprecated on the error output of the session. Without a manager of groups the session starts unbounded and the envelope says why on the circuit's journal. **Action for projects**: none.
22
+
23
+ - **A project declares a folder out of every package as test material** (grillhouse-3uv.158): in OSD, `conformance/` sits at the root, out of every package, and the lock refused its cases to the testwriter. The key `grillhouse.matieres` of the root `package.json` lists such folders (from the root, read from the main tree): `estUnTest` of the join of the languages answers `{ joue: false, test: false, matiere: true }` for a file under one, after the modules (a module's non-null answer stays), so the testwriter writes it, the developpeur does not, the proof of the red and the reviewer count it as test material, a conflict of a copy on it goes to the testwriter, and the envelope mounts it in writing for the testwriter, read-only for the others. A key that is faulty, or that names a folder that is a package, holds one or lies inside one, is refused by the name `grillhouse.matieres` at the launch of the circuit, `npm test`, `npm run verifier`, the envelope, the integration, the queue and the move of a copy. Without the key nothing changes. **Action for projects**: none; declare the folder under `grillhouse.matieres` to use it.
24
+
25
+ - **Every upgrade restarts the queue of the project, by version** (grillhouse-3uv.154): the queue reads, by the activity `lireLaVersionDeLOutil`, the version of the tool of the package that carries its worker whenever a run starts, and its view (`etatDeLaFile`) says `version` (an old view without it reads « inconnue »); it loses `surLaPasseFinale`, which only the former path justified. `grillhouse temporal installer` compares that version to the installed one (the package `travailleurDe` takes the worker from, read in the same `package.json`) with no patch read: when they differ it restarts the worker's unit if this pass did not, then signals `relancer`; equal versions signal nothing, even when units changed. The line and the report name both versions (« repartie (<old> → <new>) », « repart après l'entrée de <ticket> (<old> → <new>) », « aucune »; `versionDeLaFile`, `versionInstallee`). The marker `patched('version-de-la-file')` keeps the recorded histories replaying. **Action for projects**: none, `npx grillhouse temporal installer` after the update.
26
+
27
+ - **The queue starts the CI of main itself after a lot entered, one pass an hour at most** (grillhouse-3uv.151): GitHub played the hourly schedule of `ci.yml` at best (2 passes in 24 h at Grillhouse, 1 at SyntHub, none at osc-bridge and BPScript on 2026-11-21), leaving main hours unjudged. The act `surveiller-la-ci-de-main` now starts the workflow (`gh workflow run ci.yml --ref main`) when the tip of main differs from the commit of the last pass of any trigger, no pass runs or waits, and the last pass or start is an hour old; the instant, the pending entry and the last fault are kept in `.claude/worktrees/ci-de-main-declenchee.json`, and the queue retries at each quarter of an hour. A start GitHub refuses stops nothing: the supervisor's alert and the board say the CI could not be started and why, apart from « CI de main non lue ». The frame's `ci.yml` (Grillhouse's and the template's) keeps only `workflow_dispatch` and `workflow_call`: no schedule, no job `moved`. The migration 0.48.0 rewrites the frame's `ci.yml` of a project on the new template and leaves its other workflows. `npx grillhouse temporal installer` restarts the queue.
28
+
29
+ - **The queue has one path, the final pass** (grillhouse-3uv.131): the former path kept for the queues in flight since grillhouse-3uv.121 (the CI of the candidate's branch read by the child workflow `ciDuCommit`, then the workflows of main read after the push) is removed with its activities (`lireLesPassagesDeLaCI`, `conclureLaCI`, `inscrireLesFluxDeMain`, `relireLesFluxDeMain`), its types and its acts of the circuit (`passages`, `conclure`, `inscrire-flux-de-main`, `relire-flux-de-main`). The queue retires its marker by `deprecatePatch('passe-finale-de-main')`: a history that carries it replays without a determinism error and treats the next entry by the final pass. Its view says `surLaPasseFinale: true`; the restart of the queue by `temporal installer` stays. **Action for projects**: none; `npx grillhouse temporal installer` after the update.
30
+
31
+ - **A green verification inscribes the tree of the commit despite the journal of bd** (grillhouse-3uv.149): the tree a verification judged was that of the working folder, so a `.beads/interactions.jsonl` that a bd command had written made it differ from the commit and the pre-push hook refused the push. In the tree judged, the journal now takes its version of the commit (removed when the commit lacks it), for the final pass and for the verification of a direct lot alike; any other difference keeps the tree of the folder. The hook that refuses the commit, when it is HEAD of the copy, names the files where the folder differs from it. **Action for projects**: none.
32
+
33
+ - **A pass waits under a closed machine** (grillhouse-3uv.147.1): `grillhouse machine fermer` closed the machine to sessions and circuits, but a pass (a verification, a test run) started under the closure still played, since its part read the directory of the parts, never the reservation. The part of a pass now reads the reservation of the machine at each turn of its wait (`kubectl cordon`: a closed node takes no new work): under the supervisor's closure a new pass waits without bound, « machine fermée par le superviseur », its part « attend » in the directory of the parts, and takes it at the reopening, a part already held finishing; under the night's reservation a pass without the night's jeton waits within its bound (75), « la nuit tient la machine ». The reading goes through the places of the server (`reservation` of the view, author and jeton); one that fails or times out stands for no reservation. **Action for projects**: none.
34
+
35
+ - **The board counts the short circuit written by hand** (grillhouse-3uv.137): the way of a ticket was « court » only when a session of the gesture 1.1 had been launched, so a ticket whose gesture the developpeur wrote by hand was signed full. The way is now read from the sort of the ticket (its plan's, or the one a turn gave it since). A short circuit in progress bears the hollow triangle ▷ in AGENTS, counted with ▶ in the head, and the title of FAITS AUJOURD'HUI counts the short circuits of the day.
36
+
37
+ - **The key `grillhouse.poussee` is retired: main is the one branch that receives the lots** (grillhouse-3uv.148): BPScript, the one project that declared it (`commit: travail`, `nuit: main`), moved to a single branch, and since 3uv.121 the CI and its reading judge only main. The queue pushes every lot to origin/main without reading a key, the night pushes nothing and keeps its last green (`<git common dir>/nuit/dernier-vert`), and the pre-push hook keeps its one refusal of a tree no pass judged (« only the night pushes » is gone). A project that still carries `grillhouse.poussee`, whatever its value, is refused by its name, with the gesture (remove it), by the queue, the night and the hook, through one module (`scripts/poussee-retiree.mjs`) that replaces the reading of the two branches; the queue's result carries `poussee` = `main` after a push. **Action for projects**: `npx grillhouse maj` removes the key; the remote branches of the project (the former commit branch, the night branch) are not touched.
38
+
39
+ - **A message pushed to the supervisor holds in three lines** (grillhouse-3uv.152): a question pushed by the greffon carried the name and folder of its project, a title, then the list of the six answers twice, about 1,400 characters each time. It is now « Question · ticket · step · stop », the question without the list of the answers, and « → npx grillhouse circuit <ticket> <réponse> » (under « env -C <folder> » and the sigle « [SH] » for another project of the group); a reminder and an integrated circuit hold in one line, the turn's reminder repeats the head alone, and the list of the answers is given once, at the opening of the session.
40
+
41
+ - **A test that imports a module its ticket creates is red at the proof** (grillhouse-3uv.150): the proof of the red refused three times a lot of tests whose file « does not load » because it imports the module the developpeur has to write, and only a command of the supervisor got the ticket out. Such a file is now a red, as a test target that does not compile already is in Rust and in C: the module of the language names the module the load failure points at (`moduleAbsent`), and the proof counts the file red when the copy does not hold that module. A file that fails to load for another reason still refuses the proof.
42
+
43
+ - **A command closes the machine before a restart of the poste, another reopens it** (grillhouse-3uv.147): nothing emptied the machine in the day, so restarting the poste cut circuits in the middle of their step. `grillhouse machine fermer` takes the reservation of the machine of the places' workflow, the night's own, with its author `superviseur` and a jeton no pass carries (`kubectl cordon`): no place is given, no ticket starts, each circuit finishes its step, then its next session waits, without bound, « machine fermée par le superviseur », until `grillhouse machine rouvrir` (`uncordon`), where it goes on by itself. The closure has no beat and never goes out of date, lives in the state of the places on the Temporal server (it survives a Continue-As-New and a restart of the poste), and the command says by project and by ticket what still runs, « la machine est vide » when nothing plays, and since when the closure lasts (`--attendre` waits for it, as `drain`); the panel says « machine fermée par le superviseur » (or « par la nuit »), since when. A night that asks for a machine so closed is skipped, its reason in the journal of its night and in the register, and not caught up; a night that holds the machine is never doubled nor lifted by the commands. **Action for projects**: none.
44
+
45
+ - **The supervisor's `--depuis testwriter` wins over a plan « comportement inchangé »** (grillhouse-3uv.144): under that sort the circuit sent every route to the developpeur, the supervisor's command included, so a lot made of tests alone stopped twice at `sans-livraison` (SyntHub SH-ae6.10.14, 2026-11-21). The command now plays the testwriter's session and says at the ticket that the supervisor asked it; the circuit keeps the mark in its memory (`testwriterDemande`) across stops and `--reprendre`, the proof accepts every green, and the lot goes to the checks. A new plan, a start without `--depuis` or another `--depuis` drops the mark; a testwriter that stops goes up to the supervisor. **Action for projects**: none.
46
+
47
+ - **An upgrade restarts the queue of the project** (grillhouse-3uv.145): a queue (`file:<racine>`) in flight since before the upgrade kept the former way of entering main (no final pass, no tree judged), so the pre-push hook refused its pushes and a red lot entered main (2026-11-21, 0.47). `grillhouse temporal installer` now signals (`relancer`) the project's queue, at each pass, up to date included, after the worker restarted, whenever its view says `surLaPasseFinale` false or does not say it: at rest it restarts as new at once; busy it finishes the entry under way, gives its issue to the circuit, then restarts with those that wait, none of them treated before. The entry under way of an old queue stays on the former path until its issue. A queue already new is never signalled, a project without a queue starts none, and an unreachable server or a lost signal is made up at the next pass. The command's line and the report say what became of the queue (« repartie », « repart après l'entrée de <ticket> », « aucune »). **Action for projects**: none, `npx grillhouse temporal installer` after the update.
48
+
49
+ - **The supervisor's reading opens the defect ticket of a red CI of main, and the alert names it** (grillhouse-3uv.143): the alert said « the search of the culprit is the defect ticket », but the ticket was opened only when the queue let a lot in, so a red seen by the reading had none (Grillhouse and SyntHub, 2026-11-21). The reading now opens « CI de main rouge — <flux>, passage <n> » under `a-valider` in the project it reads, through the function the queue uses, once per pass, open or closed, under a project file lock; the alert gives its number. A creation Beads refuses keeps the alert, which says the ticket could not be opened and why, under its own key, and each reading tries again. The board still opens nothing. **Action for projects**: none.
50
+
51
+ - **The first line of the panel carries the frame's version** (grillhouse-3uv.142): after an upgrade and a `/reload-plugins`, nothing on screen said which version drew the panel (on 2026-11-21 it was deduced from the « CI de main » line). The first line, the project's name, now ends at its right edge with `v<x.y.z>` (« v0.47.1 »), the version of the package whose code runs, read once per process: a panel kept running after an upgrade keeps the old one until reloaded. A narrow panel cuts the name, never the version; the panel of several projects shows it once; a version not of the form x.y.z, or unreadable, shows nothing. **Action for projects**: none.
52
+
53
+ - **The verification of a project of one language without package.json keeps its green** (follows 0.47.1): the composed `verifier` kept the green of a project of several languages without a TypeScript package, but a project of cargo alone never goes by the composed command, so open-synth-descriptors and osc-bridge still had no tree judged under 0.47.1. `grillhouse verifier` of such a project goes by the composed command. Seen in both repositories: a green verification keeps the tree of its commit judged.
54
+
55
+ - **`circuit <ticket> --reporter HH:MM` aims at the next occurrence of the hour** (grillhouse-3uv.138): played at 23:15, `--reporter 08:30` handed « 08:30 » as it was to `bd update --defer`, which read it as today 08:30, already past; the answer said « reportée au 08:30 » and the question came back at the next reading, « toujours sans réponse » (six circuits waiting for the owner's decision for the next morning, seen on 2026-11-20). A lone hour (exactly `H:MM` or `HH:MM`, hours 0-23, minutes 00-59) is now compared to the current instant, to the second, in the machine's local time: strictly after it, it aims at today, else tomorrow, and `bd` receives `AAAA-MM-JJ HH:MM`; the ticket's comment and the answer say « reportée à demain HH:MM » when it aims at tomorrow. Any other form (`+9h`, `demain`, `8h`, a full date, `25:99`) goes to `bd` as written, and an hour still to come keeps its texts. **Action for projects**: none.
56
+
9
57
  ## [0.47.1] - 2026-11-21
10
58
 
11
59
  - **A project without a TypeScript package keeps its last green, and its pushes to main pass**: the last green and the judged tree were kept by the pass of the module of package.json alone, so a project of cargo alone (open-synth-descriptors, osc-bridge) never had a tree judged, and since 0.47.0 the pre-push hook refused each of its commits to main, a green `npm run verifier` included (2026-11-21). The composed `verifier` keeps the green itself in such a project, when every module is green and the verification is whole. Action for such a project: after the update, `npm run verifier` in a clean copy of the commit, then the push.
@@ -6,11 +6,10 @@ name: CI
6
6
 
7
7
  on:
8
8
  # The CI plays on main by batches, as Google's TAP plays the whole suite after the submit: once an
9
- # hour, on the tip of main, which judges every lot entered since its last pass. A lot enters main
10
- # on its final pass and waits for no CI; no push, no pull request and no branch agent/** starts it.
11
- # The job `moved` skips the pass when main did not move; a start by hand always plays.
12
- schedule:
13
- - cron: '17 * * * *'
9
+ # hour at most, on the tip of main, which judges every lot entered since its last pass. The queue of
10
+ # the project starts it after a lot entered (`gh workflow run`, scripts/ci-de-main.mjs): it keeps
11
+ # no clock of its own. A lot enters main on its final pass and waits for no CI; no push, no pull
12
+ # request and no branch agent/** starts it.
14
13
  workflow_dispatch:
15
14
  # A release plays the CI on the tagged commit before it publishes.
16
15
  workflow_call:
@@ -28,13 +27,13 @@ env:
28
27
  # The remote cache of Turborepo (grillhouse-44b.12.6), the server the repository's variables
29
28
  # TURBO_API and TURBO_TEAM name, its token and the key of its signature in the secrets
30
29
  # TURBO_TOKEN and TURBO_REMOTE_CACHE_SIGNATURE_KEY (Settings > Secrets and variables > Actions),
31
- # never in this file. The run of main, by the schedule or by hand, writes it; every other run reads it alone. Without TURBO_API the cache is
30
+ # never in this file. The run of main, started by the queue or by hand, writes it; every other run reads it alone. Without TURBO_API the cache is
32
31
  # the runner's local cache, as before. No step of the workflow touches the cache.
33
32
  TURBO_API: ${{ vars.TURBO_API }}
34
33
  TURBO_TEAM: ${{ vars.TURBO_TEAM }}
35
34
  TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
36
35
  TURBO_REMOTE_CACHE_SIGNATURE_KEY: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
37
- TURBO_CACHE: ${{ !vars.TURBO_API && 'local:rw' || ((github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' && 'local:rw,remote:rw' || 'local:rw,remote:r') }}
36
+ TURBO_CACHE: ${{ !vars.TURBO_API && 'local:rw' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && 'local:rw,remote:rw' || 'local:rw,remote:r') }}
38
37
 
39
38
  # The machine of every job: the repository's variable RUNNER (Settings > Secrets and variables >
40
39
  # Actions > Variables), a label in JSON (`"ubuntu-latest"`) or a list of labels
@@ -42,34 +41,7 @@ env:
42
41
  # repository's settings, never in this file.
43
42
 
44
43
  jobs:
45
- # Main that did not move plays nothing again: on the schedule, when the last green pass of this
46
- # workflow on main is the commit of the tip, every job of the pass is skipped (a job skipped by its
47
- # condition reports « Success »). The job itself always runs, so that its dependents read its
48
- # output; a search that fails says nothing, and the pass plays. A start by hand or the call of a
49
- # release always plays. It reads the runs of the repository: a workflow that calls this one grants
50
- # it `actions: read`. On a runner of the repository, `gh` must be installed.
51
- moved:
52
- # The machine of the jobs: the variable RUNNER of the repository, GitHub's runner without it.
53
- runs-on: ${{ fromJSON(vars.RUNNER || '"ubuntu-latest"') }}
54
- permissions:
55
- actions: read
56
- contents: read
57
- outputs:
58
- unchanged: ${{ steps.search.outputs.unchanged }}
59
- steps:
60
- - name: Last green pass of main
61
- id: search
62
- if: github.event_name == 'schedule'
63
- env:
64
- GH_TOKEN: ${{ github.token }}
65
- run: |
66
- last=$(gh run list --repo "$GITHUB_REPOSITORY" --workflow ci.yml --branch main --status success --limit 1 --json headSha --jq '.[0].headSha' || true)
67
- if [ -n "$last" ] && [ "$last" = "$GITHUB_SHA" ]; then unchanged=true; else unchanged=false; fi
68
- echo "unchanged=$unchanged" >> "$GITHUB_OUTPUT"
69
-
70
44
  gardes:
71
- needs: moved
72
- if: needs.moved.outputs.unchanged != 'true'
73
45
  runs-on: ${{ fromJSON(vars.RUNNER || '"ubuntu-latest"') }}
74
46
 
75
47
  # Node 26 alone, whatever the trigger.
@@ -102,6 +74,11 @@ jobs:
102
74
  - name: Install dependencies
103
75
  run: npm ci
104
76
 
77
+ # The project's preparation (system packages, toolchains), when its package.json has the
78
+ # script `ci:preparer`; it may export variables to the next steps through $GITHUB_ENV.
79
+ - name: Prepare the project
80
+ run: npm run --if-present ci:preparer
81
+
105
82
  # The binaries of the project's languages that the verification runs (cargo's sccache,
106
83
  # nextest and cargo-deny, python's uv), each at its version; none for TypeScript alone.
107
84
  - name: Install the binaries of the languages
@@ -113,8 +90,6 @@ jobs:
113
90
  run: npm run verifier -- --sans-tests
114
91
 
115
92
  tranches:
116
- needs: moved
117
- if: needs.moved.outputs.unchanged != 'true'
118
93
  runs-on: ${{ fromJSON(vars.RUNNER || '"ubuntu-latest"') }}
119
94
 
120
95
  strategy:
@@ -147,6 +122,11 @@ jobs:
147
122
  - name: Install dependencies
148
123
  run: npm ci
149
124
 
125
+ # The project's preparation (system packages, toolchains), when its package.json has the
126
+ # script `ci:preparer`; it may export variables to the next steps through $GITHUB_ENV.
127
+ - name: Prepare the project
128
+ run: npm run --if-present ci:preparer
129
+
150
130
  # The binaries of the project's languages that the verification runs (cargo's sccache,
151
131
  # nextest and cargo-deny, python's uv), each at its version; none for TypeScript alone.
152
132
  - name: Install the binaries of the languages
@@ -170,8 +150,8 @@ jobs:
170
150
  retention-days: 7
171
151
 
172
152
  fusion:
173
- needs: [moved, tranches]
174
- if: ${{ !cancelled() && needs.moved.outputs.unchanged != 'true' }}
153
+ needs: tranches
154
+ if: ${{ !cancelled() }}
175
155
  runs-on: ${{ fromJSON(vars.RUNNER || '"ubuntu-latest"') }}
176
156
 
177
157
  strategy:
@@ -91,6 +91,11 @@ jobs:
91
91
  - name: Install dependencies
92
92
  run: npm ci
93
93
 
94
+ # The project's preparation (system packages, toolchains), when its package.json has the
95
+ # script `ci:preparer`; it may export variables to the next steps through $GITHUB_ENV.
96
+ - name: Prepare the project
97
+ run: npm run --if-present ci:preparer
98
+
94
99
  # The binaries of the project's languages (cargo's sccache, nextest and cargo-deny, python's
95
100
  # uv), each at its version; none for TypeScript alone.
96
101
  - name: Install the binaries of the languages
@@ -59,6 +59,11 @@ jobs:
59
59
  - name: Install dependencies
60
60
  run: npm ci
61
61
 
62
+ # The project's preparation (system packages, toolchains), when its package.json has the
63
+ # script `ci:preparer`; it may export variables to the next steps through $GITHUB_ENV.
64
+ - name: Prepare the project
65
+ run: npm run --if-present ci:preparer
66
+
62
67
  # The binaries of the project's languages that the night tests run (cargo's sccache,
63
68
  # nextest and cargo-deny, python's uv), each at its version; none for TypeScript alone.
64
69
  - name: Install the binaries of the languages
@@ -38,10 +38,15 @@ interface publiée…>. Le cadre et l'architecture montent toujours (charte comm
38
38
  ## Commandes
39
39
 
40
40
  - `npm test` (Turborepo : construction, puis tests ; une tâche dont rien n'a bougé est relue de son cache, `npm run test:forcer` rejoue) · `npm test -- <chemins>` (un lancement ciblé : chaque chemin écrit depuis la racine, joué dans son paquet, avec les constructions dont ses tests dépendent, relues du cache ; ses tests rejouent dès que bouge ce qu'ils importent ; un lancement qui ne joue aucun test échoue ; un test de nuit nommé est refusé, la nuit seule le joue ; une mesure de temps — un banc, un témoin de temps — se joue quand son propre fichier est nommé, sous la mesure du temps) · `npm run verifier` (après la construction, les gardes du cadre, celles du projet — son script `gardes` —, le typage de chaque paquet — son script `typecheck`, ses sources et ses tests —, la mise en forme et le lint de la racine — ses scripts `format:check` et `lint`, joués quand ils existent — et les tests, côte à côte, sur sa part de la machine, sans aucune mesure de temps, que joue la nuit seule : ce que jouent l'intégration, la file, la CI et la nuit ; mesuré contre le dernier vert, un paquet rejoué joue les tests que Vitest relie aux fichiers changés depuis, tous quand un changement sort de son graphe ; 0 vert, 1 rouge, un délai dépassé compris ; 75 quand l'attente de la part de la machine ou de place sous /tmp atteint sa borne, ou quand la veille de la mémoire coupe la passe avant que le système ne tue) · `npm run verifier -- --tout` (la passe complète, chaque test joué pour de vrai : ce que joue la nuit) · `npm run verifier -- --gardes` (les gardes, la mise en forme et le lint, même verdict : ce que joue le relecteur) · `npm run typecheck` · `npm run lint` · `npm run format:check`.
41
+ - La préparation de la CI : le script npm `ci:preparer` du `package.json` racine (facultatif ; les
42
+ flux du cadre le jouent, `npm run --if-present ci:preparer`, après `npm ci` et avant la
43
+ vérification, dans chaque job qui vérifie ou teste : paquets système, chaîne de langage, variables
44
+ exportées par `$GITHUB_ENV`). Il est rejoué à chaque job et par version de Node : il est
45
+ idempotent, et porte lui-même les droits d'installation sur un exécuteur du projet. Le fichier de
46
+ CI reste au cadre ; un travail propre au projet (une image Docker, un déploiement) vit dans un flux
47
+ à lui, à côté de ceux du cadre. Un projet à copie sans marque du `ci.yml` pose `ci:preparer`,
48
+ remplace sa copie par le fichier marqué du gabarit, puis joue `npx grillhouse maj`.
41
49
  - Préfixe des tickets : `<prefixe>-`.
42
- - La politique de poussée : la clé `grillhouse.poussee` du `package.json` (`commit` : la branche où
43
- part chaque commit, main par défaut ; `nuit` : la branche où la nuit pousse son commit vert ;
44
- seule la nuit la pousse, le crochet pre-push refuse toute autre poussée vers elle).
45
50
  - Les sous-modules partagés : la clé `grillhouse.partage` du `package.json` (les chemins des
46
51
  sous-modules qu'aucun ticket n'écrit ; chaque copie les lit dans le dépôt principal, en lecture
47
52
  seule, au lieu d'en recevoir un exemplaire).
@@ -66,6 +71,15 @@ interface publiée…>. Le cadre et l'architecture montent toujours (charte comm
66
71
  lot appliqué ; lue dans l'arbre principal ; une entrée que le lot retire de la clé n'est plus
67
72
  rejouée, et ses fichiers suivent le lot, leur suppression comprise ; une clé sans commande, sans
68
73
  fichiers ou avec un motif hors du dépôt est refusée par son nom avant tout travail).
74
+ - Les dossiers de matière de test : la clé `grillhouse.matieres` du `package.json` (une liste de
75
+ dossiers du dépôt, chacun depuis la racine : des cas qu'aucun paquet ne possède, comme le
76
+ `conformance/` que rejouent les tests d'un crate, le `filegroup(testonly)` de Bazel ou le
77
+ `tests/ui` de rustc ; le testwriter y écrit tout fichier, dans chaque langage, et son enveloppe
78
+ les monte en écriture, celle du développeur en lecture seule ; le relecteur et la preuve du
79
+ rouge les comptent comme de la matière de test, jamais du code ; lue dans l'arbre principal ;
80
+ un chemin vide, absolu, hors du dépôt, absent de l'arbre principal, ou qui est un paquet, en
81
+ contient un ou y est contenu, et une clé fautive sont refusés par le nom
82
+ `grillhouse.matieres` avant tout travail ; sans la clé, rien ne change).
69
83
  - Le nombre de circuits à la fois : la clé `grillhouse.circuits` du `package.json` (un entier
70
84
  ≥ 1, **1** quand elle est absente : les circuits actifs du projet à la fois, que la file des
71
85
  tickets tient ; un circuit arrêté sur une question au superviseur, ou repris et en attente de sa
@@ -95,10 +109,13 @@ interface publiée…>. Le cadre et l'architecture montent toujours (charte comm
95
109
  fois. La passe n'a que cette part : le système la tient dans un groupe de contrôle de Linux à elle
96
110
  (poids de processeur et plafond de mémoire tirés de la part, sans plafond dur de processeur), et
97
111
  elle attend, en disant ce qu'elle attend (cœurs, mémoire, charge), quand le budget manque ; la
98
- nuit et une mesure de temps demandent le budget entier et jouent seules.
112
+ nuit et une mesure de temps demandent le budget entier et jouent seules. Une séance d'agent est
113
+ bornée comme une passe : elle tourne dans un groupe de contrôle à elle, avec un plafond dur de
114
+ processeur égal aux cœurs de la part (les passes qu'elle lance jouent dans ce plafond, sans groupe
115
+ à elles) ; sans gestionnaire de groupes, elle part sans borne et le journal du circuit le dit.
99
116
  - Le sigle du projet : la clé `grillhouse.sigle` du `package.json` (une chaîne non vide sans
100
- espace, le nom court du projet aux affichages partagés entre projets : la ligne des places, qui
101
- nomme qui tient chaque place, et le panneau de plusieurs projets ; absente, le préfixe de tickets
117
+ espace, le nom court du projet aux affichages partagés entre projets, comme le panneau de
118
+ plusieurs projets ; absente, le préfixe de tickets
102
119
  de `.beads/config.yaml` sert ; une autre valeur est une faute que le panneau dit en alerte, le
103
120
  préfixe restant le sigle).
104
121
  - La CI de main : le flux `.github/workflows/ci.yml` que le cadre pose joue sur main, par paquets, au
package/charte.md CHANGED
@@ -136,6 +136,12 @@ d'autre ne touche, le reste de la machine continuant de travailler), et un éche
136
136
  il est rouge, et un délai trop juste s'élargit, très au-dessus de la durée normale du test. Ainsi
137
137
  le jour avance, et une mesure se prend au repos.
138
138
 
139
+ **Un test qui exige de la charge joue la nuit** (les tests de résistance de Chromium et de rustc,
140
+ hors de la passe de chaque changement) : un test qui a besoin d'une machine chargée produit sa
141
+ charge lui-même et est un test de nuit, joué seul. De jour, personne ne fabrique de charge : un
142
+ test soupçonné instable se rejoue par `npm run test:forcer`, sans boucle ni processus lancés pour
143
+ occuper la machine. Ainsi la charge d'un test reste la sienne, et le jour garde sa machine.
144
+
139
145
  **Un projet a plusieurs langages, un paquet un seul** : chaque paquet relève du langage de son
140
146
  outil, et `npm test`, la vérification et le circuit jouent chaque paquet avec cet outil. Ainsi
141
147
  chaque paquet se construit et se teste d'une seule façon.
@@ -195,7 +201,7 @@ reste dans son lot. Une configuration dont une garde mesure l'effet reste au cir
195
201
  réorganisation qui a du code garde sa règle : sous un plan qui dit « comportement tests-adaptés », la
196
202
  suite existante fait la preuve : elle accepte chaque vert, le testwriter garde ses tests, et le
197
203
  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
204
+ geste écrit à la main, le développeur seul, sans testwriter ni preuve, sauf si le superviseur répond `--depuis testwriter` : sa commande explicite l'emporte sur la sorte du plan, le testwriter joue, la preuve accepte chaque vert, et le circuit reprend aux contrôles. Hors de ce cas, une preuve qui ne trouve aucun rouge passe aux
199
205
  contrôles et à la relecture sans séance du développeur.
200
206
  La bascule marche dans les deux sens, sur le même plan, ses paquets et ses critères gardés : le
201
207
  testwriter qui ne trouve aucun comportement à tester s'arrête (motif `aucun-comportement`), et le
@@ -313,7 +319,8 @@ dossier.
313
319
  - **Main reste vert** : la file n'avance main que sur l'arbre que la passe finale du circuit (ou,
314
320
  hors du circuit, la vérification du lot direct) a jugé vert, le lot posé sur la pointe de main ;
315
321
  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
322
+ une fois par heure (le modèle de Google, TAP, et de Chromium), la file la déclenchant elle-même
323
+ après l'entrée d'un lot (`gh workflow run`), sans horloge tierce : elle voit ce que la passe finale
317
324
  ne joue pas (autres plates-formes, matrice de versions, flux hors `npm run verifier`). Un rouge
318
325
  de la CI de main, ou de la machine vierge, alerte le superviseur avec les lots entrés depuis le
319
326
  dernier vert, sans arrêter la file, et ouvre un ticket de défaut sous `a-valider` : un rouge de
@@ -41,6 +41,7 @@ import path from 'node:path';
41
41
  import { WorkflowNotFoundError } from '@temporalio/client';
42
42
  import { DepartRefuse, ticketAuLancement } from '../../../scripts/depart-du-ticket.mjs';
43
43
  import { retirerLaCopieDuTicket } from '../../../scripts/recommencer.mjs';
44
+ import { heureDuReport } from '../../../scripts/reponses-du-circuit.mjs';
44
45
  import { sansReponseEn } from '../../../scripts/sans-reponse.mjs';
45
46
  import { DELAI_JOIGNABLE_MS, adresseDuServeur, ouvrirLeClient, serveurJoignable, } from '../client.js';
46
47
  import { fileDuProjet } from '../installation.js';
@@ -112,9 +113,10 @@ async function repondre(client, racine, appel) {
112
113
  if (appel.reporter) {
113
114
  // The ticket deferred, its circuit left waiting on its question: the wait, the stop and the
114
115
  // opening keep it quiet until the hour (scripts/superviseur.mjs `horsAttente`).
115
- bd(racine, 'update', ticket, '--defer', appel.reporter);
116
- bd(racine, 'comments', 'add', ticket, `Question reportée au ${appel.reporter}${contexte ? ` : ${contexte}` : ''} ; le circuit reste en attente, sa question remonte à l'heure.`);
117
- return `▶ Circuit de ${ticket} : sa question est reportée au ${appel.reporter} ; le circuit reste en attente, sa question remonte à l'heure.`;
116
+ const { defer, quand } = heureDuReport(appel.reporter, new Date());
117
+ bd(racine, 'update', ticket, '--defer', defer);
118
+ bd(racine, 'comments', 'add', ticket, `Question reportée ${quand}${contexte ? ` : ${contexte}` : ''} ; le circuit reste en attente, sa question remonte à l'heure.`);
119
+ return `▶ Circuit de ${ticket} : sa question est reportée ${quand} ; le circuit reste en attente, sa question remonte à l'heure.`;
118
120
  }
119
121
  if (appel.arreter) {
120
122
  await arreterLeCircuit(client, racine, ticket, contexte);
@@ -1 +1 @@
1
- {"version":3,"file":"commande.js","sourceRoot":"","sources":["../../../src/temporal/circuit/commande.ts"],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CAAC,EAAE,CAAC;QACX,IAAI,CAAC,YAAY,cAAc,EAAE,CAAC;YAChC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC;YACzC,OAAO,CAAC,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"}
@@ -29,7 +29,7 @@
29
29
  // - A malformed call writes the usage on the error stream, exit 2.
30
30
  import { readFileSync } from 'node:fs';
31
31
  import { etat, texteDeLEtat } from './etat.js';
32
- import { installer, lieuxDe, poserLeProgramme, systemctlDuCompte, travailleurPerime, } from './installation.js';
32
+ import { installer, lieuxDe, poserLeProgramme, systemctlDuCompte, texteDeLInstallation, travailleurPerime, } from './installation.js';
33
33
  const USAGE = 'Usage : grillhouse temporal <installer|etat|perime> [--programme-seul] [--archive <fichier>] ' +
34
34
  '[--maison <dossier>] [--unites <dossier>] [--racine <dossier>] [--systemctl <programme>]\n';
35
35
  const OPTIONS = new Set(['--archive', '--maison', '--unites', '--racine', '--systemctl']);
@@ -88,18 +88,7 @@ async function principal(args) {
88
88
  return e.installe ? 0 : 1;
89
89
  }
90
90
  const r = await installer({ lieux, systemctl, ...obtenir });
91
- process.stdout.write(r.change
92
- ? `temporal : ${r.pose ? 'programme posé' : 'programme à jour'} (${r.programme}) ; ` +
93
- `unités écrites : ${r.unites.join(', ') || 'aucune'} ; ` +
94
- `appliquées : ${r.appliquees.join(', ') || 'aucune'}` +
95
- (r.compactage
96
- ? ` ; base compactée : ${r.compactage.avant} octets avant, ${r.compactage.apres} après`
97
- : '') +
98
- (r.serveurDiffere
99
- ? ` ; l'unité du serveur attend, le serveur n'étant ni arrêté ni compacté : circuits en vol (${r.serveurDiffere.join(', ')}), à rejouer quand ils sont arrêtés`
100
- : '') +
101
- '.\n'
102
- : 'temporal : l’installation est à jour, rien ne change.\n');
91
+ process.stdout.write(texteDeLInstallation(r));
103
92
  return 0;
104
93
  }
105
94
  principal(process.argv.slice(2)).then(code => {
@@ -1 +1 @@
1
- {"version":3,"file":"commande.js","sourceRoot":"","sources":["../../src/temporal/commande.ts"],"names":[],"mappings":";AACA,gEAAgE;AAChE,EAAE;AACF,sGAAsG;AACtG,8FAA8F;AAC9F,+FAA+F;AAC/F,mGAAmG;AACnG,6GAA6G;AAC7G,EAAE;AACF,qGAAqG;AACrG,EAAE;AACF,+FAA+F;AAC/F,mGAAmG;AACnG,oGAAoG;AACpG,sHAAsH;AACtH,kGAAkG;AAClG,UAAU;AACV,+FAA+F;AAC/F,uGAAuG;AACvG,0FAA0F;AAC1F,4FAA4F;AAC5F,2BAA2B;AAC3B,oGAAoG;AACpG,oGAAoG;AACpG,mGAAmG;AACnG,gGAAgG;AAChG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AO,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"}
@@ -1,6 +1,6 @@
1
1
  export { sonde } from './sonde/deroule.js';
2
2
  export { placesDeLaMachine } from './places/deroule.js';
3
3
  export { circuitDuTicket } from './circuit/deroule.js';
4
- export { ciDuCommit, fileDuProjet } from './file/deroule.js';
4
+ export { fileDuProjet } from './file/deroule.js';
5
5
  export { ticketsDuProjet } from './tickets/deroule.js';
6
6
  export { nuitPlanifiee, nuitsDeLaMachine } from './nuits/deroule.js';
@@ -1,12 +1,12 @@
1
1
  // The workflows of the frame, which the worker bundles (./travailleur.ts, `workflowsPath`): the
2
2
  // sonde (grillhouse-4nr.2), the places of the machine (grillhouse-4nr.7), the circuit of a ticket
3
- // (grillhouse-4nr.6), the queue of a project and the CI of a commit (grillhouse-4nr.8), the queue of
3
+ // (grillhouse-4nr.6), the queue of a project (grillhouse-4nr.8), the queue of
4
4
  // the tickets of a project (grillhouse-4nr.9), the nights of the machine and the workflow its
5
5
  // schedule starts (grillhouse-4nr.13).
6
6
  export { sonde } from './sonde/deroule.js';
7
7
  export { placesDeLaMachine } from './places/deroule.js';
8
8
  export { circuitDuTicket } from './circuit/deroule.js';
9
- export { ciDuCommit, fileDuProjet } from './file/deroule.js';
9
+ export { fileDuProjet } from './file/deroule.js';
10
10
  export { ticketsDuProjet } from './tickets/deroule.js';
11
11
  export { nuitPlanifiee, nuitsDeLaMachine } from './nuits/deroule.js';
12
12
  //# sourceMappingURL=deroules.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deroules.js","sourceRoot":"","sources":["../../src/temporal/deroules.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,kGAAkG;AAClG,qGAAqG;AACrG,8FAA8F;AAC9F,uCAAuC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"deroules.js","sourceRoot":"","sources":["../../src/temporal/deroules.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,kGAAkG;AAClG,8EAA8E;AAC9E,8FAA8F;AAC9F,uCAAuC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,15 +1,12 @@
1
1
  import type { ActivitesDeLaFile } from './contrat.js';
2
2
  type Entree<K extends keyof ActivitesDeLaFile> = Parameters<ActivitesDeLaFile[K]>[0];
3
3
  type Sortie<K extends keyof ActivitesDeLaFile> = Awaited<ReturnType<ActivitesDeLaFile[K]>>;
4
+ export declare function lireLaVersionDeLOutil(): Promise<string>;
4
5
  export declare function situerLeLot(e: Entree<'situerLeLot'>): Promise<Sortie<'situerLeLot'>>;
5
6
  export declare function preparerLaBranche(e: Entree<'preparerLaBranche'>): Promise<Sortie<'preparerLaBranche'>>;
6
7
  export declare function avancerMain(e: Entree<'avancerMain'>): Promise<Sortie<'avancerMain'>>;
7
8
  export declare function fermerLEntree(e: Entree<'fermerLEntree'>): Promise<Sortie<'fermerLEntree'>>;
8
9
  export declare function jugerLeCandidat(e: Entree<'jugerLeCandidat'>): Promise<Sortie<'jugerLeCandidat'>>;
9
10
  export declare function surveillerLaCiDeMain(e: Entree<'surveillerLaCiDeMain'>): Promise<Sortie<'surveillerLaCiDeMain'>>;
10
- export declare function lireLesPassagesDeLaCI(e: Entree<'lireLesPassagesDeLaCI'>): Promise<Sortie<'lireLesPassagesDeLaCI'>>;
11
- export declare function conclureLaCI(e: Entree<'conclureLaCI'>): Promise<Sortie<'conclureLaCI'>>;
12
- export declare function inscrireLesFluxDeMain(e: Entree<'inscrireLesFluxDeMain'>): Promise<void>;
13
- export declare function relireLesFluxDeMain(e: Entree<'relireLesFluxDeMain'>): Promise<Sortie<'relireLesFluxDeMain'>>;
14
11
  export declare function jouerUnEffetDeLaFile(e: Entree<'jouerUnEffetDeLaFile'>): Promise<void>;
15
12
  export {};
@@ -1,9 +1,21 @@
1
- // The activities of the queue of a project and of the CI of a commit (./deroule.ts): each plays one
1
+ // The activities of the queue of a project (./deroule.ts): each plays one
2
2
  // act of the queue (scripts/faits-du-circuit.mjs over scripts/integration/file.mjs) in a process
3
3
  // of its own (../acte.ts), so that a replacement of a branch and its install leave the worker
4
4
  // serving; the acts that write give back their effects, which the workflow plays one by one
5
5
  // (`jouerUnEffetDeLaFile`).
6
+ import { readFile } from 'node:fs/promises';
7
+ import { fileURLToPath } from 'node:url';
6
8
  import { jouer } from '../acte.js';
9
+ // The package.json of the package that carries this worker: three levels above this module, in
10
+ // src/ as in dist/ (the one `temporal installer` reads for the installed version).
11
+ const PACKAGE_JSON = new URL('../../../package.json', import.meta.url);
12
+ export async function lireLaVersionDeLOutil() {
13
+ const { version } = JSON.parse(await readFile(PACKAGE_JSON, 'utf8'));
14
+ if (typeof version !== 'string' || !version) {
15
+ throw new Error(`temporal : ${fileURLToPath(PACKAGE_JSON)} ne déclare pas de version.`);
16
+ }
17
+ return version;
18
+ }
7
19
  export async function situerLeLot(e) {
8
20
  return jouer('situer', e, e.racine);
9
21
  }
@@ -22,19 +34,6 @@ export async function jugerLeCandidat(e) {
22
34
  export async function surveillerLaCiDeMain(e) {
23
35
  return jouer('surveiller-la-ci-de-main', e, e.racine);
24
36
  }
25
- // Former path (grillhouse-3uv.131): the acts that answer these activities read nothing.
26
- export async function lireLesPassagesDeLaCI(e) {
27
- return jouer('passages', e, e.racine);
28
- }
29
- export async function conclureLaCI(e) {
30
- return jouer('conclure', e, e.racine);
31
- }
32
- export async function inscrireLesFluxDeMain(e) {
33
- await jouer('inscrire-flux-de-main', e, e.racine);
34
- }
35
- export async function relireLesFluxDeMain(e) {
36
- return jouer('relire-flux-de-main', e, e.racine);
37
- }
38
37
  export async function jouerUnEffetDeLaFile(e) {
39
38
  await jouer('effet-de-la-file', e, e.racine);
40
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"activites.js","sourceRoot":"","sources":["../../../src/temporal/file/activites.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,iGAAiG;AACjG,8FAA8F;AAC9F,4FAA4F;AAC5F,4BAA4B;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAMnC,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,CAAwB;IACxD,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,CAA8B;IAE9B,OAAO,KAAK,CAAC,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;AACxC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