@roomi-fields/grillhouse 0.53.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.
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +48 -0
- package/cadre/templates/projet/docs/agents/issue-tracker.md +2 -2
- package/charte.md +12 -0
- package/dist/temporal/circuit/deroule.js +5 -9
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/installation.d.ts +15 -2
- package/dist/temporal/installation.js +69 -17
- package/dist/temporal/installation.js.map +1 -1
- package/docs/INTERFACE.md +21 -1
- package/docs/architecture/circuit.md +3 -3
- package/docs/architecture/entree.md +4 -4
- package/docs/architecture/greffon.md +19 -10
- package/docs/architecture/installation.md +11 -7
- package/docs/architecture/machine.md +1 -1
- package/docs/architecture/tests.md +1 -1
- package/hooks/register.tsx +50 -24
- package/package.json +1 -1
- package/scripts/aiguillage.mjs +4 -2
- package/scripts/bd-garde.mjs +69 -0
- package/scripts/ci-de-main.mjs +259 -56
- package/scripts/circuit.mjs +20 -5
- package/scripts/commandes-composees.mjs +1 -1
- package/scripts/droits.mjs +11 -4
- package/scripts/file-des-tickets.mjs +27 -9
- package/scripts/langages/c/commandes.mjs +1 -1
- package/scripts/langages/cargo/commandes.mjs +1 -1
- package/scripts/langages/cargo/tailles-des-tests.mjs +115 -6
- package/scripts/langages/python/commandes.mjs +1 -1
- package/scripts/langages/typescript/code-mort.mjs +36 -3
- package/scripts/langages/typescript/migrations/configurations-en-commonjs.mjs +95 -24
- package/scripts/langages/typescript/mise-a-jour.mjs +49 -12
- package/scripts/langages/typescript/parcours.mjs +5 -1
- package/scripts/langages.d.mts +6 -0
- package/scripts/langages.mjs +6 -0
- package/scripts/lire.mjs +236 -0
- package/scripts/migrations/cout-des-jetons-au-registre.mjs +136 -0
- package/scripts/migrations/lire-un-ticket.mjs +46 -0
- package/scripts/migrations.mjs +4 -0
- package/scripts/montee.mjs +110 -46
- package/scripts/nuit.sh +21 -12
- package/scripts/registre.d.mts +7 -1
- package/scripts/registre.mjs +114 -102
- package/scripts/resultats.mjs +15 -5
- package/scripts/sous-commandes.mjs +1 -0
- package/scripts/suiveur.mjs +12 -4
- package/scripts/superviseur.mjs +28 -17
- package/scripts/tableau.mjs +527 -119
- package/scripts/tarifs.mjs +67 -0
- package/scripts/ticket-du-circuit.mjs +3 -4
- package/scripts/transitions.d.mts +0 -5
- package/scripts/transitions.mjs +3 -13
- package/scripts/verdict-de-la-nuit.mjs +2 -2
- package/skills/explorateur/SKILL.md +10 -5
- package/skills/mesure/SKILL.md +4 -3
- package/skills/pitmaster/SKILL.md +11 -2
- package/skills/pitmaster/references/erreurs.md +4 -2
- package/skills/pitmaster/references/tour.md +11 -4
- package/types/index.d.ts +3 -1
- package/scripts/base-des-workflows.mjs +0 -58
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.54.0] - 2026-12-01
|
|
10
|
+
|
|
11
|
+
- **The defect ticket of a red of main has a title a circuit starts on** (grillhouse-3uv.298): the ticket of a red CI of main was titled « CI de main rouge — CI, passage <n> », whose last part the departure of a circuit read as its components and refused. It now reads « number — CI de main rouge : <flow>, passage <n> — components », and the night's « number — subject — components » in place of « parent ». The components are the packages the commit scopes of the lots since the last green name, else the package of the frame when the repository holds it, else « . ». A pass keeps one ticket, the one under the former title included. The lots of a project whose ticket prefix holds a hyphen are now named too.
|
|
12
|
+
- **The dead-code guard refuses a knip that did not load a configuration** (grillhouse-3uv.296.1): seen on SyntHub, knip wrote « ERROR: Error loading packages/interface/vitest.config.cjs » on stderr and the guard gave 52 findings « sans appelant » from that partial report. It now refuses, before the debt is judged, when a run of knip writes such a line, each one cited, or ends on another exit code than 0 and 1; the debt is then neither inscribed nor lowered, and does not absorb the refusal. **Action for projects**: where the guard refuses for a configuration, fix the one knip names so that knip loads it, or set its plugin in `knip.json` with its reason.
|
|
13
|
+
- **The output of a response counts whole** (grillhouse-3uv.291.1): a transcript writes a streamed response over several lines of one identifier, and the board and the register kept the first, whose output is partial (about 8.9 M output tokens of sub-agents missing on Grillhouse). The largest output read now counts, whatever the order of the lines, the input and the cache once; the extra output is spent at the date of its line, at the tariff of its request. The board reads again from their start the transcripts its cache counted the old way, and the migration `cout des jetons au registre` rewrites `jetons` as well as `cout` on the lines whose transcript still exists. **Action for projects**: none beyond the update.
|
|
14
|
+
|
|
15
|
+
- **A response present in several transcripts counts once** (grillhouse-3uv.291.2): 818 responses of the frame's repository sat in two transcripts (about 65 $). The board and the register count a response, named by its message's id and its request's id, once among the transcripts of a project, in one copy chosen as ccusage does: off a sidechain, then the largest total of tokens, then the one with `cache_creation`; the line of the register of another transcript leaves it out of its tokens, cache and cost. The migration « cout des jetons au registre » recalculates the tokens, cache and cost of the existing lines accordingly. The transcripts of one agent now add up, on the board and in its line of the register. Writing a line now scans the project's transcripts written since the agent began. Gaps to ccusage, decided by the supervisor (2026-11-30): at equal usage the file created first wins before the first path, because the register only adds lines and a later copy would count twice; the key is that pair alone, so a replay of a sidechain under another request id counts apart (none seen); the speed and the written cost are not read. **Action for projects**: none beyond the update.
|
|
16
|
+
|
|
17
|
+
- **An update no longer fails when the tickets of a project of the machine do not read** (grillhouse-3uv.294.1): seen on an update of OSD (2026-11-30), `bd list` of another project not answering made `npx grillhouse temporal installer` exit 1. Decided (2026-11-30): the report still says the project and the command to play again, its copies with a `.travail` folder keep their versions, the other versions nothing names are removed, and the exit is 0. A source that blocks every removal, or a removal that fails, still exits 1. **Action for projects**: none beyond the update.
|
|
18
|
+
|
|
19
|
+
- **`npx grillhouse temporal` runs by the published version in the frame's repository** (grillhouse-3uv.290.1): decided by the owner (2026-11-30). The subcommand was a tool of the repository: a repair by hand, `temporal installer`, played the `dist` of the workspace, which may be stale. It is now redirected to the version `grillhouse.outil` names, as the orchestration is; a version that cannot be installed is said in one line and the code of the repository takes its place. The night flow of the frame lays the program `temporal` down by the file its step Build has just built. **Action for projects**: none beyond the update.
|
|
20
|
+
|
|
21
|
+
- **A circuit stopped by `--arreter` keeps what its stop held** (grillhouse-dhy.1): the state it writes keeps the work on the plan (`questionnement`), so a circuit stopped during its plan reads at « 1 Plan » and no longer at « 2 Tests »; it also keeps the motive of the stop (`motif`), so a direct circuit stopped at the review on « demande-un-plan » resumes at the code as without `--arreter`, and its loops and its relaunch on a refusal. **Action for projects**: none beyond the update.
|
|
22
|
+
|
|
23
|
+
- **An interrupted turn no longer leaves the session of supervision without its compaction of idleness** (grillhouse-3uv.289.1): a turn that ends with no answer (interrupted, an error of the API, a refusal) raises no Stop, so the one-hour cache expired with no compaction. Its end now counts as the quiet stop: `superviseur --renouveler` takes a fourth argument, `sans-reponse`, and compacts after 55 minutes, playing no milestone. It does not count while the last Stop listed a background task; a task launched during the interrupted turn is not seen. **Action for projects**: none beyond the update.
|
|
24
|
+
|
|
25
|
+
- **The migration of the configurations to CommonJS no longer fails on a file gone since its listing** (grillhouse-wmz): seen in the CI of main (46457427093), the migration « configurations en commonjs » read a temporary file Vite writes beside a configuration (`*.timestamp-*.mjs`) and removes, and failed with ENOENT. It no longer reads these files, and a file it listed to find the readers of the configurations that is gone before its read names none. Any other fault of a read still stops it. **Action for projects**: none beyond the update.
|
|
26
|
+
- **The sessions of the circuit compact in a window of 400k** (grillhouse-3uv.293.1): decided by the owner (2026-11-30), a trial whose real cost is then measured on the pane. The env block of every role session sets `CLAUDE_CODE_AUTO_COMPACT_WINDOW=400000`, the window of compaction, bounded by that of the model, and not the threshold (on a model of 1M, with Claude Code 2.1.332, a session compacts at 367k), and an empty `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`, which takes the place of the one the launching environment sets. **Action for projects**: none beyond the update.
|
|
27
|
+
- **The control of the base of the workflows is removed** (grillhouse-3uv.292): `scripts/base-des-workflows.mjs` checked that a step playing `verifier --base` did so on a push only. Since grillhouse-3uv.121 no workflow of the frame or of the template passes `--base`, and only its tests played the control. The base of a lot (`verifier --base`, `scripts/dernier-vert.mjs`) stays, and so does the dependency `yaml`, read by `scripts/migrations/0.47.0-ci-de-main.mjs`. A project has nothing to do.
|
|
28
|
+
|
|
29
|
+
- **A pass of the CI of main « à repasser » is no longer a red** (grillhouse-3uv.297): seen on SyntHub (2026-11-30), a pass whose verification ended in 75 for lack of cores alerted the supervisor and opened a defect ticket against four lots. A pass whose only failures are passes of verification of the frame's `ci.yml` declaring the exit code 75 (and the merge of the tranches that follows) judges nothing: the pass before it decides, the queue starts the flow again once an hour is past, even on the same tip, and the board names it « à repasser ». Three such passes or more after a green alert the supervisor that main is no longer judged. Jobs or annotations that `gh` does not give leave the CI « non lue ». A 75 out of any other step stays a red.
|
|
30
|
+
|
|
31
|
+
- **knip loads the converted configuration of Vitest, and the dead-code guard sees the tests again** (grillhouse-3uv.296): the migration « configurations en commonjs » wrote `await import('./vite.config.js')` for a `vite.config.ts`, which knip could not load: the guard `code-mort` lost the entries of the package and reported its tests, its index and the exports they alone read. Decided by the owner (2026-11-30): a relative import whose file is TypeScript is now read by `require()` under its real name, after a resolution hook (`registerHooks`) that resolves to its `.ts` a relative `.js` import no file answers; any other import stays an `await import()`. The way out given for a configuration left says both forms. **Action for projects**: none; an update to 0.53.x from main plays the corrected migration.
|
|
32
|
+
|
|
33
|
+
- **The external dependencies and the pane find `bd` out of the PATH too** (grillhouse-3uv.249.2): decided by the supervisor (2026-11-30). The tickets of the provider projects (`lireLesExternes`) were read by the name `bd`: from a process whose PATH lacks it, each provider was left out and the ticket waiting for it stayed held. They are now read by the path kept for the project that reads, checked (greffon.md, §5.3). The board publishes the command of `bd` it resolved at each measure (field `bd`, greffon.md, §4.2), and the pane's keys `g` and `h` call it, its folder ahead of the PATH when it is a path. **Action for projects**: none beyond the update.
|
|
34
|
+
|
|
35
|
+
- **The board reads the tickets when its process lacks `bd` in its PATH** (grillhouse-3uv.249): decided by the owner (2026-11-30). The pane said « la commande bd est absente » while `bd` answered in the session's shell: a follower started without the shell's profile does not have the folder of `bd` (under nvm, for instance) in its PATH. A process whose PATH holds `bd` now keeps its absolute path in the common git directory (`grillhouse-bd.chemin`), a follower from its start; one whose PATH lacks it takes that path back, checked (an executable file named `bd`), its folder ahead of the PATH. Without a path to take back, the alert names the process that measures and its PATH instead of « cette séance » (greffon.md, §5.3). **Action for projects**: none beyond the update.
|
|
36
|
+
|
|
37
|
+
- **The size guard of the Rust tests reads git's `init`, not the word** (grillhouse-jho): a test file that starts a program and holds the string `"init"` or `"clone"` anywhere was classed large, as `osd init`. `init`, `clone` and `worktree add` now mount a trial repository only as the arguments of a call of git (the parentheses of a function or macro named after git or running it, or of a function of the files read for the test that passes its string arguments to git; the `arg` and `args` of `Command::new("git")`, of a function named after git or of one that returns such a command, chained on it or on the name it is bound to), or in a command `git …`; git2's `Repository::init` and `clone` count as before. Arguments built apart from the call (a list held in a variable) are not followed. **Action for projects**: remove a workaround such as `concat!("in", "it")`.
|
|
38
|
+
|
|
39
|
+
- **The former order of the stop « sans-livraison » is retired** (grillhouse-3uv.181): no circuit in flight lacks the marker `attribution-avant-sans-livraison` of grillhouse-3uv.177 (nine running on the machine's server on 2026-11-30, all carrying it). The workflow of a ticket calls `deprecatePatch` and reads `patched` no more, the decision has no parameter `marqueurs`, and the recorded history without the marker is deleted with its test.
|
|
40
|
+
- **The pane gives the real cost of each project, cache included** (grillhouse-3uv.291): asked by the owner (2026-11-30). The day and the cumul each have their line, « jour <time> · <tokens> · <cost> $ » and « cumul … », summed on a board of several projects, where a supervisor's session counts once, in the project of its folder. Their tokens, and the day's on the status line, add every billed kind (input, output, cache written and read); a ticket's, a chantier's and a done line's keep their former count. Each agent counts once, by its latest line of the register or by its transcript when that holds more, so a silent supervisor's session stays counted; the day takes the responses dated since its marker. A sum that lacks a cost reads « ≥ 12 $ ». The register's `cout` is now the price of the line's own tokens, response by response (new tariffs: Fable 5.2, Opus 5, Opus 4.8, Haiku 5.5 and its upper tier): the total a session writes, which holds its sub-agents' spending, is no longer taken. A migration recalculates the lines of the project whose transcript still exists, after a copy of the register is kept beside it, and says the number and amount of the others, **which may include sub-agents' spending**. The first reading of a project's transcripts takes some seconds (about 15 s for 4.5 GB). **Action for projects**: none beyond the update.
|
|
41
|
+
|
|
42
|
+
- **The supervisor hands every investigation to a new sub-agent** (grillhouse-3uv.295): agreed by the owner (2026-11-30). The supervisor's session carries the largest share of a project's cost, because each turn reads its whole context again. The skill `pitmaster` now says that an investigation, the search for an answer or a cause no text places on a named object, goes to a new sub-agent: every reading of code or of a log it asks for, even short, and any other reading beyond a few dozen lines. The sub-agent returns a short summary with its pieces, and the supervisor reads that summary and the piece it cites. The supervisor keeps the line it checks at its piece, a ticket, a circuit command and its short answer, the look at a moving log to know a circuit is alive, and the readings another text entrusts to it on a named object. The rule that stops every agent it launched once the report is read joins this one. **Action for projects**: none beyond the update.
|
|
43
|
+
|
|
44
|
+
- **A montée that exits non-zero ends its report on what failed** (grillhouse-3uv.294): a montée that had entered main could exit 1 with no message after `npm install`, the failure of the machine's part standing thousands of lines above. `npx grillhouse maj` now says each failed gesture again, last, on the error output (the machine's part, the push, `npm install` and the plugins in the main tree), whole, with the command that plays it again. A montée that did not enter says the failures of the machine's part after its cause, and keeps its exit code.
|
|
45
|
+
- **A script returns a summary of a long output, then unfolds the part needed** (grillhouse-3uv.293.2): decided by the owner (2026-11-30). The common charter says it once, under « Outils », for every session: a script returns the size, the structure, the useful lines and the address of the rest of a long output (a ticket, a file, a test run, a `git diff`), keeps the whole output in a variable, and unfolds at most one part of one long output. Everything a script returns at once, value and log, holds in 8,000 characters; the report of a sub-agent and the text of a loaded skill do not count. A reading a skill asks for in full stays full, part after part. Rule 10 of the skill `mesure` agrees: the conclusion rests on the whole output, kept and searched in the variable. **Action for projects**: none beyond the update.
|
|
46
|
+
|
|
47
|
+
- **A ticket reads as its summary first, its comments on demand** (grillhouse-3uv.293.3): agreed by the owner (2026-11-30). `npx grillhouse lire <ticket>` gives the id and the title, the state, the dependencies, the count of the children per status, the description up to the end of its section of criteria (each section left out and the notes named) and one line per comment; `<number>` unfolds a comment, `--description` gives the whole description and the notes, `--tout` everything. It writes nothing in Beads. A role whose instruction carries its ticket is refused it on that ticket, as `bd show` and `bd comments`. The skills `explorateur` and `pitmaster` and `docs/agents/issue-tracker.md` name it. **What a project sees on the update** (`npx grillhouse maj`, migration « lire un ticket »): two sentences of the template in its `docs/agents/issue-tracker.md` name the command in place of `bd show` and `bd comments`, the one that reads a ticket and the one that says how the next session finds the handoff; nothing else changes. **Action for projects**: none.
|
|
48
|
+
|
|
49
|
+
- **`npx grillhouse maj <x.y.z>` goes to its commit in the frame's repository** (grillhouse-3uv.290): the machine's part runs `temporal installer` and `nuit --planifier` from the published tool of the version under `~/.cache/grillhouse/outil/`, never the workspace's `dist`; if the version does not install, both are reported failed. The frame's repository records `grillhouse.version`, carries the entries the montée writes, and its CI `build` job no longer runs the empty `Build` step. In every project, the typescript share declares the frame's package only in a package whose tests run by Vitest (never in the frame's package itself), and gives no `typecheck` script to a package whose `tsconfig.json` extends an absent relative file. **Action for projects**: none.
|
|
50
|
+
|
|
51
|
+
- **The unit of the Temporal server does not go back to an earlier version** (grillhouse-8eo): `npx grillhouse temporal installer`, run from a project still on an earlier version, rewrote and applied the server's unit of the account with its former settings, undoing those of a project already moved up. The unit now carries the version of the frame that wrote it (`X-Grillhouse-Version`); an installation of an earlier version neither writes nor applies it, and its output names both versions (`serveurPlusNeuf` of the report). An equal or later version applies it as before, a unit without a version is replaced, and a change of that line alone is read by systemd without restarting the server. **Action for projects**: none beyond the update; a project on a version from before this one still rewrites the unit, so move every project of the machine up.
|
|
52
|
+
|
|
53
|
+
- **A refused piece of the ticket names what the description holds, and a stop of the plan stands at « 1 Plan »** (grillhouse-dhy): the refusal of an absent section lists the headings of the description; the refusal of a criterion, when no heading begins with « Critères », says that heading is expected. A session of the plan that ends without a conforming sheet (the explorateur's or the questionneur's) was written at « 2 Tests » and left out of the stops of the bilan: it is written at « 1 Plan » and counted. **Action for projects**: none.
|
|
54
|
+
|
|
55
|
+
- **The pane shows only the passes without a ticket of its own project** (grillhouse-3uv.209): asked by the owner (2026-11-23), after the pane of one project showed a verification of another. A pass without a ticket (a verification launched by hand, the night, a measure) of another project, holding a part or waiting for one, no longer makes a line of the Parts block; the one of the session's project keeps its line. The budget line, « Parts · n passes · x sur y cœurs · a sur b Go », still counts every pass of the machine. The header of `tableau.mjs` and greffon.md §5.3 say it, and §9.1 no longer lists this removal as to be done. **Action for projects**: none.
|
|
56
|
+
|
|
9
57
|
## [0.53.0] - 2026-11-30
|
|
10
58
|
|
|
11
59
|
- **A milestone compacts the supervisor's session instead of clearing it, and an idle session is compacted before its cache expires** (grillhouse-3uv.289): decided by the owner (2026-11-29). At a declared milestone the greffon calls the compaction of Claude Code where it ran `/clear`, so the history stays on screen; after 55 minutes without a turn it compacts too, with or without a note (a gap to `idleCompaction`, written in greffon.md, §5.2). A new `PreCompact` hook of the plugin (`grillhouse pre-compact`) gives the note of resumption as instructions of the summary to every compaction of the session that holds the lock, manual and automatic ones included. After a compaction the opening gives that session the circuits, their questions and the note, as after a `/clear`. `superviseur --renouveler` prints the line `{"reprise": <message>}`. The request to write the note after a compaction and `superviseur --relever --compaction` are removed: two milestones remain, a release announced and the end of the day. **Action for projects**: none beyond the update, which moves the tool and the plugin together (`npx grillhouse maj`); reopen the supervisor's session afterwards.
|
|
@@ -28,7 +28,7 @@ Issues for this repo live in Beads, a git-backed tracker: data under `.beads/`,
|
|
|
28
28
|
|
|
29
29
|
## When a skill says "fetch the relevant ticket"
|
|
30
30
|
|
|
31
|
-
`
|
|
31
|
+
`npx grillhouse lire <id>` gives its summary (title, state, description up to its criteria, one line per comment, the handoff among them). Before acting, play `npx grillhouse lire <id> --description` when the summary names a section left out or notes, and unfold by its number each comment the gesture needs, `npx grillhouse lire <id> <number>` (a handoff is read whole); `--tout` gives everything. `bd list --parent <id>` lists an epic's children; `bd list --pretty` shows the tree.
|
|
32
32
|
|
|
33
33
|
## Working a ticket
|
|
34
34
|
|
|
@@ -39,6 +39,6 @@ Issues for this repo live in Beads, a git-backed tracker: data under `.beads/`,
|
|
|
39
39
|
|
|
40
40
|
## Handoff
|
|
41
41
|
|
|
42
|
-
The handoff is a comment on the ticket being worked, written by `bd comments add <id>`, not a temp file or a skill's document: the next session finds it with `
|
|
42
|
+
The handoff is a comment on the ticket being worked, written by `bd comments add <id>`, not a temp file or a skill's document: the next session finds it with `npx grillhouse lire <id>`, and unfolds it by its number (`--description` first when the summary names a section left out or notes).
|
|
43
43
|
|
|
44
44
|
The time each session takes is the register's (`packages/grillhouse/scripts/registre.mjs`), which reads its transcript: the handoff does not declare it. A session the circuit leads ends on its sheet, the structured output its role's schema describes (`packages/grillhouse/scripts/resultats.mjs`), which the circuit reads; the handoff is for the human and the next session of its author. A discovery of such a session goes into its sheet (`decouvertes`), which the circuit files closed under the ticket.
|
package/charte.md
CHANGED
|
@@ -182,6 +182,18 @@ code le suit.
|
|
|
182
182
|
- **L'index d'abord** : toute recherche commence par `rtfm_search` (mode `hybrid`) pour le quoi, et
|
|
183
183
|
par `codegraph explore` (ou l'outil `codegraph_explore`) pour l'appel ; le shell lit un fichier
|
|
184
184
|
déjà nommé. Ainsi une affirmation sur le code repose sur ce que le code contient.
|
|
185
|
+
- Un script rend un sommaire d'une sortie longue (un ticket, un fichier, une passe de tests, un
|
|
186
|
+
`git diff`) : sa taille, sa structure, les lignes utiles et l'adresse du reste ; l'agent déplie
|
|
187
|
+
ensuite la seule partie qu'il lui faut. La sortie entière reste dans une variable du script, d'où
|
|
188
|
+
l'aperçu et les parties dépliées se tirent sans relancer la commande. Tout ce qu'un script rend
|
|
189
|
+
au contexte en une fois tient en 8 000 caractères au plus : sa valeur et son journal, toutes clés
|
|
190
|
+
réunies, quelle qu'en soit la source (fichier, commande, index, ticket) ; le rapport d'un
|
|
191
|
+
sous-agent et le texte d'une compétence chargée n'y comptent pas. Une sortie est longue quand
|
|
192
|
+
elle ne tient pas entière dans cette borne avec le reste du résultat ; un script déplie au plus
|
|
193
|
+
une partie d'une seule sortie longue, et rend les autres en sommaire. Une lecture qu'une
|
|
194
|
+
compétence demande entière reste entière : ses parties se déplient l'une après l'autre, chacune
|
|
195
|
+
dans la borne, aucune sautée. Ainsi chaque tour relit un contexte mince, et toute la sortie reste
|
|
196
|
+
à portée.
|
|
185
197
|
- **Tout se lit, le plan s'écrit** : dans son enveloppe, un agent lit tout le dépôt, index compris,
|
|
186
198
|
prend l'outil que son travail demande, et n'écrit que les paquets que le plan de son ticket
|
|
187
199
|
nomme ; la règle de son rôle se juge sur son lot, à la fin de sa séance (le document de la
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
// ticket a red CI reopened has its CI read again (the child workflow of the CI of its commit);
|
|
21
21
|
// a ticket closed is the queue's end. Deterministic: it imports the workflow API, the search
|
|
22
22
|
// attributes, the contracts, the workflows of the queue and the pure decisions.
|
|
23
|
-
import { ActivityCancellationType, ApplicationFailure, allHandlersFinished, CancellationScope, condition, defineQuery, defineSignal, defineUpdate, isCancellation, makeContinueAsNewFunc,
|
|
23
|
+
import { ActivityCancellationType, ApplicationFailure, allHandlersFinished, CancellationScope, condition, defineQuery, defineSignal, defineUpdate, isCancellation, makeContinueAsNewFunc, deprecatePatch, proxyActivities, setHandler, upsertMemo, upsertSearchAttributes, workflowInfo, setWorkflowOptions, } from '@temporalio/workflow';
|
|
24
24
|
import { arretSansActe, AU_PLAN, circuitSuivant, CODE, effetsAJouer, etatDeReprise, pasDuPlan, transition, refusDeLaReprise, } from '../../../scripts/transitions.mjs';
|
|
25
25
|
import { reponseMecanique, reponsePlanifier } from '../../../scripts/reponses-du-circuit.mjs';
|
|
26
26
|
import { ATTRIBUT_ETAPE, ATTRIBUT_TICKET } from '../attributs.js';
|
|
@@ -85,13 +85,9 @@ function inattendu(e) {
|
|
|
85
85
|
const nomDe = (a) => a.leve?.nom ?? (a.inattendu ? 'inattendu' : (a.nom ?? null));
|
|
86
86
|
/** The circuit of a ticket, from its plan to its integration or to the supervisor's stop. */
|
|
87
87
|
export async function circuitDuTicket(entree) {
|
|
88
|
-
//
|
|
89
|
-
//
|
|
90
|
-
|
|
91
|
-
// replays without it and keeps the former order to its end (scripts/transitions.mjs).
|
|
92
|
-
const marqueurs = {
|
|
93
|
-
attributionAvantSansLivraison: patched('attribution-avant-sans-livraison'),
|
|
94
|
-
};
|
|
88
|
+
// The marker of the attribution before the stop « sans-livraison », which the histories of
|
|
89
|
+
// circuits in flight carry.
|
|
90
|
+
deprecatePatch('attribution-avant-sans-livraison');
|
|
95
91
|
const repasserMs = entree.repasserMs ?? REPASSER_MS;
|
|
96
92
|
const repassesMax = entree.repassesMax ?? REPASSES_MAX;
|
|
97
93
|
let ouverture = entree.suite?.ouverture ?? null;
|
|
@@ -454,7 +450,7 @@ export async function circuitDuTicket(entree) {
|
|
|
454
450
|
const faits = {};
|
|
455
451
|
let d;
|
|
456
452
|
for (;;) {
|
|
457
|
-
d = transition({ etat, memoire, ticket, reprend, faits
|
|
453
|
+
d = transition({ etat, memoire, ticket, reprend, faits });
|
|
458
454
|
if (!d.besoin) {
|
|
459
455
|
break;
|
|
460
456
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deroule.js","sourceRoot":"","sources":["../../../src/temporal/circuit/deroule.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,gHAAgH;AAChH,kGAAkG;AAClG,8FAA8F;AAC9F,mGAAmG;AACnG,+FAA+F;AAC/F,iGAAiG;AACjG,oGAAoG;AACpG,8FAA8F;AAC9F,iGAAiG;AACjG,qHAAqH;AACrH,gGAAgG;AAChG,oFAAoF;AACpF,yGAAyG;AACzG,oGAAoG;AACpG,kGAAkG;AAClG,+FAA+F;AAC/F,iFAAiF;AACjF,kIAAkI;AAClI,+FAA+F;AAC/F,6FAA6F;AAC7F,gFAAgF;AAChF,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,mB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AAC,EAAE,KAAK,KAAK,SAAS,CAAC;YAC7D,SAAS,GAAG,IAAI,CAAC;YACjB,MAAM;QACR,CAAC;IACH,CAAC;AACH,CAAC;AAED,8EAA8E;AAC9E,kBAAkB,CAAC,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE,eAAe,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"deroule.js","sourceRoot":"","sources":["../../../src/temporal/circuit/deroule.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,gHAAgH;AAChH,kGAAkG;AAClG,8FAA8F;AAC9F,mGAAmG;AACnG,+FAA+F;AAC/F,iGAAiG;AACjG,oGAAoG;AACpG,8FAA8F;AAC9F,iGAAiG;AACjG,qHAAqH;AACrH,gGAAgG;AAChG,oFAAoF;AACpF,yGAAyG;AACzG,oGAAoG;AACpG,kGAAkG;AAClG,+FAA+F;AAC/F,iFAAiF;AACjF,kIAAkI;AAClI,+FAA+F;AAC/F,6FAA6F;AAC7F,gFAAgF;AAChF,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,UAAU,EACV,UAAU,EACV,sBAAsB,EACtB,YAAY,EACZ,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,aAAa,EACb,OAAO,EACP,cAAc,EACd,IAAI,EACJ,YAAY,EACZ,aAAa,EACb,SAAS,EACT,UAAU,EAEV,gBAAgB,GACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EACL,OAAO,E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,CAAC,EAAE,KAAK,KAAK,SAAS,EAAE,CAAC;gBAC3B,YAAY,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,IAAI,IAAI,EAAE,CAAC;YAClD,CAAC;YACD,gBAAgB,GAAG,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,IAAI,YAAY,EAAE,CAAC;gBACjB,SAAS;YACX,CAAC;YACD,wFAAwF;YACxF,YAAY;YACZ,IAAI,OAAO,IAAI,CAAC,CAAC,MAAM,iBAAiB,EAAE,CAAC,EAAE,CAAC;gBAC5C,SAAS;YACX,CAAC;YACD,MAAM,GAAG,EAAE,GAAG,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC;YACvD,SAAS,GAAG,CAA2C,CAAC;YACxD,OAAO,GAAG,CAAC,EAAE,KAAK,KAAK,WAAW,IAAI,CAAC,EAAE,KAAK,KAAK,SAAS,CAAC;YAC7D,SAAS,GAAG,IAAI,CAAC;YACjB,MAAM;QACR,CAAC;IACH,CAAC;AACH,CAAC;AAED,8EAA8E;AAC9E,kBAAkB,CAAC,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE,eAAe,CAAC,CAAC"}
|
|
@@ -127,7 +127,10 @@ export interface OptionsDInstallation extends OptionsDuProgramme {
|
|
|
127
127
|
}
|
|
128
128
|
/** What the command writes of a report: its line, then those of the purge of the versions. */
|
|
129
129
|
export declare function texteDeLInstallation(r: RapportDInstallation): string;
|
|
130
|
-
/**
|
|
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
|
+
*/
|
|
131
134
|
export declare const codeDeLInstallation: (r: RapportDInstallation) => 0 | 1;
|
|
132
135
|
/** The size of the database before and after its compaction, in bytes. */
|
|
133
136
|
export interface Compactage {
|
|
@@ -181,6 +184,14 @@ export interface RapportDInstallation {
|
|
|
181
184
|
* applies; absent when nothing deferred them.
|
|
182
185
|
*/
|
|
183
186
|
serveurDiffere?: string[];
|
|
187
|
+
/**
|
|
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.
|
|
190
|
+
*/
|
|
191
|
+
serveurPlusNeuf?: {
|
|
192
|
+
ecrite: string;
|
|
193
|
+
installee: string;
|
|
194
|
+
};
|
|
184
195
|
}
|
|
185
196
|
/** A drop-in of a unit of before the template: its path there, and at the folder of the template. */
|
|
186
197
|
interface Complement {
|
|
@@ -203,8 +214,10 @@ interface RapportDesVersions {
|
|
|
203
214
|
version: string;
|
|
204
215
|
raisons: string[];
|
|
205
216
|
}[];
|
|
206
|
-
/** The sources it could not read, each said. */
|
|
217
|
+
/** The sources it could not read that block every removal, each said. */
|
|
207
218
|
illisibles: string[];
|
|
219
|
+
/** The projects whose tickets it could not read, each said: their copies alone keep versions. */
|
|
220
|
+
ticketsIllisibles: string[];
|
|
208
221
|
/** The removals that failed. */
|
|
209
222
|
echecs: {
|
|
210
223
|
version: string;
|
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
// (`compacterLaBase`, `VACUUM` by the runtime's `node:sqlite`) and starts it again, and the
|
|
28
28
|
// report says the sizes before and after. A failed compaction starts the server again and
|
|
29
29
|
// refuses the installation by its name, the unit not recorded as applied.
|
|
30
|
+
// - The server's unit carries the version of the frame that wrote it (`X-Grillhouse-Version`, that
|
|
31
|
+
// the project installs). A pass that installs an earlier version neither writes nor applies it,
|
|
32
|
+
// and says so (`serveurPlusNeuf`); a unit without a version is replaced. A unit that changes by
|
|
33
|
+
// that line alone is written and systemd told of it, the server neither stopped nor restarted.
|
|
30
34
|
// - `purger` deletes by query the workflows closed for longer than the retention, never a running
|
|
31
35
|
// one (the server keeps the deletion timer a workflow got when it closed, under the retention of
|
|
32
36
|
// then), waits until the server counts none left, then stops the server, removes the history trees
|
|
@@ -419,7 +423,10 @@ function deploiementsDuCompte() {
|
|
|
419
423
|
export function texteDeLInstallation(r) {
|
|
420
424
|
return `${ligneDeLInstallation(r)}${lignesDeLaPurgeDesVersions(r.versions)}`;
|
|
421
425
|
}
|
|
422
|
-
/**
|
|
426
|
+
/**
|
|
427
|
+
* The exit code of an installation: 1 when a source that blocks every removal does not read, or a
|
|
428
|
+
* removal fails. The tickets of a project that do not read are said in the report, without it.
|
|
429
|
+
*/
|
|
423
430
|
export const codeDeLInstallation = (r) => r.versions.illisibles.length || r.versions.echecs.length ? 1 : 0;
|
|
424
431
|
const REJOUER = 'à rejouer : npx grillhouse temporal installer';
|
|
425
432
|
// The lines of the purge of the versions: each version removed with the place it gave back, each
|
|
@@ -432,7 +439,7 @@ function lignesDeLaPurgeDesVersions(p) {
|
|
|
432
439
|
return `purge : ${quoi} ${v.version} ${v.reste ? 'retirés' : 'retirée'}, ${mo(v.octets)} rendus`;
|
|
433
440
|
}),
|
|
434
441
|
...p.gardees.map(v => `purge : version ${v.version} gardée : ${v.raisons.join(' ; ')}`),
|
|
435
|
-
...p.illisibles.map(l => `purge : ${l} ; ${REJOUER}`),
|
|
442
|
+
...[...p.illisibles, ...p.ticketsIllisibles].map(l => `purge : ${l} ; ${REJOUER}`),
|
|
436
443
|
...p.echecs.map(e => `purge : le retrait de la version ${e.version} échoue (${enUneLigne(e.raison)}) ; ${REJOUER}`),
|
|
437
444
|
]
|
|
438
445
|
.map(l => `${l}\n`)
|
|
@@ -444,8 +451,11 @@ function ligneDeLInstallation(r) {
|
|
|
444
451
|
const retenues = liste('retenues par une activité en cours', r.retenues);
|
|
445
452
|
const { copies, deplaces, conflits } = r.complements;
|
|
446
453
|
const chemins = (titre, c, entre = ' → ') => liste(titre, c.map(({ depart, arrivee }) => `${depart}${entre}${arrivee}`));
|
|
454
|
+
const plusNeuf = r.serveurPlusNeuf
|
|
455
|
+
? ` ; l'unité du serveur, écrite par la ${r.serveurPlusNeuf.ecrite}, n'est pas réécrite par la ${r.serveurPlusNeuf.installee}, antérieure`
|
|
456
|
+
: '';
|
|
447
457
|
if (!r.change) {
|
|
448
|
-
return `temporal : l’installation est à jour, rien ne change${retenues}.\n`;
|
|
458
|
+
return `temporal : l’installation est à jour, rien ne change${retenues}${plusNeuf}.\n`;
|
|
449
459
|
}
|
|
450
460
|
return (`temporal : ${r.pose ? 'programme posé' : 'programme à jour'} (${r.programme}) ; ` +
|
|
451
461
|
`unités écrites : ${r.unites.join(', ') || 'aucune'} ; ` +
|
|
@@ -456,6 +466,7 @@ function ligneDeLInstallation(r) {
|
|
|
456
466
|
(r.serveurDiffere
|
|
457
467
|
? ` ; 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`
|
|
458
468
|
: '') +
|
|
469
|
+
plusNeuf +
|
|
459
470
|
liste('instances démarrées', r.demarrees) +
|
|
460
471
|
liste('rendues courantes', r.courantes) +
|
|
461
472
|
liste('retirées', r.retirees) +
|
|
@@ -749,27 +760,57 @@ function plusHauteDeLaMachine(lieux, appliquees) {
|
|
|
749
760
|
}
|
|
750
761
|
return versions.reduce((h, v) => (h === null || auMoins(v, h) ? v : h), null);
|
|
751
762
|
}
|
|
763
|
+
// The line of the server's unit that carries the version of the frame that wrote it; systemd ignores
|
|
764
|
+
// a key prefixed by `X-` (systemd.unit(5)).
|
|
765
|
+
const CLE_DE_LA_VERSION = 'X-Grillhouse-Version=';
|
|
766
|
+
const LIGNE_DE_LA_VERSION = new RegExp(`^${CLE_DE_LA_VERSION}(.*)\n`, 'm');
|
|
767
|
+
// The server's unit <texte> written by the version <version>, in its [Unit] section.
|
|
768
|
+
const marquer = (texte, version) => texte.replace('[Unit]\n', () => `[Unit]\n${CLE_DE_LA_VERSION}${version}\n`);
|
|
769
|
+
const sansVersion = (texte) => texte.replace(LIGNE_DE_LA_VERSION, '');
|
|
770
|
+
// The version that wrote the server's unit standing at the places <lieux>, when it is later than
|
|
771
|
+
// <version>; null without a unit, without a version in it, or when <version> is at least it.
|
|
772
|
+
function serveurPlusNeuf(lieux, version) {
|
|
773
|
+
const f = path.join(lieux.unites, UNITE_DU_SERVEUR);
|
|
774
|
+
const ecrite = existsSync(f) ? LIGNE_DE_LA_VERSION.exec(readFileSync(f, 'utf8'))?.[1] : undefined;
|
|
775
|
+
return ecrite !== undefined && !auMoins(version, ecrite) ? ecrite : null;
|
|
776
|
+
}
|
|
777
|
+
// Whether the server's unit <texte> differs from the applied one by its version alone: the unit
|
|
778
|
+
// standing is the one systemd applied (<somme>), the same but for that line.
|
|
779
|
+
function seuleLaVersion(lieux, texte, somme) {
|
|
780
|
+
const f = path.join(lieux.unites, UNITE_DU_SERVEUR);
|
|
781
|
+
if (!existsSync(f)) {
|
|
782
|
+
return false;
|
|
783
|
+
}
|
|
784
|
+
const pose = readFileSync(f, 'utf8');
|
|
785
|
+
return somme === sommeDe(pose) && sansVersion(pose) === sansVersion(texte);
|
|
786
|
+
}
|
|
752
787
|
/**
|
|
753
788
|
* The texts of <textes> the project at <lieux>, which installs <version>, answers for: the server,
|
|
754
|
-
*
|
|
789
|
+
* marked with that version, unless a later version wrote the one standing; its own template; and
|
|
790
|
+
* the template of the machine while it is its own. The server is the account's, replaced only by a
|
|
791
|
+
* version at least as late as the one that wrote it. The template of the machine
|
|
755
792
|
* is the account's, one for every project, as one agent of a cluster serves every job; it belongs
|
|
756
793
|
* to the project that wrote it (its WorkingDirectory), which answers for its whole text (Node,
|
|
757
794
|
* PATH, tools). Another project takes it only to raise the version the machine plays (<plusHaute>),
|
|
758
795
|
* or once the project it belongs to is gone.
|
|
759
796
|
*/
|
|
760
797
|
function textesDuProjet(lieux, textes, version, plusHaute) {
|
|
798
|
+
const { [UNITE_DU_SERVEUR]: serveur, ...gabarits } = textes;
|
|
799
|
+
const duProjet = serveurPlusNeuf(lieux, version) === null
|
|
800
|
+
? { [UNITE_DU_SERVEUR]: marquer(serveur, version), ...gabarits }
|
|
801
|
+
: gabarits;
|
|
761
802
|
const f = path.join(lieux.unites, GABARIT_DE_LA_MACHINE);
|
|
762
803
|
if (!existsSync(f)) {
|
|
763
|
-
return
|
|
804
|
+
return duProjet;
|
|
764
805
|
}
|
|
765
806
|
const racine = racineDeLUnite(readFileSync(f, 'utf8'));
|
|
766
807
|
if (racine === null || path.resolve(racine) === lieux.racine || !existsSync(racine)) {
|
|
767
|
-
return
|
|
808
|
+
return duProjet;
|
|
768
809
|
}
|
|
769
810
|
if (plusHaute === null || !auMoins(plusHaute, version)) {
|
|
770
|
-
return
|
|
811
|
+
return duProjet;
|
|
771
812
|
}
|
|
772
|
-
return Object.fromEntries(Object.entries(
|
|
813
|
+
return Object.fromEntries(Object.entries(duProjet).filter(([n]) => n !== GABARIT_DE_LA_MACHINE));
|
|
773
814
|
}
|
|
774
815
|
/**
|
|
775
816
|
* Whether the worker the account runs is stale: a unit applied by `installer` (the sums of
|
|
@@ -1233,7 +1274,13 @@ function retirerLaVersion(cache, version, entrees, restesSeuls) {
|
|
|
1233
1274
|
* `brew cleanup` removes the old versions of the installed formulae; its report.
|
|
1234
1275
|
*/
|
|
1235
1276
|
async function purgerLesVersions({ lieux, appliquees, serveur, processus, circuitsTenus, ticketsFermes, }) {
|
|
1236
|
-
const r = {
|
|
1277
|
+
const r = {
|
|
1278
|
+
retirees: [],
|
|
1279
|
+
gardees: [],
|
|
1280
|
+
illisibles: [],
|
|
1281
|
+
ticketsIllisibles: [],
|
|
1282
|
+
echecs: [],
|
|
1283
|
+
};
|
|
1237
1284
|
const cache = cacheDesOutils(lieux.maison);
|
|
1238
1285
|
const entrees = siLa(() => readdirSync(cache, { withFileTypes: true })) ?? [];
|
|
1239
1286
|
// The versions installed or marked, and those an earlier removal left a folder of.
|
|
@@ -1275,7 +1322,7 @@ async function purgerLesVersions({ lieux, appliquees, serveur, processus, circui
|
|
|
1275
1322
|
catch (e) {
|
|
1276
1323
|
noms.bloquer(`le projet ${racine} ne dit pas sa version : ${enUneLigne(e)}`);
|
|
1277
1324
|
}
|
|
1278
|
-
await lireLesCopies(racine, { circuitsTenus, ticketsFermes }, { ...noms, signaler: ligne => r.
|
|
1325
|
+
await lireLesCopies(racine, { circuitsTenus, ticketsFermes }, { ...noms, signaler: ligne => r.ticketsIllisibles.push(ligne) });
|
|
1279
1326
|
}
|
|
1280
1327
|
try {
|
|
1281
1328
|
for (const argv of processus()) {
|
|
@@ -1383,21 +1430,25 @@ async function jouerLInstallation({ lieux, systemctl, epingle = EPINGLE, platefo
|
|
|
1383
1430
|
const joueLaMachine = plusHaute === null || auMoins(version, plusHaute);
|
|
1384
1431
|
const duProjet = textesDuProjet(lieux, tous, version, plusHaute);
|
|
1385
1432
|
const enAttenteDe = (t) => Object.keys(t).filter(n => deja[n] !== sommeDe(t[n]));
|
|
1386
|
-
|
|
1433
|
+
const ecrite = serveurPlusNeuf(lieux, version);
|
|
1434
|
+
// The server's unit is applied when a program is laid down, or when it is still to apply; a later
|
|
1435
|
+
// version alone is told to systemd, which neither stops nor restarts the server for it.
|
|
1436
|
+
const versionSeule = duProjet[UNITE_DU_SERVEUR] !== undefined &&
|
|
1437
|
+
seuleLaVersion(lieux, duProjet[UNITE_DU_SERVEUR], deja[UNITE_DU_SERVEUR]);
|
|
1438
|
+
const aRedemarrer = (t) => UNITE_DU_SERVEUR in t &&
|
|
1439
|
+
(contenu !== null || (!versionSeule && enAttenteDe(t).includes(UNITE_DU_SERVEUR)));
|
|
1387
1440
|
// Before any writing: a circuit in flight defers the server's unit alone (its stop, its
|
|
1388
1441
|
// compaction), which a later run applies; the program is laid down all the same, in a directory
|
|
1389
1442
|
// of its own version, and the templates, which name it, are applied, since neither stops the
|
|
1390
1443
|
// server.
|
|
1391
|
-
const differe =
|
|
1392
|
-
? await circuitsEnVol()
|
|
1393
|
-
: [];
|
|
1444
|
+
const differe = aRedemarrer(duProjet) ? await circuitsEnVol() : [];
|
|
1394
1445
|
const textes = differe.length
|
|
1395
1446
|
? Object.fromEntries(Object.entries(duProjet).filter(([n]) => n !== UNITE_DU_SERVEUR))
|
|
1396
1447
|
: duProjet;
|
|
1397
1448
|
const pose = contenu !== null;
|
|
1398
1449
|
const enAttente = enAttenteDe(textes);
|
|
1399
|
-
const
|
|
1400
|
-
const appliquees =
|
|
1450
|
+
const redemarre = aRedemarrer(textes);
|
|
1451
|
+
const appliquees = redemarre ? [...new Set([UNITE_DU_SERVEUR, ...enAttente])] : enAttente;
|
|
1401
1452
|
// The instances this pass installs, those still to start or to record, and the running ones a
|
|
1402
1453
|
// changed template leaves under its former text; read before any gesture.
|
|
1403
1454
|
const visees = gabaritsDe(lieux.racine)
|
|
@@ -1437,7 +1488,7 @@ async function jouerLInstallation({ lieux, systemctl, epingle = EPINGLE, platefo
|
|
|
1437
1488
|
}
|
|
1438
1489
|
let compactage;
|
|
1439
1490
|
if (appliquees.length) {
|
|
1440
|
-
if (
|
|
1491
|
+
if (redemarre) {
|
|
1441
1492
|
systemd(systemctl, ['enable', UNITE_DU_SERVEUR]);
|
|
1442
1493
|
// The server stopped, its database compacted, then started again; without a database file
|
|
1443
1494
|
// there is nothing to compact, and the server is not stopped.
|
|
@@ -1511,6 +1562,7 @@ async function jouerLInstallation({ lieux, systemctl, epingle = EPINGLE, platefo
|
|
|
1511
1562
|
versions,
|
|
1512
1563
|
...(compactage ? { compactage } : {}),
|
|
1513
1564
|
...(differe.length ? { serveurDiffere: differe } : {}),
|
|
1565
|
+
...(ecrite === null ? {} : { serveurPlusNeuf: { ecrite, installee: version } }),
|
|
1514
1566
|
};
|
|
1515
1567
|
}
|
|
1516
1568
|
//# sourceMappingURL=installation.js.map
|