@roomi-fields/grillhouse 0.43.1 → 0.44.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 +12 -0
- package/cadre/templates/projet/.github/workflows/ci.yml +11 -17
- package/cadre/templates/projet/.github/workflows/nuit.yml +3 -3
- package/cadre/templates/projet/package.json +1 -1
- package/dist/temporal/installation.js +104 -4
- package/dist/temporal/installation.js.map +1 -1
- package/docs/ARCHITECTURE.md +37 -10
- package/docs/INTERFACE.md +7 -0
- package/package.json +2 -2
- package/scripts/depart-du-ticket.mjs +4 -4
- package/scripts/dette.d.ts +4 -2
- package/scripts/dette.mjs +52 -18
- package/scripts/enveloppe/enveloppe.mjs +2 -2
- package/scripts/enveloppe/lancer.sh +1 -1
- package/scripts/langages/typescript/consommateurs-arbitres.mjs +9 -2
- package/scripts/langages/typescript/interfaces-contre-code.mjs +27 -1
- package/scripts/langages/typescript/resumes.mjs +11 -3
- package/scripts/langages.d.mts +2 -0
- package/scripts/langages.mjs +79 -0
- package/scripts/migrations/0.44.0-node-26-seul.mjs +47 -0
- package/scripts/migrations.mjs +2 -0
- package/scripts/sortie.mjs +3 -2
- package/scripts/ticket-du-circuit.mjs +5 -1
- package/scripts/verrous/verrou.mjs +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,18 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.44.0] - 2026-11-18
|
|
10
|
+
|
|
11
|
+
- **A session repairs a copy its tool no longer loads** (grillhouse-3vf): the lock of the writes and the envelope read the packages of the copy through the tool of its language before each write and at the launch of a session; in a copy left between two writes of one change (cargo: a dependency moved in the manifest of the workspace and not yet in a crate's, « dependency.jiff was not found in workspace.dependencies »), every further write was refused, the one that repairs the copy among them, and the circuit stopped without writing its stop (osc-bridge, OB-ud1.6). What must go on in such a copy (the lock of a session's writes, its envelope and its launch, the opening of each act of the circuit on its ticket) now reads the language through `langageDeLaCopie` (`scripts/langages.mjs`): its readings of the tree (the components, the test material, the class of a file, the part of a manifest its tests own) are played in the main tree of the repository when they throw in the copy. A write is judged on the plan as any other, and the stop of a step is written at the ticket; `langageDe` stays strict for the guards, the builds and the red of a reading. **Action for projects**: none.
|
|
12
|
+
|
|
13
|
+
- **The installation of Temporal in one project no longer makes the workers of the others stale** (grillhouse-ftt): on an account that holds several projects, `npx grillhouse temporal installer` replaced the applied state (`unites-appliquees.json`) by the sums of its own three units and rewrote the unit of the machine's worker for its own root, so every other project read « le travailleur de Temporal périmé » at its next session, and its own installation restarted the shared worker under the circuits in flight (pc3, five projects, 2026-11-18). An installation now keeps the sums of the other projects' units. The unit of the machine belongs to the project that wrote it (its `WorkingDirectory`), which rewrites and repairs it; another project takes it only to raise it to a later version of the frame, when its version does not read, or when the project it belonged to is gone (`textesDuProjet` of `src/temporal/installation.ts`). **Action for projects**: after the update, run `npx grillhouse temporal installer` once in each project, at a moment without a circuit in flight; the alert then stays away.
|
|
14
|
+
|
|
15
|
+
- **The frame supports Node 26 alone, and a release does not play again the CI of a commit already judged** (grillhouse-3uv.103): the CI and the night of GitHub played Node 24 and 26, the template's night Node 22 and 24, and the release played the whole CI on a commit the CI of its `agent/**` branch had judged green (9 to 20 minutes). Every trigger now plays Node 26 alone, `engines.node` is `>=26.0.0` (root, package, template), the job `judged` of the CI also judges a tag `v<x.y.z>` (the exact commit of the push), and the release publishes when the CI it calls succeeded or was skipped, never on a failure or a cancellation. **Action for projects**: `npx grillhouse maj` sets `engines.node` `>=22.0.0` or `>=24.0.0` to `>=26.0.0` and writes the frame's workflows again; a project that declares another value keeps it, and the update names it: its workflows play Node 26 alone, so it raises the value or widens its matrix.
|
|
16
|
+
|
|
17
|
+
## [0.43.2] - 2026-11-18
|
|
18
|
+
|
|
19
|
+
- **A guard that reads a part of the repository lowers the debt of what it read only** (grillhouse-8if): in the envelope of a plan, the check of the interfaces, the one of the consumers' arbitrations and the one of the summaries read the components of the plan alone (`aVerifier`), but the known debt judged their findings against the whole section of the guard: every key of a component they did not read counted « 0 constat(s) pour N inscrit(s) », became a note « à élaguer », and the circuit, lowering the debt from the notes of its checks, removed the debt of every other package (BPScript, 320.42: 246 lines of `grillhouse-dette.json`, then a final pass red on 169 findings out of the plan). Such a guard now says which files it read (`mesureDe`, the sixth argument of `trancher` of `scripts/dette.mjs`), as a baseline of PHPStan is pruned of the files analysed only: the keys of the others are neither judged corrected, nor pruned, nor written again. **Action for projects**: a `grillhouse-dette.json` a circuit emptied this way is restored from main, then `npm run grillhouse:dette:elaguer` out of any envelope.
|
|
20
|
+
|
|
9
21
|
## [0.43.1] - 2026-11-17
|
|
10
22
|
|
|
11
23
|
- **A lot that removes a generated file with its command enters main** (grillhouse-1k7): the integration, the queue and the move of a copy onto main played the command of every generated file a lot touches, read in main's `package.json`, even when the lot removes that file, its script and its entry of `grillhouse.engendres`: the command, whose script the lot deletes, failed, and the lot was refused (SyntHub, SH-br0.3, « python3 scripts/build_device_index.py … can't open file »). An entry the tree where the lot is applied no longer declares (`encoreDeclares` of `scripts/engendres.mjs`) is not played, and its files follow the lot: a deletion is done whatever main wrote since, any other change is applied as a file of the lot (`poserLesRetires`, `prendreLesEngendres`). The command line stays main's: a lot removes one, it writes none. **Action for projects**: none; a circuit stopped on that refusal resumes (`--reprendre`).
|
|
@@ -11,17 +11,12 @@ on:
|
|
|
11
11
|
branches: [main, develop, 'agent/**']
|
|
12
12
|
pull_request:
|
|
13
13
|
branches: [main, develop]
|
|
14
|
-
# Once a night, on the default branch
|
|
14
|
+
# Once a night, on the default branch.
|
|
15
15
|
schedule:
|
|
16
16
|
- cron: '0 2 * * *'
|
|
17
|
-
# A release of the project may play the CI on the tagged commit before it publishes,
|
|
18
|
-
#
|
|
17
|
+
# A release of the project may play the CI on the tagged commit before it publishes, unless a
|
|
18
|
+
# branch agent/** already judged that commit.
|
|
19
19
|
workflow_call:
|
|
20
|
-
inputs:
|
|
21
|
-
node-versions:
|
|
22
|
-
description: 'The versions of Node to play, a JSON array'
|
|
23
|
-
type: string
|
|
24
|
-
default: '["26.x"]'
|
|
25
20
|
|
|
26
21
|
# The pass of the verification in n + 2 jobs per version of Node, as Vitest shards a run
|
|
27
22
|
# (https://vitest.dev/guide/improving-performance#sharding): `gardes` plays every task but the
|
|
@@ -53,10 +48,10 @@ env:
|
|
|
53
48
|
jobs:
|
|
54
49
|
# A tree already judged plays nothing again, as bors and Zuul test once the tree that enters
|
|
55
50
|
# main: the queue of the frame (scripts/integration/file.mjs) moves main by fast-forward onto the
|
|
56
|
-
# commit the CI of the ticket's branch judged green, so a push to main
|
|
51
|
+
# commit the CI of the ticket's branch judged green, so a push to main, or of a tag v<x.y.z> (the
|
|
52
|
+
# call by a release, whose event is the caller's push of the tag), whose commit a run of this
|
|
57
53
|
# workflow on a branch agent/** concluded green skips every job of the pass. Every other event (a
|
|
58
|
-
# pull request, the schedule,
|
|
59
|
-
# push to develop or to agent/**) plays as before. The job itself always runs, so that its
|
|
54
|
+
# pull request, the schedule, a push to develop or to agent/**) plays as before. The job itself always runs, so that its
|
|
60
55
|
# dependents read its output; a search that fails says nothing judged, and the pass plays. A job
|
|
61
56
|
# skipped by its condition reports « Success », and the run concludes in success (docs.github.com,
|
|
62
57
|
# « Using conditions to control job execution »). It reads the runs of the repository: a workflow
|
|
@@ -72,7 +67,7 @@ jobs:
|
|
|
72
67
|
steps:
|
|
73
68
|
- name: A green run of a ticket's branch on this commit
|
|
74
69
|
id: search
|
|
75
|
-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
70
|
+
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
|
|
76
71
|
env:
|
|
77
72
|
GH_TOKEN: ${{ github.token }}
|
|
78
73
|
run: |
|
|
@@ -85,11 +80,10 @@ jobs:
|
|
|
85
80
|
if: needs.judged.outputs.judged != 'true'
|
|
86
81
|
runs-on: ${{ fromJSON(vars.RUNNER || '"ubuntu-latest"') }}
|
|
87
82
|
|
|
88
|
-
#
|
|
89
|
-
# the nightly schedule plays Node 24 and 26.
|
|
83
|
+
# Node 26 alone, whatever the trigger.
|
|
90
84
|
strategy:
|
|
91
85
|
matrix:
|
|
92
|
-
node-version:
|
|
86
|
+
node-version: ['26.x']
|
|
93
87
|
|
|
94
88
|
steps:
|
|
95
89
|
- name: Checkout
|
|
@@ -134,7 +128,7 @@ jobs:
|
|
|
134
128
|
strategy:
|
|
135
129
|
fail-fast: false
|
|
136
130
|
matrix:
|
|
137
|
-
node-version:
|
|
131
|
+
node-version: ['26.x']
|
|
138
132
|
tranche: [1, 2, 3]
|
|
139
133
|
|
|
140
134
|
steps:
|
|
@@ -197,7 +191,7 @@ jobs:
|
|
|
197
191
|
|
|
198
192
|
strategy:
|
|
199
193
|
matrix:
|
|
200
|
-
node-version:
|
|
194
|
+
node-version: ['26.x']
|
|
201
195
|
|
|
202
196
|
steps:
|
|
203
197
|
- name: Checkout
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#
|
|
3
3
|
# The night of a shared machine: once a night, on the default branch, the project's night tests but
|
|
4
4
|
# those that bear the tag @poste (a night test that depends on the poste: its envelope, its tools,
|
|
5
|
-
# its session; the frame's guard `tests-du-poste` asks for the tag), on Node
|
|
5
|
+
# its session; the frame's guard `tests-du-poste` asks for the tag), on Node 26. No measure
|
|
6
6
|
# of time plays here: a shared machine does not measure a time (the frame's charter, « Une mesure
|
|
7
7
|
# de temps joue la nuit »). A green run here is never the last green: the night of the poste alone
|
|
8
8
|
# keeps it, after it plays every night test, the tagged ones included, then the measures of time.
|
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
strategy:
|
|
32
32
|
fail-fast: false
|
|
33
33
|
matrix:
|
|
34
|
-
node-version: ['
|
|
34
|
+
node-version: ['26.x']
|
|
35
35
|
tranche: [1, 2, 3]
|
|
36
36
|
|
|
37
37
|
steps:
|
|
@@ -92,7 +92,7 @@ jobs:
|
|
|
92
92
|
strategy:
|
|
93
93
|
fail-fast: false
|
|
94
94
|
matrix:
|
|
95
|
-
node-version: ['
|
|
95
|
+
node-version: ['26.x']
|
|
96
96
|
|
|
97
97
|
steps:
|
|
98
98
|
- name: Checkout
|
|
@@ -32,6 +32,11 @@
|
|
|
32
32
|
// restart of those units). What systemd applied is kept apart from what is written: the sum of
|
|
33
33
|
// each unit's text once systemctl succeeded (~/.local/state/grillhouse/temporal/
|
|
34
34
|
// unites-appliquees.json), so that a systemctl that failed is played again at the next run.
|
|
35
|
+
// - An account holds several projects: the server and the worker of the machine are the account's,
|
|
36
|
+
// a project's worker is the project's. An installation keeps the sums applied for the units of
|
|
37
|
+
// the other projects. The unit of the machine belongs to the project that wrote it, which
|
|
38
|
+
// answers for its whole text; another project takes it only to raise it to a later version of
|
|
39
|
+
// the frame (`textesDuProjet`).
|
|
35
40
|
// - `poserLeProgramme` lays down the program alone, no unit, no package.json, no systemd: the mode
|
|
36
41
|
// `--programme-seul` of the command, by which the night gets the pinned program as a user does.
|
|
37
42
|
// - The home, the directory of the units and the project are parameters (`lieuxDe`), as systemctl,
|
|
@@ -354,6 +359,94 @@ function textesAttendus({ lieux, epingle = EPINGLE, node = process.execPath, tro
|
|
|
354
359
|
});
|
|
355
360
|
return { programme, textes };
|
|
356
361
|
}
|
|
362
|
+
// The frame's worker a unit's text <texte> runs: the argument of its ExecStart that ends with the
|
|
363
|
+
// worker's path, quoted or not; null without one.
|
|
364
|
+
function travailleurDeLUnite(texte) {
|
|
365
|
+
const ligne = texte.split('\n').find(l => l.startsWith('ExecStart='));
|
|
366
|
+
for (const m of (ligne ?? '').matchAll(/"((?:[^"\\]|\\.)*)"|(\S+)/g)) {
|
|
367
|
+
const a = m[1] !== undefined ? m[1].replace(/\\(.)/g, '$1') : m[2];
|
|
368
|
+
if (a.endsWith(TRAVAILLEUR)) {
|
|
369
|
+
return a;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
return null;
|
|
373
|
+
}
|
|
374
|
+
// The version of the frame the worker <travailleur> belongs to: the version its package declares,
|
|
375
|
+
// else the folder of its published version in the cache of the home
|
|
376
|
+
// (`…/<version>/node_modules/@roomi-fields/grillhouse/…`); null when neither reads.
|
|
377
|
+
function versionDuTravailleur(travailleur) {
|
|
378
|
+
const paquet = path.resolve(travailleur, '../../..');
|
|
379
|
+
const cache = `${path.sep}node_modules${path.sep}@roomi-fields${path.sep}grillhouse`;
|
|
380
|
+
try {
|
|
381
|
+
const v = JSON.parse(readFileSync(path.join(paquet, 'package.json'), 'utf8')).version;
|
|
382
|
+
if (typeof v === 'string' && v) {
|
|
383
|
+
return v;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
catch {
|
|
387
|
+
// no package.json: the folder of the published version
|
|
388
|
+
}
|
|
389
|
+
if (paquet.endsWith(cache)) {
|
|
390
|
+
const v = path.basename(paquet.slice(0, -cache.length));
|
|
391
|
+
return /^\d+\.\d+\.\d+/.test(v) ? v : null;
|
|
392
|
+
}
|
|
393
|
+
return null;
|
|
394
|
+
}
|
|
395
|
+
// Whether the version <a> is at least <b>: their three numbers compared in their order, then a
|
|
396
|
+
// version before a prerelease of the same numbers (semver: 1.0.0-rc.1 comes before 1.0.0).
|
|
397
|
+
function auMoins(a, b) {
|
|
398
|
+
const lue = (v) => {
|
|
399
|
+
const [coeur = '', ...pre] = v.split('+')[0].split('-');
|
|
400
|
+
return { n: coeur.split('.').map(x => Number.parseInt(x, 10) || 0), pre: pre.length > 0 };
|
|
401
|
+
};
|
|
402
|
+
const [x, y] = [lue(a), lue(b)];
|
|
403
|
+
for (let i = 0; i < 3; i++) {
|
|
404
|
+
if ((x.n[i] ?? 0) !== (y.n[i] ?? 0)) {
|
|
405
|
+
return (x.n[i] ?? 0) > (y.n[i] ?? 0);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
return !x.pre || y.pre;
|
|
409
|
+
}
|
|
410
|
+
// The root of the project a worker's unit <texte> was written for: its WorkingDirectory; null
|
|
411
|
+
// without one.
|
|
412
|
+
function racineDeLUnite(texte) {
|
|
413
|
+
const ligne = texte.split('\n').find(l => l.startsWith('WorkingDirectory='));
|
|
414
|
+
if (!ligne) {
|
|
415
|
+
return null;
|
|
416
|
+
}
|
|
417
|
+
const v = ligne.slice('WorkingDirectory='.length);
|
|
418
|
+
return /^".*"$/.test(v) ? v.slice(1, -1).replace(/\\(.)/g, '$1') : v;
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* The texts of <textes> the project at <lieux> answers for: its own units, and the unit of the
|
|
422
|
+
* machine while that unit is its own. The worker of the machine is the account's, one for every
|
|
423
|
+
* project, as one agent of a cluster serves every job; its unit belongs to the project that wrote
|
|
424
|
+
* it (its WorkingDirectory), which answers for its whole text (Node, PATH, tools) and for what
|
|
425
|
+
* systemd applied of it. Another project takes it only to raise it: when it plays an earlier
|
|
426
|
+
* version of the frame than that project's, when its version does not read, or when the project
|
|
427
|
+
* it belongs to is gone. So the worker of the machine plays the highest version a project of the
|
|
428
|
+
* account installed, whatever the order of the installations.
|
|
429
|
+
*/
|
|
430
|
+
function textesDuProjet(lieux, textes) {
|
|
431
|
+
const f = path.join(lieux.unites, UNITE_DE_LA_MACHINE);
|
|
432
|
+
if (!existsSync(f)) {
|
|
433
|
+
return textes;
|
|
434
|
+
}
|
|
435
|
+
const posee = readFileSync(f, 'utf8');
|
|
436
|
+
const racine = racineDeLUnite(posee);
|
|
437
|
+
if (racine === null || path.resolve(racine) === lieux.racine || !existsSync(racine)) {
|
|
438
|
+
return textes;
|
|
439
|
+
}
|
|
440
|
+
const version = (texte) => {
|
|
441
|
+
const t = travailleurDeLUnite(texte);
|
|
442
|
+
return t === null ? null : versionDuTravailleur(t);
|
|
443
|
+
};
|
|
444
|
+
const [tenue, voulue] = [version(posee), version(textes[UNITE_DE_LA_MACHINE] ?? '')];
|
|
445
|
+
if (tenue === null || voulue === null || !auMoins(tenue, voulue)) {
|
|
446
|
+
return textes;
|
|
447
|
+
}
|
|
448
|
+
return Object.fromEntries(Object.entries(textes).filter(([n]) => n !== UNITE_DE_LA_MACHINE));
|
|
449
|
+
}
|
|
357
450
|
/**
|
|
358
451
|
* Whether the worker the account runs is stale: the units applied by `installer` (the sums of
|
|
359
452
|
* unites-appliquees.json) differ from the texts `installer` would write now, for the version
|
|
@@ -375,7 +468,7 @@ export function travailleurPerime({ lieux, epingle = EPINGLE, node, trouver, })
|
|
|
375
468
|
trouver,
|
|
376
469
|
travailleur: () => travailleurDe(lieux.racine, v => path.join(cacheDesOutils(lieux.maison), v), false),
|
|
377
470
|
});
|
|
378
|
-
return Object.entries(textes).some(([n, t]) => deja[n] !== sommeDe(t));
|
|
471
|
+
return Object.entries(textesDuProjet(lieux, textes)).some(([n, t]) => deja[n] !== sommeDe(t));
|
|
379
472
|
}
|
|
380
473
|
catch {
|
|
381
474
|
return true;
|
|
@@ -387,13 +480,14 @@ export async function installer({ lieux, systemctl, epingle = EPINGLE, plateform
|
|
|
387
480
|
// Every refusal before any writing: the archive, the account's tools, the project's tools , then the worker of the published version, which lays that
|
|
388
481
|
// version down in its cache first.
|
|
389
482
|
const { programme, contenu } = await obtenirLeProgramme({ lieux, epingle, plateforme, obtenir });
|
|
390
|
-
const { textes } = textesAttendus({
|
|
483
|
+
const { textes: tous } = textesAttendus({
|
|
391
484
|
lieux,
|
|
392
485
|
epingle,
|
|
393
486
|
node,
|
|
394
487
|
trouver,
|
|
395
488
|
travailleur: () => travailleur ?? travailleurDe(lieux.racine, outil),
|
|
396
489
|
});
|
|
490
|
+
const textes = textesDuProjet(lieux, tous);
|
|
397
491
|
const pose = contenu !== null;
|
|
398
492
|
if (contenu) {
|
|
399
493
|
poser(contenu, programme);
|
|
@@ -411,13 +505,19 @@ export async function installer({ lieux, systemctl, epingle = EPINGLE, plateform
|
|
|
411
505
|
}
|
|
412
506
|
const deja = lireLesAppliquees(fichierDesAppliquees);
|
|
413
507
|
const enAttente = Object.keys(textes).filter(n => deja[n] !== sommeDe(textes[n]));
|
|
414
|
-
|
|
508
|
+
// A program newly laid down starts again the units of this project, the machine's when it is
|
|
509
|
+
// its own.
|
|
510
|
+
const appliquees = pose ? Object.keys(textes) : enAttente;
|
|
415
511
|
if (appliquees.length) {
|
|
416
512
|
systemd(systemctl, ['daemon-reload']);
|
|
417
513
|
systemd(systemctl, ['enable', ...unitesDe(lieux.racine)]);
|
|
418
514
|
systemd(systemctl, ['restart', ...appliquees]);
|
|
419
515
|
mkdirSync(path.dirname(fichierDesAppliquees), { recursive: true });
|
|
420
|
-
|
|
516
|
+
// The sums of this project's units, beside those of the other projects of the account.
|
|
517
|
+
const sommes = {
|
|
518
|
+
...deja,
|
|
519
|
+
...Object.fromEntries(Object.entries(textes).map(([n, t]) => [n, sommeDe(t)])),
|
|
520
|
+
};
|
|
421
521
|
writeFileSync(fichierDesAppliquees, `${JSON.stringify(sommes, null, 2)}\n`);
|
|
422
522
|
}
|
|
423
523
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installation.js","sourceRoot":"","sources":["../../src/temporal/installation.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,gGAAgG;AAChG,mGAAmG;AACnG,4FAA4F;AAC5F,iGAAiG;AACjG,EAAE;AACF,2FAA2F;AAC3F,6FAA6F;AAC7F,gFAAgF;AAChF,+FAA+F;AAC/F,mGAAmG;AACnG,8FAA8F;AAC9F,8FAA8F;AAC9F,2FAA2F;AAC3F,8FAA8F;AAC9F,0FAA0F;AAC1F,8FAA8F;AAC9F,kGAAkG;AAClG,gFAAgF;AAChF,oGAAoG;AACpG,gFAAgF;AAChF,uFAAuF;AACvF,0FAA0F;AAC1F,mFAAmF;AACnF,kGAAkG;AAClG,mGAAmG;AACnG,gGAAgG;AAChG,oDAAoD;AACpD,8FAA8F;AAC9F,4FAA4F;AAC5F,4FAA4F;AAC5F,iGAAiG;AACjG,mFAAmF;AACnF,8FA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C;IACnF,6FAA6F;IAC7F,WAAW;IACX,MAAM,UAAU,GAAG,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC1D,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;QACtB,OAAO,CAAC,SAAS,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;QACtC,OAAO,CAAC,SAAS,EAAE,CAAC,QAAQ,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC1D,OAAO,CAAC,SAAS,EAAE,CAAC,SAAS,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC;QAC/C,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACnE,uFAAuF;QACvF,MAAM,MAAM,GAAG;YACb,GAAG,IAAI;YACP,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAC/E,CAAC;QACF,aAAa,CAAC,oBAAoB,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IAC9E,CAAC;IACD,OAAO;QACL,SAAS;QACT,IAAI;QACJ,MAAM;QACN,UAAU;QACV,MAAM,EAAE,IAAI,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC;KAC3D,CAAC;AACJ,CAAC"}
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -110,6 +110,15 @@ copie que fait le circuit juste après la séance du testwriter ou du développe
|
|
|
110
110
|
par l'appel commun du module de langage, `langageDe`, quel que soit le langage) est un rouge rendu
|
|
111
111
|
à cet agent avec la sortie de l'outil, qui consomme une tentative comme une construction rouge et,
|
|
112
112
|
les tentatives épuisées, monte à `controles` ; toute autre lecture qui échoue est `inattendu`.
|
|
113
|
+
Ce qui doit continuer sur une copie que l'outil du langage ne charge plus (le contrôle d'écriture
|
|
114
|
+
d'une séance, son enveloppe et son lancement, l'ouverture de chaque acte du circuit sur son
|
|
115
|
+
ticket) lit le module de langage par `langageDeLaCopie` (`scripts/langages.mjs`) : ses lectures de
|
|
116
|
+
l'arbre (les composants, la matière de test, la classe d'un fichier, la part d'un manifeste qui
|
|
117
|
+
revient aux tests) se jouent dans l'arbre principal du dépôt quand elles lèvent dans la copie, les
|
|
118
|
+
chemins portés d'un arbre à l'autre, comme rust-analyzer garde le dernier graphe chargé. Une
|
|
119
|
+
écriture y est jugée sur le plan comme une autre, celle qui répare la copie comprise, et l'arrêt
|
|
120
|
+
d'une étape s'écrit au ticket. `langageDe` reste strict : une garde, une construction et le rouge
|
|
121
|
+
de lecture lisent l'arbre tel qu'il est.
|
|
113
122
|
|
|
114
123
|
**Les outils du projet se déclarent** : comme Bazel déclare ce qu'une action voit hors de son bac
|
|
115
124
|
à sable (`--sandbox_add_mount_pair`) et l'environnement qu'elle reçoit (`--action_env`), un projet
|
|
@@ -251,7 +260,9 @@ le code de sortie d'un générateur du cadre, qui juge aussi les rouges qu'il la
|
|
|
251
260
|
refuse à côté d'eux) : il juge la régénération sur ce qu'elle écrit, puis sur la passe restreinte
|
|
252
261
|
qui suit, et seule une vraie panne l'arrête (la commande introuvable, ou tuée par un signal). La dette s'abaisse depuis les notes de la passe finale et depuis celles des contrôles du plan
|
|
253
262
|
(3.1), qui lisent leurs notes `a-elaguer` (une note du SARIF d'une garde, chaque clé inscrite
|
|
254
|
-
au-dessus de ce qu'elle trouve
|
|
263
|
+
au-dessus de ce qu'elle trouve, parmi les fichiers qu'elle a mesurés : une garde qui lit une
|
|
264
|
+
partie du dépôt, les composants du plan sous l'enveloppe, ne note rien des autres, comme une ligne
|
|
265
|
+
de base de PHPStan ne s'élague que des fichiers analysés) et régénèrent la dette, par
|
|
255
266
|
`dette.mjs --abaisser`, sans rejouer les gardes. Elle inscrit aussi la dette d'une garde que le lot
|
|
256
267
|
ajoute, absente des gardes de main (le circuit les nomme à la passe par `GRILLHOUSE_GARDES_DE_LA_BASE`) :
|
|
257
268
|
chaque fichier et règle de ses constats est une note `a-inscrire`, au compte trouvé, que la
|
|
@@ -835,9 +846,13 @@ lu sur un mot du responsable).
|
|
|
835
846
|
|
|
836
847
|
**Main reste vert** : la file n'avance main que sur l'arbre que la CI de la branche du ticket a
|
|
837
848
|
jugé vert, sans rouge admis (bors, Zuul), et la CI de main ne rejoue pas cet arbre : son premier
|
|
838
|
-
job (`judged` de `ci.yml`, du dépôt et du gabarit) cherche, sur un push vers main
|
|
839
|
-
du même workflow sur une branche `agent/**` pour le même
|
|
840
|
-
|
|
849
|
+
job (`judged` de `ci.yml`, du dépôt et du gabarit) cherche, sur un push vers main ou vers une
|
|
850
|
+
étiquette `v<x.y.z>` seuls, un run vert du même workflow sur une branche `agent/**` pour le même
|
|
851
|
+
commit exact (le SHA du push), et chaque job de la passe est sauté quand il le trouve ; tout autre
|
|
852
|
+
événement, ou une recherche en erreur, joue la passe. La publication (`release.yml`) appelle cette
|
|
853
|
+
CI et publie quand son résultat est `success` ou `skipped`, jamais sur un échec ni une annulation
|
|
854
|
+
(bors et Zuul testent une fois l'arbre qui entre ; `cargo release` et le trusted publishing de npm
|
|
855
|
+
publient le commit déjà jugé) : entre « corrigé » et « archive npm servie », une seule CI. Rien d'autre n'avance main : dans un
|
|
841
856
|
projet dont la CI écoute les branches de ticket, le crochet pre-push du cadre
|
|
842
857
|
(`refusSurMain` de `scripts/branche-de-nuit.mjs`) refuse de pousser sur origin la branche de
|
|
843
858
|
`grillhouse.poussee.commit` un commit qu'aucun run n'a conclu vert sur une branche `agent/**`, et
|
|
@@ -1219,11 +1234,12 @@ comprise ; l'ouverture de séance nomme sous « Manque » une marque d'un autre
|
|
|
1219
1234
|
`npm ci`. Ainsi un module natif construit pour un autre Node se reconstruit au lieu de refuser
|
|
1220
1235
|
de charger.
|
|
1221
1236
|
|
|
1222
|
-
**Le cadre tourne sur le support long actif
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
le gabarit, dont le `packageManager` nomme le npm
|
|
1226
|
-
|
|
1237
|
+
**Le cadre tourne sur Node 26 seul**, le support long actif (le calendrier de nodejs.org), comme
|
|
1238
|
+
un produit qui épingle sa chaîne (`rust-toolchain.toml`) : le poste, la CI de chaque lot, la nuit
|
|
1239
|
+
de GitHub et la sortie jouent Node 26, dans le dépôt et dans le gabarit ; `engines.node` vaut
|
|
1240
|
+
`>=26.0.0` à la racine, dans le paquet et dans le gabarit, dont le `packageManager` nomme le npm
|
|
1241
|
+
livré avec Node 26. `npx grillhouse maj` porte `engines.node` d'un projet de `>=22.0.0` ou
|
|
1242
|
+
`>=24.0.0` à `>=26.0.0` et réécrit ses workflows ; toute autre valeur reste, nommée dans une ligne.
|
|
1227
1243
|
|
|
1228
1244
|
**Le dépôt du cadre se mène avec une version publiée** : comme rustc se construit avec son
|
|
1229
1245
|
stage0 (un compilateur publié, fixé dans `src/stage0`, téléchargé dans un cache) et Bazel avec un
|
|
@@ -1315,7 +1331,7 @@ dépendances `@temporalio/*` sont épinglées à une version exacte.
|
|
|
1315
1331
|
garder un déroulé fermé 30 jours, `temporal operator namespace update --retention 720h`, là où
|
|
1316
1332
|
start-dev donne 24 h) ; `grillhouse-travailleur-<projet>.service`, le travailleur du projet sur
|
|
1317
1333
|
la file `grillhouse-projet-<projet>` ; `grillhouse-travailleur-machine.service`, le travailleur
|
|
1318
|
-
de la machine sur la file `grillhouse-machine`.
|
|
1334
|
+
de la machine sur la file `grillhouse-machine`. Le travailleur d'un projet joue la version publiée que le
|
|
1319
1335
|
projet nomme (`grillhouse.outil`), posée sous `~/.cache/grillhouse/outil/<version>/` quand elle
|
|
1320
1336
|
manque, comme la commande du circuit, une version sans travailleur refusée par son nom (la
|
|
1321
1337
|
version se pose dans son cache avant ce refus, qui l'y lit : seule écriture avant un refus) ; sans clé,
|
|
@@ -1334,6 +1350,17 @@ dépendances `@temporalio/*` sont épinglées à une version exacte.
|
|
|
1334
1350
|
systemd n'a pas appliquée (un `systemctl` en échec) l'est au passage suivant. Rejouée sur une
|
|
1335
1351
|
installation à jour et appliquée, l'installation ne change rien : rien ne se télécharge, aucun
|
|
1336
1352
|
fichier ne s'écrit, systemd n'est pas appelé.
|
|
1353
|
+
- **Un compte porte plusieurs projets** : le serveur et le travailleur de la machine sont au
|
|
1354
|
+
compte, le travailleur d'un projet est au projet. L'installation d'un projet garde, dans l'état
|
|
1355
|
+
appliqué, les sommes des unités des autres projets. L'unité du travailleur de la machine est
|
|
1356
|
+
au projet qui l'a écrite (son `WorkingDirectory`) : lui seul répond de tout son texte (Node,
|
|
1357
|
+
PATH, outils) et de ce que systemd en a appliqué, et sa propre installation la répare. Un autre
|
|
1358
|
+
projet ne la prend que pour la monter : quand elle joue une version du cadre antérieure à la
|
|
1359
|
+
sienne, quand sa version ne se lit pas, ou quand le projet qui la tenait n'existe plus
|
|
1360
|
+
(`textesDuProjet`). Le travailleur de la machine joue donc la plus haute version qu'un projet
|
|
1361
|
+
du compte a installée, quel que soit l'ordre des installations, comme un agent de Nomad sert
|
|
1362
|
+
tous les jobs de sa machine. Ainsi un projet à jour ne lit pas « périmé » après l'installation
|
|
1363
|
+
d'un autre, et un autre projet ne relance le travailleur commun que pour le monter.
|
|
1337
1364
|
- **La montée de version est transparente** : quand `grillhouse.outil` change de version, l'unité du
|
|
1338
1365
|
travailleur reste sur l'ancienne jusqu'à `npx grillhouse temporal installer`. L'ouverture de séance
|
|
1339
1366
|
le détecte (`travailleurPerime`, lue par `grillhouse temporal perime`) : les sommes appliquées
|
package/docs/INTERFACE.md
CHANGED
|
@@ -48,6 +48,13 @@ Un projet a plusieurs langages, un paquet un seul, comme Bazel et Nx jouent une
|
|
|
48
48
|
cibles, un outil par langage. `langagesDe(racine)` rend les modules déclarés, dans l'ordre de la
|
|
49
49
|
déclaration, chacun chargé une fois par processus ; `langageDe(racine)` rend leur composition
|
|
50
50
|
(`scripts/composition-des-langages.mjs`), le module lui-même quand le projet n'en déclare qu'un.
|
|
51
|
+
`langageDeLaCopie(copie)` rend la même composition pour ce qui doit continuer dans une copie que
|
|
52
|
+
l'outil de son langage ne charge plus (le contrôle d'écriture d'une séance, son enveloppe, un acte
|
|
53
|
+
du circuit) : ses lectures de l'arbre, `composants`, `matieres`, `estUnTest` et
|
|
54
|
+
`manifestes.horsDesTests`, se rejouent dans l'arbre principal du dépôt quand elles lèvent dans la
|
|
55
|
+
copie, les chemins portés d'un arbre à l'autre ; sans arbre principal, ou quand il lève aussi,
|
|
56
|
+
l'erreur de la copie est rendue. `langageDe` reste strict, pour les gardes, les constructions et
|
|
57
|
+
le rouge de lecture.
|
|
51
58
|
La composition répond aux demandes ci-dessous, `manifeste`, `tailleDUneCopie`, `nomDuManifeste`, `liensDuManifeste`, `sortieDuPaquet`, `construireLesPaquets`, `miseAJour` et `squelette` à part, que la
|
|
52
59
|
garde des langages, `maj` et `grillhouse paquet` demandent à chaque module :
|
|
53
60
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roomi-fields/grillhouse",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.0",
|
|
4
4
|
"description": "Roomi's Grillhouse: the frame's scripts, called by one command, grillhouse <sous-commande>",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
|
@@ -182,6 +182,6 @@
|
|
|
182
182
|
]
|
|
183
183
|
},
|
|
184
184
|
"engines": {
|
|
185
|
-
"node": ">=
|
|
185
|
+
"node": ">=26.0.0"
|
|
186
186
|
}
|
|
187
187
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// ticket's content, as GitLab cancels a pipeline whatever its configuration; its plan is empty.
|
|
11
11
|
// - Its title names its plan after its last « — », separated by commas: each one a path
|
|
12
12
|
// (`packages/<nom>`, or `.`), or the name of a package, which becomes its directory, read in the
|
|
13
|
-
// ticket's copy when it exists, else in the main tree (`
|
|
13
|
+
// ticket's copy when it exists, else in the main tree (`composantsLisibles`). A title without it, and
|
|
14
14
|
// a component that names neither, are refused by their name. An act after the opening is given
|
|
15
15
|
// the plan its workflow holds (<plan>) and reads only the subject of the title: the integration
|
|
16
16
|
// removes the ticket's copy while the circuit still runs, and a component the lot creates is in
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
import { spawnSync } from 'node:child_process';
|
|
20
20
|
import { existsSync } from 'node:fs';
|
|
21
21
|
import path from 'node:path';
|
|
22
|
-
import {
|
|
22
|
+
import { composantsLisibles } from './ticket-du-circuit.mjs';
|
|
23
23
|
import { sansArchitecture } from './verrous/verrou.mjs';
|
|
24
24
|
|
|
25
25
|
/** A ticket a circuit cannot start on, by its reason. */
|
|
@@ -31,7 +31,7 @@ export class DepartRefuse extends Error {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* The directory of the component <nom> of a title among <liste> (`
|
|
34
|
+
* The directory of the component <nom> of a title among <liste> (`composantsLisibles` of the repository
|
|
35
35
|
* at <base>): `.` itself; a component by its path or its name; else a path of the repository; or a
|
|
36
36
|
* refusal.
|
|
37
37
|
*/
|
|
@@ -112,7 +112,7 @@ export function ticketAuLancement(racine, id, { arreter = false, bd = null, plan
|
|
|
112
112
|
const ticket = ticketAuDepart(id, show.stdout, { arreter });
|
|
113
113
|
const copie = path.join(racine, '.claude', 'worktrees', id);
|
|
114
114
|
const base = existsSync(copie) ? copie : racine;
|
|
115
|
-
const liste =
|
|
115
|
+
const liste = composantsLisibles(base);
|
|
116
116
|
const resoudre = nom => resoudreComposant(liste, base, nom);
|
|
117
117
|
// The supervisor's stop reads neither the ticket's « ## Architecture » section nor its title.
|
|
118
118
|
const titre = arreter
|
package/scripts/dette.d.ts
CHANGED
|
@@ -12,12 +12,14 @@ export type Constat = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Judges the findings of `garde` at `racine` against `grillhouse-dette.json`, in the mode `mode`
|
|
14
14
|
* (`GRILLHOUSE_DETTE` by default): `refus` the findings to print as refusals, `lignes` the lines
|
|
15
|
-
* to print after them.
|
|
15
|
+
* to print after them. A guard that reads a part of the repository gives `mesure`, whether it read
|
|
16
|
+
* a file (from the root): the keys of the other files stay as they are.
|
|
16
17
|
*/
|
|
17
18
|
export function trancher(
|
|
18
19
|
racine: string,
|
|
19
20
|
garde: string,
|
|
20
21
|
constats: Constat[],
|
|
21
22
|
mode?: string,
|
|
22
|
-
env?: Record<string, string | undefined
|
|
23
|
+
env?: Record<string, string | undefined>,
|
|
24
|
+
mesure?: (fichier: string) => boolean
|
|
23
25
|
): { refus: Constat[]; lignes: string[] };
|
package/scripts/dette.mjs
CHANGED
|
@@ -80,22 +80,42 @@ export function lire(racine) {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
//
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
83
|
+
// Every file is measured: the answer of a guard that reads the whole repository.
|
|
84
|
+
const TOUT = () => true;
|
|
85
|
+
|
|
86
|
+
// The keys of the section <ancienne> of a guard, as counts, that a run did not measure (<mesure>,
|
|
87
|
+
// whether it read a file): a guard that reads a part of the repository (the components of a plan,
|
|
88
|
+
// in an envelope) knows nothing of the others, as a baseline of PHPStan is pruned of the files
|
|
89
|
+
// analysed only.
|
|
90
|
+
function nonMesurees(ancienne, mesure) {
|
|
91
|
+
const out = new Map();
|
|
92
|
+
for (const [fichier, regles] of Object.entries(ancienne)) {
|
|
93
|
+
if (!mesure(fichier)) {
|
|
94
|
+
out.set(fichier, new Map(Object.entries(regles).map(([regle, { count }]) => [regle, count])));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return out;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// <dette> with the section of <garde> replaced by what <constats> count, the keys of the files the
|
|
101
|
+
// run did not measure (<mesure>) kept; the guard leaves the file when nothing remains.
|
|
102
|
+
export function inscrire(dette, garde, constats, mesure = TOUT) {
|
|
103
|
+
const { [garde]: ancienne = {}, ...reste } = dette;
|
|
104
|
+
const comptes = new Map([...nonMesurees(ancienne, mesure), ...compter(constats)]);
|
|
89
105
|
return comptes.size ? { ...reste, [garde]: section(comptes) } : reste;
|
|
90
106
|
}
|
|
91
107
|
|
|
92
108
|
// <dette> with each count of <garde> lowered to what <constats> count, the keys at zero dropped;
|
|
93
|
-
// a count never rises and no key is added.
|
|
94
|
-
|
|
109
|
+
// a count never rises and no key is added. The keys of the files the run did not measure
|
|
110
|
+
// (<mesure>) stay as they are.
|
|
111
|
+
export function elaguer(dette, garde, constats, mesure = TOUT) {
|
|
95
112
|
const { [garde]: ancienne = {}, ...reste } = dette;
|
|
96
113
|
const comptes = compter(constats);
|
|
97
|
-
const garde2 =
|
|
114
|
+
const garde2 = nonMesurees(ancienne, mesure);
|
|
98
115
|
for (const [fichier, regles] of Object.entries(ancienne)) {
|
|
116
|
+
if (!mesure(fichier)) {
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
99
119
|
for (const [regle, { count }] of Object.entries(regles)) {
|
|
100
120
|
const n = Math.min(count, comptes.get(fichier)?.get(regle) ?? 0);
|
|
101
121
|
if (n === 0) {
|
|
@@ -112,9 +132,9 @@ export function elaguer(dette, garde, constats) {
|
|
|
112
132
|
|
|
113
133
|
// <constats> of <garde> judged against <dette>: `refus` the findings the guard refuses (those
|
|
114
134
|
// without key, and every finding of a key beyond its count), `depasses` the keys beyond a non-zero
|
|
115
|
-
// count, `corriges` the keys inscribed above what is found,
|
|
116
|
-
// covers.
|
|
117
|
-
export function juger(dette, garde, constats) {
|
|
135
|
+
// count, `corriges` the keys inscribed above what is found, among the files the run measured
|
|
136
|
+
// (<mesure>), `tus` the number of findings the debt covers.
|
|
137
|
+
export function juger(dette, garde, constats, mesure = TOUT) {
|
|
118
138
|
const inscrite = dette[garde] ?? {};
|
|
119
139
|
const comptes = compter(constats);
|
|
120
140
|
const permis = (fichier, regle) => inscrite[fichier]?.[regle]?.count ?? 0;
|
|
@@ -132,6 +152,9 @@ export function juger(dette, garde, constats) {
|
|
|
132
152
|
}
|
|
133
153
|
const corriges = [];
|
|
134
154
|
for (const [fichier, regles] of Object.entries(inscrite)) {
|
|
155
|
+
if (!mesure(fichier)) {
|
|
156
|
+
continue;
|
|
157
|
+
}
|
|
135
158
|
for (const [regle, { count }] of Object.entries(regles)) {
|
|
136
159
|
const trouve = comptes.get(fichier)?.get(regle) ?? 0;
|
|
137
160
|
if (trouve < count) {
|
|
@@ -150,9 +173,18 @@ export function juger(dette, garde, constats) {
|
|
|
150
173
|
// guard's findings in SARIF too, under the results directory <env> names (scripts/resultats.mjs),
|
|
151
174
|
// each with its file, its line when the guard gives one, and its rule; beside them, each key
|
|
152
175
|
// inscribed above what the guard finds is a note (`a-elaguer`, level `note`), no red, by which the
|
|
153
|
-
// circuit lowers the debt d'office at the final pass (scripts/circuit.mjs, 4.2).
|
|
154
|
-
|
|
155
|
-
|
|
176
|
+
// circuit lowers the debt d'office at the final pass (scripts/circuit.mjs, 4.2). A guard that
|
|
177
|
+
// reads a part of the repository gives <mesure>, whether it read a file (from the root): the keys
|
|
178
|
+
// of the others are neither judged corrected, nor pruned, nor written again.
|
|
179
|
+
export function trancher(
|
|
180
|
+
racine,
|
|
181
|
+
garde,
|
|
182
|
+
constats,
|
|
183
|
+
mode = process.env[MODE] || undefined,
|
|
184
|
+
env,
|
|
185
|
+
mesure = TOUT
|
|
186
|
+
) {
|
|
187
|
+
const { refus, lignes, corriges } = juge(racine, garde, constats, mode, mesure);
|
|
156
188
|
const notes = corriges.map(c => ({
|
|
157
189
|
fichier: c.fichier,
|
|
158
190
|
regle: c.regle,
|
|
@@ -255,7 +287,7 @@ export function abaisser(racine, notes) {
|
|
|
255
287
|
return change;
|
|
256
288
|
}
|
|
257
289
|
|
|
258
|
-
function juge(racine, garde, constats, mode) {
|
|
290
|
+
function juge(racine, garde, constats, mode, mesure) {
|
|
259
291
|
let avant;
|
|
260
292
|
try {
|
|
261
293
|
if (mode !== undefined && !MODES.has(mode)) {
|
|
@@ -269,7 +301,9 @@ function juge(racine, garde, constats, mode) {
|
|
|
269
301
|
const lignes = [];
|
|
270
302
|
if (mode) {
|
|
271
303
|
dette =
|
|
272
|
-
mode === 'inscrire'
|
|
304
|
+
mode === 'inscrire'
|
|
305
|
+
? inscrire(avant, garde, constats, mesure)
|
|
306
|
+
: elaguer(avant, garde, constats, mesure);
|
|
273
307
|
if (JSON.stringify(dette) !== JSON.stringify(avant)) {
|
|
274
308
|
ecrire(racine, dette);
|
|
275
309
|
lignes.push(
|
|
@@ -277,7 +311,7 @@ function juge(racine, garde, constats, mode) {
|
|
|
277
311
|
);
|
|
278
312
|
}
|
|
279
313
|
}
|
|
280
|
-
const { refus, depasses, corriges, tus } = juger(dette, garde, constats);
|
|
314
|
+
const { refus, depasses, corriges, tus } = juger(dette, garde, constats, mesure);
|
|
281
315
|
for (const d of depasses) {
|
|
282
316
|
lignes.push(
|
|
283
317
|
`⛔ ${garde} : ${d.fichier} · ${d.regle} — ${d.trouve} constat(s) pour ${d.inscrit} inscrit(s) dans ${FICHIER} : un constat est neuf.`
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
import os from 'node:os';
|
|
118
118
|
import path from 'node:path';
|
|
119
119
|
import { pathToFileURL } from 'node:url';
|
|
120
|
-
import {
|
|
120
|
+
import { langageDeLaCopie } from '../langages.mjs';
|
|
121
121
|
import { CODE_REFUS, CODE_USAGE } from './codes.mjs';
|
|
122
122
|
import {
|
|
123
123
|
ecritsDuPlan,
|
|
@@ -849,7 +849,7 @@ function envelopper(argv) {
|
|
|
849
849
|
}),
|
|
850
850
|
lienSurDisque
|
|
851
851
|
);
|
|
852
|
-
const langage =
|
|
852
|
+
const langage = langageDeLaCopie(copie);
|
|
853
853
|
const matieres = langage.matieres(copie).map(m => path.relative(copie, m.dossier));
|
|
854
854
|
// The outputs of the language: its stores in the home or in the main tree (the folder of git's
|
|
855
855
|
// common directory), and where its tools write in the copy.
|
|
@@ -168,7 +168,7 @@ if [ -d "$racine/.claude/worktrees/$ticket" ]; then
|
|
|
168
168
|
elif git -C "$racine" rev-parse --verify --quiet "refs/heads/agent/$ticket" > /dev/null; then
|
|
169
169
|
branche="agent/$ticket"
|
|
170
170
|
fi
|
|
171
|
-
refus_composant=$(node --input-type=module -e "import { spawnSync } from 'node:child_process'; import { existsSync } from 'node:fs'; import path from 'node:path'; import { jugerComposant, paquetsDuLangage } from '$ici/enveloppe.mjs'; import { lireLaListe } from '$ici/paquets-du-plan.mjs'; import {
|
|
171
|
+
refus_composant=$(node --input-type=module -e "import { spawnSync } from 'node:child_process'; import { existsSync } from 'node:fs'; import path from 'node:path'; import { jugerComposant, paquetsDuLangage } from '$ici/enveloppe.mjs'; import { lireLaListe } from '$ici/paquets-du-plan.mjs'; import { langageDeLaCopie } from '$ici/../langages.mjs'; const [depot, composant, liste, branche] = process.argv.slice(1); const dansBranche = p => { const rel = path.relative(depot, p); return rel === '' || (!rel.startsWith('..') && spawnSync('git', ['-C', depot, 'cat-file', '-e', branche + ':' + rel]).status === 0); }; const existe = p => existsSync(p) || (branche !== '' && dansBranche(p)); const tous = paquetsDuLangage(langageDeLaCopie(depot), depot); process.stdout.write([composant, ...lireLaListe(liste)].map(c => jugerComposant({ depot, composant: c, paquets: tous }, { existe })).find(Boolean) ?? '');" "$juge" "$composant" "$paquets" "$branche") || exit "$CODE_USAGE"
|
|
172
172
|
[ -z "$refus_composant" ] || { echo "⛔ $refus_composant" >&2; exit "$CODE_USAGE"; }
|
|
173
173
|
# The ticket is matched whole: `demo-3160` is not `demo-316`, and its dots are dots.
|
|
174
174
|
motif=$(printf '%s' "$ticket" | sed 's/[.[\*^$]/\\&/g')
|
|
@@ -41,7 +41,7 @@ import { pathToFileURL } from 'node:url';
|
|
|
41
41
|
import { lireLigne } from './consommateurs.mjs';
|
|
42
42
|
import { trancher } from '../../dette.mjs';
|
|
43
43
|
import { arbitrageTranche, estArbitrage } from '../../services-du-noyau.mjs';
|
|
44
|
-
import { aVerifier, marques } from './interfaces-contre-code.mjs';
|
|
44
|
+
import { aVerifier, marques, mesureDe } from './interfaces-contre-code.mjs';
|
|
45
45
|
|
|
46
46
|
const REGLE = 'consommateur-sans-arbitrage';
|
|
47
47
|
|
|
@@ -244,7 +244,14 @@ export function juger(ticket, interfaces, commentaires, ticketLu) {
|
|
|
244
244
|
|
|
245
245
|
if (import.meta.url === pathToFileURL(process.argv[1] ?? '').href) {
|
|
246
246
|
const racine = process.cwd();
|
|
247
|
-
const { refus, lignes } = trancher(
|
|
247
|
+
const { refus, lignes } = trancher(
|
|
248
|
+
racine,
|
|
249
|
+
'consommateurs-arbitres',
|
|
250
|
+
verifier(racine),
|
|
251
|
+
undefined,
|
|
252
|
+
undefined,
|
|
253
|
+
mesureDe(racine)
|
|
254
|
+
);
|
|
248
255
|
for (const r of refus) {
|
|
249
256
|
process.stderr.write(`⛔ ${r.message}\n`);
|
|
250
257
|
}
|
|
@@ -602,6 +602,25 @@ export function aVerifier(racine, env = process.env) {
|
|
|
602
602
|
return siens.length ? siens : tous;
|
|
603
603
|
}
|
|
604
604
|
|
|
605
|
+
/**
|
|
606
|
+
* Whether a run at <racine> in <env> read the file <fichier> (from the root), for the known debt
|
|
607
|
+
* (`trancher` of scripts/dette.mjs): a file of a component it reads (`aVerifier`). Undefined when
|
|
608
|
+
* it reads every component.
|
|
609
|
+
* @param {string} racine
|
|
610
|
+
* @param {NodeJS.ProcessEnv} [env]
|
|
611
|
+
* @returns {((fichier: string) => boolean) | undefined}
|
|
612
|
+
*/
|
|
613
|
+
export function mesureDe(racine, env = process.env) {
|
|
614
|
+
const lus = aVerifier(racine, env).map(c => path.resolve(c.dir));
|
|
615
|
+
if (lus.length === composants(racine).length) {
|
|
616
|
+
return undefined;
|
|
617
|
+
}
|
|
618
|
+
return fichier => {
|
|
619
|
+
const f = path.resolve(racine, fichier);
|
|
620
|
+
return lus.some(d => f === d || f.startsWith(d + path.sep));
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
|
|
605
624
|
if (import.meta.url === pathToFileURL(process.argv[1] ?? '').href) {
|
|
606
625
|
const racine = process.cwd();
|
|
607
626
|
const ecrire = process.argv.includes('--ecrire');
|
|
@@ -613,7 +632,14 @@ if (import.meta.url === pathToFileURL(process.argv[1] ?? '').href) {
|
|
|
613
632
|
}
|
|
614
633
|
constats.push(...refus);
|
|
615
634
|
}
|
|
616
|
-
const { refus, lignes } = trancher(
|
|
635
|
+
const { refus, lignes } = trancher(
|
|
636
|
+
racine,
|
|
637
|
+
'interfaces-contre-code',
|
|
638
|
+
constats,
|
|
639
|
+
undefined,
|
|
640
|
+
undefined,
|
|
641
|
+
mesureDe(racine)
|
|
642
|
+
);
|
|
617
643
|
for (const r of refus) {
|
|
618
644
|
process.stderr.write(`⛔ ${r.message}\n`);
|
|
619
645
|
}
|
|
@@ -15,13 +15,14 @@
|
|
|
15
15
|
// written in the documentation comment of the export, and `npm run api` carries it over.
|
|
16
16
|
// - A refusal inscribed in the project's debt (`grillhouse-dette.json`, see `dette.mjs`) passes,
|
|
17
17
|
// keyed by the interface and `resume-trop-long`.
|
|
18
|
-
// - In an envelope (`GRILLHOUSE_ENVELOPPE`), the components of its plan alone are judged
|
|
18
|
+
// - In an envelope (`GRILLHOUSE_ENVELOPPE`), the components of its plan alone are judged, and the
|
|
19
|
+
// debt of the others is left as it is (`mesureDe`).
|
|
19
20
|
import { existsSync, readFileSync } from 'node:fs';
|
|
20
21
|
import path from 'node:path';
|
|
21
22
|
import { pathToFileURL } from 'node:url';
|
|
22
23
|
import { MODE, trancher } from '../../dette.mjs';
|
|
23
24
|
import { lire } from './index-interfaces.mjs';
|
|
24
|
-
import { aVerifier } from './interfaces-contre-code.mjs';
|
|
25
|
+
import { aVerifier, mesureDe } from './interfaces-contre-code.mjs';
|
|
25
26
|
|
|
26
27
|
// The longest first sentence of a summary, in characters.
|
|
27
28
|
export const LONGUEUR_MAX = 80;
|
|
@@ -57,7 +58,14 @@ export function verifier(racine, env = process.env) {
|
|
|
57
58
|
// `trancher` under the results directory <env> names (scripts/resultats.mjs); without it none is
|
|
58
59
|
// written, and the debt's mode is <env>'s `GRILLHOUSE_DETTE`.
|
|
59
60
|
export function rapport(racine, env = process.env) {
|
|
60
|
-
const { refus, lignes } = trancher(
|
|
61
|
+
const { refus, lignes } = trancher(
|
|
62
|
+
racine,
|
|
63
|
+
'resumes',
|
|
64
|
+
verifier(racine, env),
|
|
65
|
+
env[MODE] || undefined,
|
|
66
|
+
env,
|
|
67
|
+
mesureDe(racine, env)
|
|
68
|
+
);
|
|
61
69
|
return {
|
|
62
70
|
lignes: [...refus.map(r => `⛔ ${r.message}`), ...lignes],
|
|
63
71
|
code: refus.length ? 1 : 0,
|
package/scripts/langages.d.mts
CHANGED
|
@@ -18,3 +18,5 @@ export function langagesDe(racine: string): Langage[];
|
|
|
18
18
|
/** The join of the modules that serve the project at <racine>: the module itself when the project
|
|
19
19
|
* declares one, else their composition. */
|
|
20
20
|
export function langageDe(racine: string): Composition;
|
|
21
|
+
/** The join of the copy <copie>, its readings played in the main tree when they throw in it. */
|
|
22
|
+
export function langageDeLaCopie(copie: string, principal?: () => string | null): Composition;
|
package/scripts/langages.mjs
CHANGED
|
@@ -15,8 +15,18 @@
|
|
|
15
15
|
// `langageDe` their join (./composition-des-langages.mjs), which gives each file to the module
|
|
16
16
|
// of its component, the module itself when one is declared. A name out of the list is refused,
|
|
17
17
|
// named.
|
|
18
|
+
// - A copy its tool no longer loads is still read: `langageDeLaCopie` gives the join whose
|
|
19
|
+
// readings of the tree (LECTURES: the components, the test material, the class of a file; and
|
|
20
|
+
// the part of a manifest its tests own) are
|
|
21
|
+
// played in the main tree of the repository when they throw in the copy, the paths carried from
|
|
22
|
+
// one tree to the other. A session leaves such a copy between two writes of one change (cargo:
|
|
23
|
+
// a dependency moved in the manifest of the workspace and not yet in a crate's, osc-bridge
|
|
24
|
+
// OB-ud1.6); the lock of its writes, its envelope and the acts of its circuit read on, as
|
|
25
|
+
// rust-analyzer keeps the last graph that loaded, and the write that repairs the copy passes.
|
|
26
|
+
// `langageDe` stays strict: a guard, a build and the red of a reading read the tree as it is.
|
|
18
27
|
// - A module is loaded once per process, synchronously (`require` of an ES module, Node 22): the
|
|
19
28
|
// locks and the guards ask it in a hook, where nothing waits.
|
|
29
|
+
import { spawnSync } from 'node:child_process';
|
|
20
30
|
import { createRequire } from 'node:module';
|
|
21
31
|
import path from 'node:path';
|
|
22
32
|
import { composer } from './composition-des-langages.mjs';
|
|
@@ -102,3 +112,72 @@ export function langageDe(racine) {
|
|
|
102
112
|
}
|
|
103
113
|
return composes.get(cle);
|
|
104
114
|
}
|
|
115
|
+
|
|
116
|
+
// The main tree of the repository the copy <copie> belongs to, from git's common directory; null
|
|
117
|
+
// out of git.
|
|
118
|
+
function arbrePrincipal(copie) {
|
|
119
|
+
const r = spawnSync(
|
|
120
|
+
'git',
|
|
121
|
+
['-C', copie, 'rev-parse', '--path-format=absolute', '--git-common-dir'],
|
|
122
|
+
{ encoding: 'utf8' }
|
|
123
|
+
);
|
|
124
|
+
return r.status === 0 && r.stdout.trim() ? path.dirname(r.stdout.trim()) : null;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// <v> with each path under the tree <de> carried under the tree <vers>, in its strings, its arrays
|
|
128
|
+
// and its objects; a path under <sauf> (the copy, which lies under the main tree) is left.
|
|
129
|
+
function porter(v, de, vers, sauf = null) {
|
|
130
|
+
const sous = (p, d) => p === d || p.startsWith(d + path.sep);
|
|
131
|
+
if (typeof v === 'string') {
|
|
132
|
+
return sous(v, de) && !(sauf && sous(v, sauf)) ? vers + v.slice(de.length) : v;
|
|
133
|
+
}
|
|
134
|
+
if (Array.isArray(v)) {
|
|
135
|
+
return v.map(x => porter(x, de, vers, sauf));
|
|
136
|
+
}
|
|
137
|
+
if (v !== null && typeof v === 'object') {
|
|
138
|
+
return Object.fromEntries(Object.entries(v).map(([k, x]) => [k, porter(x, de, vers, sauf)]));
|
|
139
|
+
}
|
|
140
|
+
return v;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The readings of the tree a copy its tool no longer loads still answers (see the header), and
|
|
145
|
+
* with them the part of a manifest its tests own (`manifestes.horsDesTests`).
|
|
146
|
+
*/
|
|
147
|
+
const LECTURES = ['composants', 'matieres', 'estUnTest'];
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The join of the languages of the copy <copie> (`langageDe`), each of its readings of the tree
|
|
151
|
+
* (LECTURES) played in the main tree <principal> of its repository when it throws in the copy:
|
|
152
|
+
* the paths of its arguments carried to the main tree, those of its answer back to the copy.
|
|
153
|
+
* Without a main tree, in the main tree itself, or when the main tree throws too, the error of
|
|
154
|
+
* the copy is thrown.
|
|
155
|
+
* @param {string} copie the root of the copy
|
|
156
|
+
* @param {() => string | null} [principal] the main tree of its repository, read when needed
|
|
157
|
+
* @returns {import('./jointure.js').Composition}
|
|
158
|
+
*/
|
|
159
|
+
export function langageDeLaCopie(copie, principal = () => arbrePrincipal(copie)) {
|
|
160
|
+
const langage = langageDe(copie);
|
|
161
|
+
const ici = path.resolve(copie);
|
|
162
|
+
const tolerer = lecture =>
|
|
163
|
+
function (...args) {
|
|
164
|
+
try {
|
|
165
|
+
return lecture.apply(langage, args);
|
|
166
|
+
} catch (e) {
|
|
167
|
+
const p = principal();
|
|
168
|
+
const la = p === null ? null : path.resolve(p);
|
|
169
|
+
if (la === null || la === ici) {
|
|
170
|
+
throw e;
|
|
171
|
+
}
|
|
172
|
+
try {
|
|
173
|
+
return porter(lecture.apply(langage, porter(args, ici, la)), la, ici, ici);
|
|
174
|
+
} catch {
|
|
175
|
+
throw e;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
return Object.assign(Object.create(langage), {
|
|
180
|
+
...Object.fromEntries(LECTURES.map(n => [n, tolerer(langage[n])])),
|
|
181
|
+
manifestes: { ...langage.manifestes, horsDesTests: tolerer(langage.manifestes.horsDesTests) },
|
|
182
|
+
});
|
|
183
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// From 0.44.0 the frame supports Node 26 alone (grillhouse-3uv.103): the CI and the night of
|
|
2
|
+
// GitHub play Node 26 only, and the template declares `engines.node` `>=26.0.0`.
|
|
3
|
+
//
|
|
4
|
+
// - A project's package.json that holds the exact value the template held before (`>=22.0.0` or
|
|
5
|
+
// `>=24.0.0`) receives `>=26.0.0`; only that value changes in the text.
|
|
6
|
+
// - Any other value stays, and a line names it: the workflows of the project play Node 26 alone,
|
|
7
|
+
// with no proof of the version it declares; the project raises it or widens its matrix.
|
|
8
|
+
// - The frame's workflows of the project are written again from the template
|
|
9
|
+
// (scripts/workflows-du-cadre.mjs): a project that holds none receives none.
|
|
10
|
+
// - A project already migrated, or without package.json, changes nothing and returns no line.
|
|
11
|
+
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
12
|
+
import path from 'node:path';
|
|
13
|
+
import { CADRE } from '../cadre.mjs';
|
|
14
|
+
import { poserLesWorkflows } from '../workflows-du-cadre.mjs';
|
|
15
|
+
|
|
16
|
+
export const version = '0.44.0';
|
|
17
|
+
export const nom = 'node 26 seul';
|
|
18
|
+
|
|
19
|
+
// The values of the template before this version, and the one it holds from it.
|
|
20
|
+
const MOTEURS_AVANT = ['>=22.0.0', '>=24.0.0'];
|
|
21
|
+
const MOTEUR = '>=26.0.0';
|
|
22
|
+
|
|
23
|
+
// A text as a pattern that matches it alone.
|
|
24
|
+
const litteral = t => t.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
25
|
+
|
|
26
|
+
/** Gives the project `engines.node` `>=26.0.0` and the template's workflows. */
|
|
27
|
+
export function migrer(projet) {
|
|
28
|
+
const lignes = [];
|
|
29
|
+
const f = path.join(projet, 'package.json');
|
|
30
|
+
if (existsSync(f)) {
|
|
31
|
+
const texte = readFileSync(f, 'utf8');
|
|
32
|
+
const actuel = JSON.parse(texte).engines?.node;
|
|
33
|
+
if (MOTEURS_AVANT.includes(actuel)) {
|
|
34
|
+
const motif = new RegExp(`("node"\\s*:\\s*)${litteral(JSON.stringify(actuel))}`);
|
|
35
|
+
writeFileSync(f, texte.replace(motif, (_, debut) => `${debut}${JSON.stringify(MOTEUR)}`));
|
|
36
|
+
lignes.push(`package.json : engines.node passe à ${MOTEUR}`);
|
|
37
|
+
} else if (typeof actuel === 'string' && actuel !== MOTEUR) {
|
|
38
|
+
lignes.push(
|
|
39
|
+
`package.json : engines.node vaut ${actuel}, laissé tel quel ; les workflows du cadre jouent Node 26 seul, sans preuve sur cette version : la relever (${MOTEUR}) ou étendre la matrice des workflows`
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
for (const ecrit of poserLesWorkflows(projet, CADRE)) {
|
|
44
|
+
lignes.push(`${ecrit} : réécrit depuis le gabarit (Node 26 seul)`);
|
|
45
|
+
}
|
|
46
|
+
return lignes;
|
|
47
|
+
}
|
package/scripts/migrations.mjs
CHANGED
|
@@ -40,6 +40,7 @@ import * as node26 from './migrations/0.33.0-node-26.mjs';
|
|
|
40
40
|
import * as ciDuCadre from './migrations/0.33.0-ci-du-cadre.mjs';
|
|
41
41
|
import * as cacheDistant from './migrations/0.33.0-cache-distant.mjs';
|
|
42
42
|
import * as greffonMattpocockRetire from './migrations/0.35.0-greffon-mattpocock-retire.mjs';
|
|
43
|
+
import * as node26Seul from './migrations/0.44.0-node-26-seul.mjs';
|
|
43
44
|
|
|
44
45
|
/** The migrations of the core. */
|
|
45
46
|
export const MIGRATIONS = [
|
|
@@ -59,6 +60,7 @@ export const MIGRATIONS = [
|
|
|
59
60
|
ciDuCadre,
|
|
60
61
|
cacheDistant,
|
|
61
62
|
greffonMattpocockRetire,
|
|
63
|
+
node26Seul,
|
|
62
64
|
];
|
|
63
65
|
|
|
64
66
|
/**
|
package/scripts/sortie.mjs
CHANGED
|
@@ -18,8 +18,9 @@
|
|
|
18
18
|
// refused. Nothing is written when a check fails.
|
|
19
19
|
// - Tagging creates the annotated tag `v<version>` on HEAD, once the release commit is made and
|
|
20
20
|
// the working tree holds no change. Nothing is pushed: the owner validates the push, whose
|
|
21
|
-
// command the script names; `.github/workflows/release.yml` then
|
|
22
|
-
// commit
|
|
21
|
+
// command the script names; `.github/workflows/release.yml` then calls the CI on the tagged
|
|
22
|
+
// commit (which plays nothing again when a branch agent/** already judged that commit) and, once
|
|
23
|
+
// it is green or skipped, checks the tag (`--verifier-etiquette`), publishes the package
|
|
23
24
|
// on the npm registry (trusted publishing, no token stored) and the release on GitHub. The git
|
|
24
25
|
// it runs is passed in (`etiqueter`'s `git`): the command runs git in the repository.
|
|
25
26
|
// - The marketplace roomi-fields (GitHub, roomi-fields/claude-plugins, a repository of its own)
|
|
@@ -10,7 +10,7 @@ import { spawnSync } from 'node:child_process';
|
|
|
10
10
|
import { appendFileSync, existsSync, readFileSync } from 'node:fs';
|
|
11
11
|
import { gesteDe } from './etapes.mjs';
|
|
12
12
|
import { paquetsDuLangage } from './enveloppe/paquets-du-plan.mjs';
|
|
13
|
-
import { langageDe } from './langages.mjs';
|
|
13
|
+
import { langageDe, langageDeLaCopie } from './langages.mjs';
|
|
14
14
|
import { AUTEUR_DU_CIRCUIT, PREFIXE, emettre, rendusDe, sansCouleurs } from './effets.mjs';
|
|
15
15
|
|
|
16
16
|
// The author of a comment, the circuit's, and the start of its lines: those of its one writer.
|
|
@@ -65,6 +65,10 @@ export const enUneLigne = t =>
|
|
|
65
65
|
// root (a crate whose workspace is its own, as OSC Bridge's).
|
|
66
66
|
export const composantsDe = racine => paquetsDuLangage(langageDe(racine), racine);
|
|
67
67
|
|
|
68
|
+
// The same components, still read in a copy its tool no longer loads (`langageDeLaCopie`): what
|
|
69
|
+
// an act of the circuit reads to open on its ticket, so that it writes its stop and resumes.
|
|
70
|
+
export const composantsLisibles = racine => paquetsDuLangage(langageDeLaCopie(racine), racine);
|
|
71
|
+
|
|
68
72
|
// Every comment at the ticket, in their order, `{ author, text }` as Beads gives them, then those
|
|
69
73
|
// emitted and not yet played; a failed read throws.
|
|
70
74
|
export function lesCommentaires(ctx) {
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
paquetsDeLEnveloppe,
|
|
46
46
|
paquetsDuLangage,
|
|
47
47
|
} from '../enveloppe/paquets-du-plan.mjs';
|
|
48
|
-
import {
|
|
48
|
+
import { langageDeLaCopie } from '../langages.mjs';
|
|
49
49
|
|
|
50
50
|
const WRITE_TOOLS = new Set(['Write', 'Edit', 'MultiEdit', 'NotebookEdit']);
|
|
51
51
|
|
|
@@ -109,7 +109,7 @@ export function horsDuPlan(input, { tmp = tmpdir(), env = process.env, role = nu
|
|
|
109
109
|
if (!copie) {
|
|
110
110
|
return null;
|
|
111
111
|
}
|
|
112
|
-
const langage =
|
|
112
|
+
const langage = langageDeLaCopie(copie);
|
|
113
113
|
const liste = paquetsDuLangage(langage, copie);
|
|
114
114
|
const ecrits = ecritsDuPlan(plan, liste);
|
|
115
115
|
const rel = path.relative(copie, file);
|
|
@@ -213,7 +213,7 @@ export function refusal(role, input, { tmp = tmpdir(), describe = ticketDescript
|
|
|
213
213
|
return null;
|
|
214
214
|
}
|
|
215
215
|
const racine = racineDe(file) ?? cwd;
|
|
216
|
-
const langage =
|
|
216
|
+
const langage = langageDeLaCopie(racine);
|
|
217
217
|
const classe = langage.estUnTest(file, racine);
|
|
218
218
|
const testwriter = classe !== null;
|
|
219
219
|
|