@roomi-fields/grillhouse 0.49.1 → 0.50.1
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 +24 -0
- package/bin/grillhouse.mjs +2 -0
- package/cadre/templates/projet/CLAUDE.md +13 -96
- package/cadre/templates/projet/docs/agents/issue-tracker.md +5 -5
- package/charte.md +77 -96
- package/dist/temporal/acte.js +2 -1
- package/dist/temporal/acte.js.map +1 -1
- package/dist/temporal/circuit/activites.js +2 -1
- package/dist/temporal/circuit/activites.js.map +1 -1
- package/dist/temporal/circuit/appel.js +2 -2
- package/dist/temporal/circuit/appel.js.map +1 -1
- package/dist/temporal/circuit/client.d.ts +2 -4
- package/dist/temporal/circuit/client.js +5 -8
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/commande.js +5 -4
- package/dist/temporal/circuit/commande.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +3 -3
- package/dist/temporal/circuit/contrat.js +2 -2
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +4 -4
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/commande.js +1 -1
- package/dist/temporal/commande.js.map +1 -1
- package/dist/temporal/deroules.js +3 -4
- package/dist/temporal/deroules.js.map +1 -1
- package/dist/temporal/etat.js +1 -1
- package/dist/temporal/etat.js.map +1 -1
- package/dist/temporal/file/activites.js +2 -1
- package/dist/temporal/file/activites.js.map +1 -1
- package/dist/temporal/file/client.js.map +1 -1
- package/dist/temporal/file/contrat.js +3 -2
- package/dist/temporal/file/contrat.js.map +1 -1
- package/dist/temporal/file/deroule.js +2 -1
- package/dist/temporal/file/deroule.js.map +1 -1
- package/dist/temporal/installation.js +2 -0
- package/dist/temporal/installation.js.map +1 -1
- package/dist/temporal/nuits/activites.js +4 -3
- package/dist/temporal/nuits/activites.js.map +1 -1
- package/dist/temporal/nuits/appel.js +2 -1
- package/dist/temporal/nuits/appel.js.map +1 -1
- package/dist/temporal/nuits/choix.js +2 -1
- package/dist/temporal/nuits/choix.js.map +1 -1
- package/dist/temporal/nuits/client.js +2 -1
- package/dist/temporal/nuits/client.js.map +1 -1
- package/dist/temporal/nuits/commande.js +2 -1
- package/dist/temporal/nuits/commande.js.map +1 -1
- package/dist/temporal/nuits/contrat.js +2 -1
- package/dist/temporal/nuits/contrat.js.map +1 -1
- package/dist/temporal/nuits/deroule.js +2 -1
- package/dist/temporal/nuits/deroule.js.map +1 -1
- package/dist/temporal/places/activites.js +2 -1
- package/dist/temporal/places/activites.js.map +1 -1
- package/dist/temporal/places/client.js +1 -0
- package/dist/temporal/places/client.js.map +1 -1
- package/dist/temporal/places/deroule.js +4 -5
- package/dist/temporal/places/deroule.js.map +1 -1
- package/dist/temporal/tickets/activites.js +1 -1
- package/dist/temporal/tickets/activites.js.map +1 -1
- package/dist/temporal/tickets/deroule.js +4 -4
- package/dist/temporal/tickets/deroule.js.map +1 -1
- package/docs/ARCHITECTURE.md +3 -3
- package/docs/CADRE.md +10 -68
- package/docs/INTERFACE.md +59 -179
- package/docs/architecture/circuit.md +440 -0
- package/docs/architecture/entree.md +281 -0
- package/docs/architecture/greffon.md +284 -0
- package/docs/architecture/installation.md +306 -0
- package/docs/architecture/machine.md +383 -0
- package/docs/architecture/tests.md +337 -0
- package/hooks/crochet.mjs +3 -1
- package/package.json +1 -1
- package/scripts/abi-des-dependances.mjs +2 -1
- package/scripts/activites.mjs +8 -8
- package/scripts/aiguillage.mjs +4 -4
- package/scripts/arbitrages.mjs +1 -1
- package/scripts/arbres-juges.mjs +2 -1
- package/scripts/attente-a-l-arret.mjs +7 -8
- package/scripts/attente-au-tour.mjs +2 -2
- package/scripts/attente-de-la-machine.mjs +10 -16
- package/scripts/avancement.mjs +2 -0
- package/scripts/base-des-workflows.mjs +2 -1
- package/scripts/bilan.mjs +39 -61
- package/scripts/binaires.mjs +2 -1
- package/scripts/branche-de-nuit.mjs +2 -1
- package/scripts/cadre.mjs +37 -9
- package/scripts/ci-de-main.mjs +2 -1
- package/scripts/circuit.mjs +101 -618
- package/scripts/circuits-cles.mjs +4 -6
- package/scripts/circuits-du-serveur.mjs +1 -1
- package/scripts/codes-de-sortie.mjs +1 -1
- package/scripts/coeurs-dedies.mjs +2 -4
- package/scripts/commande-du-langage.mjs +2 -0
- package/scripts/commandes-composees.mjs +3 -3
- package/scripts/commandes-du-path.mjs +1 -1
- package/scripts/composants-affectes.mjs +3 -1
- package/scripts/composition-des-langages.mjs +2 -0
- package/scripts/conformite.d.ts +2 -1
- package/scripts/conformite.mjs +2 -0
- package/scripts/consommation-des-passes.mjs +5 -4
- package/scripts/consommation.mjs +1 -0
- package/scripts/copies-finies.mjs +9 -10
- package/scripts/crochet.mjs +1 -0
- package/scripts/crochets.mjs +2 -1
- package/scripts/depart-du-ticket.mjs +2 -2
- package/scripts/dependances-internes.mjs +4 -2
- package/scripts/dernier-vert.mjs +3 -3
- package/scripts/dette.d.ts +2 -1
- package/scripts/dette.mjs +2 -0
- package/scripts/direct.mjs +66 -6
- package/scripts/disque-des-copies.mjs +1 -1
- package/scripts/donnees-cles.mjs +2 -0
- package/scripts/droits.mjs +18 -13
- package/scripts/echantillonneur-de-la-passe.mjs +1 -1
- package/scripts/effets.mjs +3 -3
- package/scripts/engendres.mjs +1 -1
- package/scripts/enveloppe/codes.mjs +1 -0
- package/scripts/enveloppe/enveloppe.mjs +61 -84
- package/scripts/enveloppe/lancer.sh +5 -3
- package/scripts/enveloppe/paquets-du-plan.mjs +4 -6
- package/scripts/enveloppe/travail-de-la-copie.mjs +17 -17
- package/scripts/etapes.mjs +10 -9
- package/scripts/etat-du-depot.mjs +2 -1
- package/scripts/faits-du-circuit.mjs +19 -19
- package/scripts/fermeture-de-la-machine.mjs +2 -2
- package/scripts/fichier-du-poste.mjs +3 -4
- package/scripts/fichiers-nommes.mjs +2 -1
- package/scripts/file-des-tickets.mjs +3 -1
- package/scripts/flux-de-la-nuit.mjs +2 -1
- package/scripts/flux-des-paquets.mjs +2 -1
- package/scripts/fusion-du-changelog.mjs +2 -1
- package/scripts/garde-de-la-memoire.mjs +1 -1
- package/scripts/gardes-du-cadre.mjs +2 -0
- package/scripts/greffons.mjs +2 -2
- package/scripts/grillhouse-maj.mjs +55 -150
- package/scripts/groupe-cles.mjs +2 -1
- package/scripts/index-interfaces.mjs +2 -0
- package/scripts/init.mjs +2 -1
- package/scripts/integration/file.mjs +3 -3
- package/scripts/integration/integrer.mjs +5 -6
- package/scripts/integration/rejeu.mjs +4 -2
- package/scripts/integration/verdict.mjs +2 -1
- package/scripts/jointure.d.ts +2 -1
- package/scripts/journal-des-etats.mjs +2 -2
- package/scripts/langages/cargo/binaires.mjs +3 -2
- package/scripts/langages/cargo/clippy.mjs +2 -0
- package/scripts/langages/cargo/commandes.mjs +72 -17
- package/scripts/langages/cargo/composants.mjs +4 -3
- package/scripts/langages/cargo/elements-du-lot.mjs +2 -0
- package/scripts/langages/cargo/etiquettes.mjs +87 -0
- package/scripts/langages/cargo/executables-de-tests.mjs +3 -1
- package/scripts/langages/cargo/exemples.mjs +6 -4
- package/scripts/langages/cargo/frontieres.mjs +2 -0
- package/scripts/langages/cargo/index-interfaces.mjs +2 -0
- package/scripts/langages/cargo/index.mjs +8 -9
- package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +8 -8
- package/scripts/langages/cargo/migrations/0.34.0-executables-de-tests.mjs +7 -8
- package/scripts/langages/cargo/mise-a-jour.mjs +6 -3
- package/scripts/langages/cargo/sccache.mjs +10 -6
- package/scripts/langages/cargo/squelette.mjs +2 -0
- package/scripts/langages/cargo/tailles-des-tests.mjs +2 -0
- package/scripts/langages/cargo/verdict.mjs +8 -6
- package/scripts/langages/typescript/chemins-des-tests.mjs +2 -1
- package/scripts/langages/typescript/code-mort.mjs +2 -1
- package/scripts/langages/typescript/composants.mjs +7 -5
- package/scripts/langages/typescript/consommateurs-arbitres.mjs +2 -1
- package/scripts/langages/typescript/consommateurs.d.ts +2 -1
- package/scripts/langages/typescript/consommateurs.mjs +5 -7
- package/scripts/langages/typescript/construire.mjs +2 -1
- package/scripts/langages/typescript/elements-du-lot.mjs +2 -1
- package/scripts/langages/typescript/exemples.mjs +2 -1
- package/scripts/langages/typescript/frontieres.mjs +3 -2
- package/scripts/langages/typescript/index-interfaces.mjs +3 -2
- package/scripts/langages/typescript/index.mjs +3 -2
- package/scripts/langages/typescript/interfaces-contre-code.mjs +2 -1
- package/scripts/langages/typescript/lecteurs.mjs +2 -1
- package/scripts/langages/typescript/migrations/0.23.0-config-vitest.mjs +5 -6
- package/scripts/langages/typescript/migrations/0.24.4-noms-declares-inutilises.mjs +4 -8
- package/scripts/langages/typescript/migrations/0.24.6-lignes-mal-formees.mjs +5 -9
- package/scripts/langages/typescript/migrations/0.24.7-matiere-dans-les-tests.mjs +6 -10
- package/scripts/langages/typescript/migrations/0.25.0-chemins-des-tests.mjs +5 -6
- package/scripts/langages/typescript/migrations/0.25.0-tailles-des-tests.mjs +6 -8
- package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +5 -4
- package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +7 -7
- package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +5 -6
- package/scripts/langages/typescript/migrations/0.33.0-binaire-de-jour.mjs +6 -6
- package/scripts/langages/typescript/migrations/0.33.0-tests-du-poste.mjs +5 -5
- package/scripts/langages/typescript/migrations/0.34.1-cache-des-outils.mjs +4 -4
- package/scripts/langages/typescript/migrations/0.49.0-tests-equipes.mjs +7 -7
- package/scripts/langages/typescript/mise-a-jour.mjs +5 -5
- package/scripts/langages/typescript/module-absent.mjs +2 -1
- package/scripts/langages/typescript/parcours.mjs +2 -1
- package/scripts/langages/typescript/references-par-les-types.mjs +2 -1
- package/scripts/langages/typescript/regle-des-tests.mjs +2 -1
- package/scripts/langages/typescript/resume-du-lanceur.mjs +1 -1
- package/scripts/langages/typescript/resumes.mjs +2 -1
- package/scripts/langages/typescript/squelette.mjs +2 -1
- package/scripts/langages/typescript/tailles-des-tests.mjs +5 -4
- package/scripts/langages/typescript/tests-de-nuit.mjs +5 -4
- package/scripts/langages/typescript/tests-du-poste.mjs +2 -1
- package/scripts/langages/typescript/tests.mjs +44 -66
- package/scripts/langages/typescript/titres-de-tests.mjs +2 -2
- package/scripts/langages/typescript/tranches.mjs +2 -1
- package/scripts/langages/typescript/turbo-des-paquets.mjs +87 -148
- package/scripts/langages/typescript/verdict.mjs +2 -1
- package/scripts/langages/typescript/verifier.mjs +64 -99
- package/scripts/langages/typescript/verrou-des-dependances.mjs +2 -1
- package/scripts/langages/typescript/vitest-config/avancement.reporter.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/base.mjs +5 -5
- package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/changements.mjs +6 -10
- package/scripts/langages/typescript/vitest-config/cibles.mjs +3 -3
- package/scripts/langages/typescript/vitest-config/delais.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/delais.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/duree.classement.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +4 -3
- package/scripts/langages/typescript/vitest-config/lances.mjs +3 -2
- package/scripts/langages/typescript/vitest-config/machine.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/mesure.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/mesure.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/registre.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/resultats.mjs +2 -1
- package/scripts/langages/typescript/vitest-config/resultats.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest.nuit.config.mjs +3 -2
- package/scripts/langages-des-paquets.mjs +3 -1
- package/scripts/langages.mjs +5 -3
- package/scripts/lecture-unique.mjs +2 -1
- package/scripts/ligne-etat/defaut.sh +2 -1
- package/scripts/ligne-etat/ligne-etat.mjs +1 -0
- package/scripts/lint-des-scripts.mjs +1 -0
- package/scripts/machine.mjs +4 -4
- package/scripts/matiere-de-test.d.ts +2 -1
- package/scripts/matieres-lues.mjs +2 -0
- package/scripts/messages-non-lus.mjs +2 -4
- package/scripts/mesure/avancement.mjs +1 -1
- package/scripts/mesure/base-de-passe.mjs +10 -13
- package/scripts/mesure/pression.mjs +3 -4
- package/scripts/mesure-de-la-machine.mjs +2 -1
- package/scripts/migrations/0.23.0-charte-importee.mjs +7 -13
- package/scripts/migrations/0.23.0-crochets-de-seance.mjs +6 -8
- package/scripts/migrations/0.23.0-marche-du-projet.mjs +8 -12
- package/scripts/migrations/0.23.2-copies-du-cadre.mjs +9 -32
- package/scripts/migrations/0.24.0-circuit-simplifie.mjs +11 -39
- package/scripts/migrations/0.24.12-tri-des-decouvertes.mjs +6 -9
- package/scripts/migrations/0.24.2-api-extractor-du-paquet.mjs +8 -19
- package/scripts/migrations/0.25.0-script-des-tests.mjs +7 -13
- package/scripts/migrations/0.27.0-langages-dans-l-architecture.mjs +9 -23
- package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +7 -9
- package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +7 -18
- package/scripts/migrations/0.33.0-cache-distant.mjs +6 -9
- package/scripts/migrations/0.33.0-ci-du-cadre.mjs +5 -8
- package/scripts/migrations/0.33.0-node-26.mjs +5 -8
- package/scripts/migrations/0.35.0-greffon-mattpocock-retire.mjs +5 -10
- package/scripts/migrations/0.44.0-node-26-seul.mjs +6 -9
- package/scripts/migrations/0.44.0-seuil-des-codes-de-tickets.mjs +6 -7
- package/scripts/migrations/0.47.0-ci-de-main.mjs +6 -7
- package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +6 -6
- package/scripts/migrations/0.48.0-poussee-retiree.mjs +3 -5
- package/scripts/migrations/0.49.0-reservation-de-trois-coeurs.mjs +3 -4
- package/scripts/migrations/0.50.0-reglages-hors-de-la-charte.mjs +81 -0
- package/scripts/migrations-des-gardes.mjs +2 -0
- package/scripts/migrations.mjs +4 -0
- package/scripts/newday.mjs +2 -2
- package/scripts/nuit.sh +7 -5
- package/scripts/outil.mjs +2 -1
- package/scripts/outils-cles.mjs +6 -6
- package/scripts/paquet-npm.mjs +3 -2
- package/scripts/paquet.mjs +3 -4
- package/scripts/paquets.d.ts +1 -1
- package/scripts/paquets.mjs +2 -0
- package/scripts/passe-de-la-machine.mjs +9 -12
- package/scripts/places-de-la-machine.mjs +36 -53
- package/scripts/places-du-serveur.mjs +5 -4
- package/scripts/plafond-de-la-machine.mjs +19 -19
- package/scripts/poussee-retiree.mjs +2 -1
- package/scripts/prefixe-des-tickets.mjs +1 -0
- package/scripts/preparation.mjs +2 -1
- package/scripts/recommencer.mjs +2 -2
- package/scripts/references-changees.mjs +1 -1
- package/scripts/registre-des-resultats.mjs +3 -1
- package/scripts/registre.mjs +14 -16
- package/scripts/regles-des-places.mjs +4 -6
- package/scripts/repli-de-la-nuit.mjs +2 -1
- package/scripts/reponses-du-circuit.mjs +4 -3
- package/scripts/reprise.mjs +3 -2
- package/scripts/resultats.mjs +71 -93
- package/scripts/retirer-copie.sh +2 -1
- package/scripts/retirer-les-copies-finies.mjs +2 -1
- package/scripts/seances.mjs +3 -2
- package/scripts/services-du-noyau.mjs +2 -0
- package/scripts/session-start.sh +33 -52
- package/scripts/sigle-du-projet.mjs +1 -2
- package/scripts/sortie.mjs +2 -1
- package/scripts/sources.mjs +2 -0
- package/scripts/sous-commandes.mjs +2 -1
- package/scripts/sous-modules.sh +24 -43
- package/scripts/structure-guard.sh +2 -1
- package/scripts/style-a-l-ecriture.mjs +2 -0
- package/scripts/suiveur.mjs +1 -1
- package/scripts/superviseur.mjs +36 -55
- package/scripts/tableau-des-composants.mjs +5 -7
- package/scripts/tableau.mjs +78 -121
- package/scripts/taches-du-graphe.mjs +3 -0
- package/scripts/ticket-du-circuit.mjs +1 -1
- package/scripts/transitions.mjs +15 -15
- package/scripts/un-commit-par-ticket.mjs +2 -1
- package/scripts/verdict-de-la-nuit.mjs +2 -1
- package/scripts/verrou-de-fichier.mjs +1 -0
- package/scripts/verrous/commande.mjs +2 -1
- package/scripts/verrous/ecriture-hors-enveloppe.mjs +1 -0
- package/scripts/verrous/ticket-du-sous-agent.mjs +1 -0
- package/scripts/verrous/verrou.mjs +3 -3
- package/scripts/workflows-du-cadre.mjs +2 -1
- package/skills/developpeur/SKILL.md +6 -10
- package/skills/explorateur/SKILL.md +1 -1
- package/skills/grill/SKILL.md +4 -5
- package/skills/grill/references/paquets.md +5 -8
- package/skills/pitmaster/SKILL.md +176 -268
- package/skills/pitmaster/references/cadre.md +7 -6
- package/skills/pitmaster/references/consigne-agent.md +36 -32
- package/skills/pitmaster/references/tour.md +2 -2
- package/skills/redacteur/references/documents-d-un-composant.md +9 -8
- package/skills/testwriter/SKILL.md +8 -11
- package/types/index.d.ts +3 -0
|
@@ -6,12 +6,13 @@
|
|
|
6
6
|
// untracked), and plays the tests whose graph holds one of them (`related`); the frame gives it
|
|
7
7
|
// the files that differ from the tree of the last green instead, which Vitest's git cannot read
|
|
8
8
|
// (a green kept on a copy whose lot is not committed).
|
|
9
|
+
// Mechanism: packages/grillhouse/docs/architecture/tests.md, §5.3 (the tests of a package replayed).
|
|
9
10
|
//
|
|
10
11
|
// - The variable `GRILLHOUSE_CHANGEMENTS` names a JSON file, `{ racine, fichiers, supprimes, cible }`:
|
|
11
12
|
// the top of the repository, the files changed or added since the last green and the files
|
|
12
13
|
// removed, each path from the top, and, for a pass of the circuit measured against the base of
|
|
13
14
|
// its lot (scripts/dernier-vert.mjs), the mark `cible`. It passes through Turborepo without entering any hash (the root's
|
|
14
|
-
// `globalPassThroughEnv`, which
|
|
15
|
+
// `globalPassThroughEnv`, which ../turbo-des-paquets.mjs writes and checks): a package whose
|
|
15
16
|
// inputs did not move replays its last green from Turborepo's cache, whatever the last green.
|
|
16
17
|
// The plugin takes it out of the environment once read: no process the tests start receives it.
|
|
17
18
|
// - The graph of a test is the test file and the modules it imports, statically or dynamically,
|
|
@@ -54,20 +55,15 @@
|
|
|
54
55
|
// Vitest's own `forceRerunTriggers` (a configuration's, or its default) still apply, as with
|
|
55
56
|
// `--changed`. Under the mark `cible`, 5 and 7 do not play the package whole, and no test is
|
|
56
57
|
// related by the paths it reads (`testsQuiLancent`): the tests Vitest relates alone, the tests
|
|
57
|
-
// that declare their reads, and the files named
|
|
58
|
-
// CI's of the ticket's branch and the night's.
|
|
59
|
-
// `scripts/session-start.sh` the reads of 276 of the 282 test files of packages/grillhouse hold
|
|
60
|
-
// (a test that starts the command reads every script of its table).
|
|
58
|
+
// that declare their reads, and the files named; as `vitest --changed`, a file out of its graph
|
|
59
|
+
// is left to the complete pass, the CI's of the ticket's branch and the night's.
|
|
61
60
|
// - Otherwise the tests played are those Vitest relates to the files changed or added (`related`,
|
|
62
61
|
// absolute), the tests that read one of them by its path, a script they launch or a file they
|
|
63
62
|
// read, with what it imports and names (`testsQuiLancent`, ./lances.mjs, as Bazel's `data`),
|
|
64
63
|
// the tests that declare they read a file changed, added or removed (`// @lit <motif>` at
|
|
65
64
|
// their head, `testsQuiDeclarent`, ./lances.mjs), targeted or not, and the files a targeted run
|
|
66
|
-
// names themselves (./cibles.mjs): a file named plays, changed or not.
|
|
67
|
-
//
|
|
68
|
-
// each subcommand), which the targeted passes of grillhouse-44b.15 left red to the CI of the
|
|
69
|
-
// branch five times in one night (grillhouse-44b.17). A package where none relates plays none and passes
|
|
70
|
-
// (`passWithNoTests`), as Vitest's `--changed` has it.
|
|
65
|
+
// names themselves (./cibles.mjs): a file named plays, changed or not. A package where none
|
|
66
|
+
// relates plays none and passes (`passWithNoTests`), as Vitest's `--changed` has it.
|
|
71
67
|
//
|
|
72
68
|
// This module's top level uses Node alone (./cibles.mjs, scripts/langages/typescript/tests.mjs import it); a
|
|
73
69
|
// turbo.json is read with jsonc-parser, the frame's reader of JSON with comments, loaded then.
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// that the `env` of the task `test:unit` names enters the hash of the tests alone
|
|
5
5
|
// (https://turborepo.dev/docs/reference/configuration#env). Turborepo then plays the tests with
|
|
6
6
|
// what they depend on, each build and each trace hashed by Turborepo itself.
|
|
7
|
+
// Mechanism: packages/grillhouse/docs/architecture/tests.md, §5.4 (a targeted run), §3.3.
|
|
7
8
|
//
|
|
8
9
|
// - The value is JSON: `arguments`, Vitest's arguments (the paths, absolute, and the options
|
|
9
10
|
// written `--<name>=<value>`), which Vitest's own parser of its command line (`parseCLI`,
|
|
@@ -18,9 +19,8 @@
|
|
|
18
19
|
// A path of another package names none of its files. Each option enters the test configuration
|
|
19
20
|
// as Vitest merges its command line over it (`exclude` given on the command line is
|
|
20
21
|
// `cliExclude`, as Vitest's `normalizeCliOptions` names it).
|
|
21
|
-
// - Every measure of time plays at night
|
|
22
|
-
//
|
|
23
|
-
// each commit for a machine at rest: a time budget bench (BUDGET) and a time witness, a test
|
|
22
|
+
// - Every measure of time plays at night, as Bazel leaves a target tagged `manual` out of every
|
|
23
|
+
// pattern: a time budget bench (BUDGET) and a time witness, a test
|
|
24
24
|
// file that imports the mark of a measure of time (`import { mesurerAuRepos } from
|
|
25
25
|
// '@roomi-fields/grillhouse/vitest-config/mesure'`, a line of its own, `estTemoin`), are out of
|
|
26
26
|
// the day, as a night test (NUIT) is. The base configuration excludes the patterns HORS_DU_JOUR;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
// large delay, whatever its text reads.
|
|
9
9
|
// - A setup file of the base configuration applies the delay of its file to each test file
|
|
10
10
|
// (./delais.setup.mjs).
|
|
11
|
+
// Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.4 (the guard of the sizes).
|
|
11
12
|
import { existsSync } from 'node:fs';
|
|
12
13
|
import path from 'node:path';
|
|
13
14
|
import { lesMatieres, classer } from '../tailles-des-tests.mjs';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// A setup file of the base configuration: a test file has the delay of its size, as Bazel gives
|
|
2
2
|
// each test the delay of its `size`. It reads the size of the file it sets up (./delais.mjs, by the
|
|
3
3
|
// classification of the guard of the sizes) and gives Vitest its delay for a test and a hook.
|
|
4
|
+
// Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.4.
|
|
4
5
|
import { vi } from 'vitest';
|
|
5
6
|
import { delaisSurLeDisque } from './delais.mjs';
|
|
6
7
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// the end, Vitest's exit code, and per file its size label, whether it is out of the day and
|
|
4
4
|
// whether it is a time budget bench, by the rules of ./cibles.mjs) and
|
|
5
5
|
// never reads the disk nor the global state. The reporter reads those, calls `classer`, writes the
|
|
6
|
-
// lines and sets the exit code.
|
|
6
|
+
// lines and sets the exit code. Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.3.
|
|
7
7
|
//
|
|
8
8
|
// A failure depends on a duration when it is a failure of a time budget bench (a file
|
|
9
9
|
// `*.budget.test.*`, `*.budget.spec.*`), of a test marked as a measure of time (`mesurerAuRepos`),
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
// The duration reporter of the base configuration, beside Vitest's default reporter; a project
|
|
2
2
|
// names it by its published entry, `@roomi-fields/grillhouse/vitest-config/duree`
|
|
3
3
|
// (`--reporter=<entry>`, or `reporters` in a configuration; types ./duree.reporter.d.ts). At the end
|
|
4
|
-
// of a run with failures, it reads each one:
|
|
4
|
+
// of a run with failures, it reads each one. Mechanism: packages/grillhouse/docs/architecture/tests.md,
|
|
5
|
+
// §3.3 (the module typescript), and the charter's « Une mesure de temps joue la nuit »:
|
|
5
6
|
//
|
|
6
7
|
// - a failure depends on a duration when it is a failure of a time budget bench (a file
|
|
7
8
|
// `*.budget.test.*`, `*.budget.spec.*`), of a test marked as a measure of time (`mesurerAuRepos`,
|
|
8
9
|
// ./mesure.mjs), or a delay past (an error « Test timed out in <n>ms. » or « Hook timed out in
|
|
9
10
|
// <n>ms. », Vitest's own message) in a file out of the day (a night test, a bench, a time
|
|
10
11
|
// witness: `estHorsDuJour` of ./cibles.mjs); every other failure is a real red, a delay past in
|
|
11
|
-
// a day test included: a delay of the day is a safeguard, not a measure, as in Bazel and Vitest
|
|
12
|
-
//
|
|
12
|
+
// a day test included: a delay of the day is a safeguard, not a measure, as in Bazel and Vitest,
|
|
13
|
+
// and one too tight widens, far above the test's usual duration;
|
|
13
14
|
// - it took place under load when the CPU pressure (./pression.mjs) was at or above the threshold
|
|
14
15
|
// at the start or at the end of the test (noted by ./mesure.setup.mjs), or, for a hook or a file
|
|
15
16
|
// that fails outside of a test, at the start or at the end of the run.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// reads by their path, as Bazel's `data` of a test target, which Vitest's graph (the modules a test
|
|
3
3
|
// imports) does not hold. The frame reads them in the test's text, and in the texts they lead to,
|
|
4
4
|
// as Bazel's runfiles of a target are those of its `data` and of their own dependencies.
|
|
5
|
+
// Mechanism: packages/grillhouse/docs/architecture/tests.md, §5.3 (the tests of a package replayed).
|
|
5
6
|
//
|
|
6
7
|
// - What a test names (`nommesPar`): each path that a string of its code writes whole
|
|
7
8
|
// (`'../../scripts/verrous/verrou.mjs'`), or that the strings of one call of `join` or
|
|
@@ -135,8 +136,8 @@ const estDossier = f => {
|
|
|
135
136
|
};
|
|
136
137
|
|
|
137
138
|
// The files under the directory <dir>, absolute, SAUTES left out: the walk of the guards
|
|
138
|
-
// (../parcours.mjs), which never lists Vite's temporary files (
|
|
139
|
-
//
|
|
139
|
+
// (../parcours.mjs), which never lists Vite's temporary files (one, beside a configuration of
|
|
140
|
+
// another package, would count as a module).
|
|
140
141
|
const fichiersSous = dir => parcourir(dir, f => SAUTES.has(path.basename(f)));
|
|
141
142
|
|
|
142
143
|
// The specifiers <texte> imports.
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
//
|
|
14
14
|
// That trial machine takes no place of the user's machine (scripts/places-de-la-machine.mjs): only
|
|
15
15
|
// the server of trial a test names (GRILLHOUSE_PLACES_D_ESSAI).
|
|
16
|
+
// Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.3, §4.2.
|
|
16
17
|
import { randomUUID } from 'node:crypto';
|
|
17
18
|
import { rmSync } from 'node:fs';
|
|
18
19
|
import { tmpdir } from 'node:os';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// A test that measures time marks itself, so that its failure under load is « à repasser », not a
|
|
2
2
|
// red (./duree.reporter.mjs), and its file, a time witness, plays at night alone, out of the day
|
|
3
|
-
// (./cibles.mjs,
|
|
3
|
+
// (./cibles.mjs; packages/grillhouse/docs/architecture/tests.md, §3.3):
|
|
4
4
|
//
|
|
5
5
|
// import { mesurerAuRepos } from '@roomi-fields/grillhouse/vitest-config/mesure';
|
|
6
6
|
// it('rend en moins de 50 ms', ctx => mesurerAuRepos(ctx, () => { … expect(ms).toBeLessThan(50); }));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// The setup file of the base configuration: notes the CPU pressure (./pression.mjs) at the start
|
|
2
2
|
// and at the end of each test in its `task.meta`, which reaches the duration reporter
|
|
3
3
|
// (./duree.reporter.mjs). The end is noted after a delay past too: Vitest plays `afterEach` then.
|
|
4
|
+
// Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.3.
|
|
4
5
|
import { afterEach, beforeEach } from 'vitest';
|
|
5
6
|
import { lirePression } from '../../../services-du-noyau.mjs';
|
|
6
7
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// starts inherits (scripts/registre.mjs reads the variable first); the directory is removed at the
|
|
5
5
|
// end of the test file, and at the exit of the process for one made inside a running test. A
|
|
6
6
|
// register the launch names stays.
|
|
7
|
+
// Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.3, §4.2.
|
|
7
8
|
import { mkdtempSync, rmSync } from 'node:fs';
|
|
8
9
|
import { tmpdir } from 'node:os';
|
|
9
10
|
import path from 'node:path';
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
// package directory it runs in and its process: two packages, or the same one twice, never write
|
|
7
7
|
// the same file.
|
|
8
8
|
// - The variable passes through Turborepo without entering any hash (`globalPassThroughEnv` of the
|
|
9
|
-
// root's turbo.json, which
|
|
9
|
+
// root's turbo.json, which ../turbo-des-paquets.mjs writes and checks).
|
|
10
|
+
// Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.1, §5.1.
|
|
10
11
|
import path from 'node:path';
|
|
11
12
|
import { RESULTATS } from '../../../resultats.mjs';
|
|
12
13
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
// or a circuit that a test plays in a repository of trial writes its results there, and its reds
|
|
8
8
|
// never count in the pass that plays it. The reporters of the run, set up in its main process,
|
|
9
9
|
// keep the run's own directory. Without the variable, nothing changes.
|
|
10
|
+
// Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.3.
|
|
10
11
|
import { randomUUID } from 'node:crypto';
|
|
11
12
|
import path from 'node:path';
|
|
12
13
|
import { RESULTATS } from '../../../resultats.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// What the day leaves out of a project: the night tests (`*.nuit.test.*`, `*.nuit.spec.*`), too
|
|
2
2
|
// long for the day, and the measures of time, the time budget benches (`*.budget.test.*`,
|
|
3
3
|
// `*.budget.spec.*`) and the time witnesses (a test file that imports `mesurerAuRepos`), whose
|
|
4
|
-
// measures move with the load of the day
|
|
4
|
+
// measures move with the load of the day; `npm test`, `npm run verifier` and the
|
|
5
5
|
// integration leave them out (the frame's base configuration of the day, the package
|
|
6
6
|
// @roomi-fields/grillhouse/vitest-config, which every day configuration extends). The night
|
|
7
7
|
// (scripts/nuit.sh, by ./tests-de-nuit.mjs) plays them with this configuration, from the root of
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
// only for its own files (below); it takes from the base configuration the common
|
|
15
15
|
// environment (git's settings) and the measure of time: the setup file that notes the CPU pressure
|
|
16
16
|
// of each test and the duration reporter, which gives 75, « à repasser », to a measure that fails
|
|
17
|
-
// under load (
|
|
17
|
+
// under load (./vitest-config/duree.reporter.mjs).
|
|
18
|
+
// Mechanism: packages/grillhouse/docs/architecture/tests.md, §3.3 (the module typescript).
|
|
18
19
|
//
|
|
19
20
|
// A run plays one unit of the project: the root, under this configuration alone, or a package that
|
|
20
21
|
// has a Vitest configuration (`vitest.config.*`, else `vite.config.*`, in its directory, found by
|
|
@@ -18,12 +18,14 @@
|
|
|
18
18
|
// language; a docs/INTERFACE.md of the package, or of
|
|
19
19
|
// the root for the row that names it (`.`), whose line `**Langage** : <nom>` names another
|
|
20
20
|
// language; a row that names a folder of the project no module finds (a package of Python
|
|
21
|
-
// without its pyproject.toml
|
|
21
|
+
// without its pyproject.toml), without the manifest of its language. A folder of
|
|
22
22
|
// a module without its manifest and without row (a folder of `src/` of a project of one package)
|
|
23
23
|
// is no package; a row that names neither a component nor a folder (a package not yet created,
|
|
24
24
|
// a crate of another repository) is not judged.
|
|
25
25
|
// - Each finding is written in SARIF under the guard's name, and on the error stream after ⛔; the
|
|
26
26
|
// exit code is 1 when there is one, 0 otherwise.
|
|
27
|
+
//
|
|
28
|
+
// The list of the guards: docs/architecture/tests.md §3.4.
|
|
27
29
|
import { existsSync, readFileSync, statSync } from 'node:fs';
|
|
28
30
|
import path from 'node:path';
|
|
29
31
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
package/scripts/langages.mjs
CHANGED
|
@@ -15,17 +15,19 @@
|
|
|
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
|
|
18
|
+
// - A copy its tool cannot load is still read: `langageDeLaCopie` gives the join whose
|
|
19
19
|
// readings of the tree (LECTURES: the components, the test material, the class of a file; and
|
|
20
20
|
// the part of a manifest its tests own) are
|
|
21
21
|
// played in the main tree of the repository when they throw in the copy, the paths carried from
|
|
22
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
|
|
24
|
-
//
|
|
23
|
+
// a dependency moved in the manifest of the workspace and not yet in a crate's); the lock of
|
|
24
|
+
// its writes, its envelope and the acts of its circuit read on, as
|
|
25
25
|
// rust-analyzer keeps the last graph that loaded, and the write that repairs the copy passes.
|
|
26
26
|
// `langageDe` stays strict: a guard, a build and the red of a reading read the tree as it is.
|
|
27
27
|
// - A module is loaded once per process, synchronously (`require` of an ES module, Node 22): the
|
|
28
28
|
// locks and the guards ask it in a hook, where nothing waits.
|
|
29
|
+
//
|
|
30
|
+
// What the core asks of a module: docs/architecture/tests.md §3.3 and scripts/jointure.d.ts.
|
|
29
31
|
import { spawnSync } from 'node:child_process';
|
|
30
32
|
import { createRequire } from 'node:module';
|
|
31
33
|
import path from 'node:path';
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
// language keeps there what it reads at a cost (cargo's metadata). A reading that throws is not
|
|
7
7
|
// kept. The scope lives on the process under a global symbol, so that every instance of this file
|
|
8
8
|
// shares it: the modules of language are loaded by `require` (./langages.mjs), which a test
|
|
9
|
-
// runner may load apart from the core's imports.
|
|
9
|
+
// runner may load apart from the core's imports. The join that loads the modules:
|
|
10
|
+
// docs/architecture/tests.md §3.3.
|
|
10
11
|
|
|
11
12
|
const PORTEE = Symbol.for('grillhouse.lecture-unique');
|
|
12
13
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
# The default left part of the Grillhouse status line, for a person without a status line command
|
|
3
3
|
# of their own: the model, the context used, the OpenRouter credit (cache 30 s) or the Anthropic
|
|
4
|
-
# rate limits over 5 h and 7 days. Reads Claude Code's status line input on stdin.
|
|
4
|
+
# rate limits over 5 h and 7 days. Reads Claude Code's status line input on stdin. Played by
|
|
5
|
+
# scripts/ligne-etat/ligne-etat.mjs (greffon.md, §3.1).
|
|
5
6
|
|
|
6
7
|
input=$(cat)
|
|
7
8
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
// - The right part: `grillhouse-etat.txt` in the project's common git directory, which each
|
|
10
10
|
// measure of the follower writes (`scripts/suiveur.mjs`), dim, aligned on the terminal's width
|
|
11
11
|
// (COLUMNS), on the first line; nothing when that measure is older than 10 minutes.
|
|
12
|
+
// Mechanism: greffon.md, §3.1 (the status line) and §4.3 (the status text).
|
|
12
13
|
import { execFileSync } from 'node:child_process';
|
|
13
14
|
import { readFileSync } from 'node:fs';
|
|
14
15
|
import os from 'node:os';
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// counted per file and rule against the debt of `grillhouse-dette.json` (`trancher`, dette.mjs).
|
|
4
4
|
// An error beyond the inscribed count refuses with the file, the rule and the counts.
|
|
5
5
|
// ESLint is the repository's own tool, played by its executable (the package does not depend on it).
|
|
6
|
+
// The debt: docs/architecture/tests.md §5.5.
|
|
6
7
|
import { spawnSync } from 'node:child_process';
|
|
7
8
|
import path from 'node:path';
|
|
8
9
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
package/scripts/machine.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// `grillhouse machine fermer [--attendre]` and `grillhouse machine rouvrir`: closes the machine to
|
|
2
|
-
// new work and reopens it,
|
|
3
|
-
//
|
|
2
|
+
// new work and reopens it, so that the poste restarts without cutting a circuit in the middle of
|
|
3
|
+
// its work. Architecture: docs/architecture/machine.md (§5.7).
|
|
4
4
|
//
|
|
5
5
|
// - `fermer`: no place is given any more, to any project of the poste, and no ticket starts; each
|
|
6
6
|
// circuit alive finishes its step, then waits without starting the next. The command returns at
|
|
7
|
-
// once
|
|
7
|
+
// once, saying what still runs by project and by ticket, and « la machine est
|
|
8
8
|
// vide » when nothing plays; played again, it reads that state. With `--attendre` it returns
|
|
9
|
-
// only once the machine is empty
|
|
9
|
+
// only once the machine is empty: exit 0.
|
|
10
10
|
// - `rouvrir`: the circuits go on by themselves at the next step.
|
|
11
11
|
// - A night that holds the machine is never doubled nor lifted: the command says so (exit 0).
|
|
12
12
|
// - The closure lives in the state of the places on the Temporal server: it survives a restart of
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// The types of the shared test material the package's typed tests read
|
|
2
2
|
// (`@roomi-fields/grillhouse-matiere/test-fixtures`, which publishes its source, not a built
|
|
3
3
|
// declaration): tsconfig.json maps the entry here, so the typing of this package stays on its own
|
|
4
|
-
// files. Only the names these tests import are declared.
|
|
4
|
+
// files. Only the names these tests import are declared. The tests that import them, and what each
|
|
5
|
+
// proves: docs/architecture/tests.md, §3.4 and §5.
|
|
5
6
|
|
|
6
7
|
/** Writes at <repo> the docs/ARCHITECTURE.md of <paquets>: a list of languages (a package each,
|
|
7
8
|
* `paquet-<n>`), or a record of package name to language. */
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
// that is a package, holds one or lies inside one (the declaration gives the testwriter no
|
|
20
20
|
// manifest, and no package is opened to him by it). The nature of the files of a folder is not
|
|
21
21
|
// bounded, as the `data` of a `filegroup(testonly)` and `tests/ui`.
|
|
22
|
+
//
|
|
23
|
+
// What a test reads out of its imports: docs/architecture/tests.md §4.1 and §7.
|
|
22
24
|
import { existsSync, readFileSync, statSync } from 'node:fs';
|
|
23
25
|
import path from 'node:path';
|
|
24
26
|
import { luUneFois } from './lecture-unique.mjs';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// The stop of an agent of a team with an unread message: the hooks SubagentStop and TeammateIdle
|
|
2
|
-
// of the frame's plugin run it (`grillhouse messages-non-lus`), as a consumer of a queue
|
|
3
|
-
//
|
|
4
|
-
// box of an agent while the agent writes its last answer is otherwise read by no one: the agent
|
|
5
|
-
// ends its turn and waits, and the instruction waits with it.
|
|
2
|
+
// of the frame's plugin run it (`grillhouse messages-non-lus`), as a consumer of a queue does not
|
|
3
|
+
// stop with messages it has not acknowledged. Mechanism: greffon.md, §3.2.
|
|
6
4
|
//
|
|
7
5
|
// - The box of an agent is `~/.claude/teams/<équipe>/inboxes/<nom>.json`, an array of entries
|
|
8
6
|
// `{ from, text, summary, timestamp, msg_id, read }`, which Claude Code writes and marks read
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// The progress of a pass
|
|
1
|
+
// The progress of a pass: the variable that names
|
|
2
2
|
// the progress directory of a pass, `GRILLHOUSE_AVANCEMENT`, and the writing of a record, which
|
|
3
3
|
// the reporter of the module of the language writes while it is set (for typescript,
|
|
4
4
|
// scripts/langages/typescript/vitest-config/avancement.reporter.mjs). The
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// The base of a pass: the temporary directory of a run, its own and removed at its end
|
|
2
|
-
//
|
|
3
|
-
//
|
|
1
|
+
// The base of a pass: the temporary directory of a run, its own and removed at its end. A pass
|
|
2
|
+
// killed leaves its base, which the next pass sweeps. Architecture:
|
|
3
|
+
// docs/architecture/machine.md (§5.5, §6 « Le disque »).
|
|
4
4
|
//
|
|
5
5
|
// - A base is a directory `<dans>/grillhouse-<genre>-XXXXXX/`, `<dans>` the temporary directory of
|
|
6
6
|
// whoever opens it (`os.tmpdir()`). It holds its owner (`.grillhouse-base`: the process that
|
|
@@ -24,24 +24,21 @@
|
|
|
24
24
|
// the ticket, scripts/enveloppe/lancer.sh, and `npx grillhouse temporaire <ticket>` the
|
|
25
25
|
// supervisor), kept from one session and one resumption to the next, removed when its ticket is
|
|
26
26
|
// closed (`balayerLesTickets`, which the removal of the finished copies plays,
|
|
27
|
-
// scripts/copies-finies.mjs),
|
|
28
|
-
// retention policy fixed in advance; or a directory
|
|
27
|
+
// scripts/copies-finies.mjs), frozen or not; or a directory
|
|
29
28
|
// (`cacheDeLaRacine`: the cache of a build rooted in the temporary directory), swept once that
|
|
30
29
|
// directory is gone, from the namespace that opened it, or, from the host (the next base of a
|
|
31
30
|
// pass, out of an envelope, where the home is read-only), untouched for 7 days whatever its
|
|
32
|
-
// namespace
|
|
31
|
+
// namespace. What an agent needs to resume lives in its copy or its handover, never in
|
|
33
32
|
// the ticket's temporary directory alone, which holds what is made again.
|
|
34
33
|
// - The caches of compilation never lie in the temporary directory, a disk in memory that the
|
|
35
34
|
// sessions of the machine share: they go under `${XDG_CACHE_HOME:-~/.cache}/grillhouse/<outil>`
|
|
36
|
-
// (`cacheDeCompilation`)
|
|
37
|
-
//
|
|
35
|
+
// (`cacheDeCompilation`); a build rooted in the temporary directory (a project of trial) keeps
|
|
36
|
+
// its outputs there too (`cacheDeLaRacine`).
|
|
38
37
|
// - The base is removed at the end of the pass, green or red (`fermer`), and when the pass is
|
|
39
|
-
// interrupted (SIGINT, SIGTERM, SIGHUP: `retirerALInterruption`)
|
|
40
|
-
// Rust's `tempfile` remove theirs.
|
|
38
|
+
// interrupted (SIGINT, SIGTERM, SIGHUP: `retirerALInterruption`).
|
|
41
39
|
// - The guard of a pass of tests: what its tests left in `t/` (`restes`) fails the pass, named
|
|
42
|
-
// (`ligneDesRestes`)
|
|
43
|
-
//
|
|
44
|
-
// tests (the base configuration of Vitest, the module cargo's `tester` and `verifier`).
|
|
40
|
+
// (`ligneDesRestes`); each module of language plays it in its runner of tests (the base
|
|
41
|
+
// configuration of Vitest, the module cargo's `tester` and `verifier`).
|
|
45
42
|
// - Opening a base first sweeps `<dans>`: every base there whose owner is gone is removed, whatever
|
|
46
43
|
// its genre. A base is judged by its owner's process only when that owner lives in the PID
|
|
47
44
|
// namespace of the sweeper (an envelope has its own, bwrap --unshare-pid, where a number means
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// The CPU pressure of the machine, the witness of rest for every measure of time, which plays at
|
|
2
|
-
// night
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// play again.
|
|
2
|
+
// night: a measure is taken with the CPU at rest, and a failure that depends on a duration under
|
|
3
|
+
// load is played again at rest (« à repasser »), never taken as a red nor as a green.
|
|
4
|
+
// Architecture: docs/architecture/machine.md (§6, « Le groupe »; the cores of a measure of time).
|
|
6
5
|
//
|
|
7
6
|
// - The signal is the kernel's pressure stall information, `/proc/pressure/cpu`, line `some`,
|
|
8
7
|
// field `avg10`: the share of the last ten seconds in which a task waited for a CPU, in %.
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
// activity of the workflow of the machine (src/temporal/places/activites.ts) measures it here, and
|
|
5
5
|
// whether the process of a place still lives; a signal to a process group, and whether the group
|
|
6
6
|
// a sign of life names still runs, which the sessions (scripts/seances.mjs), the circuit and the
|
|
7
|
-
// acts under Temporal (src/temporal/acte.ts) share.
|
|
7
|
+
// acts under Temporal (src/temporal/acte.ts) share. Architecture: docs/architecture/machine.md
|
|
8
|
+
// (§3.1, §5.2).
|
|
8
9
|
import { readFileSync } from 'node:fs';
|
|
9
10
|
import { availableParallelism, freemem, loadavg, totalmem } from 'node:os';
|
|
10
11
|
import { departDe, leMemeVivant, vivant } from './mesure/base-de-passe.mjs';
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
// The
|
|
2
|
-
// (`@node_modules/@roomi-fields/grillhouse/charte.md`)
|
|
3
|
-
//
|
|
1
|
+
// The project's CLAUDE.md imports the common charter from the package installed
|
|
2
|
+
// (`@node_modules/@roomi-fields/grillhouse/charte.md`). Mechanism: installation.md §5.4
|
|
3
|
+
// (packages/grillhouse/docs/architecture/).
|
|
4
4
|
//
|
|
5
|
-
// - A CLAUDE.md that imports
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
// -
|
|
9
|
-
// package installed.
|
|
10
|
-
// - The paragraph of the template that gave the charter by the plugin (« Les règles du cadre : la
|
|
11
|
-
// charte commune, que le greffon du cadre … donne à chaque séance. ») becomes
|
|
12
|
-
// « Les règles du cadre : @node_modules/@roomi-fields/grillhouse/charte.md ».
|
|
13
|
-
// - A CLAUDE.md that names neither receives that line at its end, after a blank line.
|
|
14
|
-
// - A project without CLAUDE.md is not written.
|
|
5
|
+
// - A CLAUDE.md that imports another charter of the frame (`@…grillhouse/charte.md`) is left.
|
|
6
|
+
// - The import of the former copy (`@.claude/grillhouse/charte.md`) becomes the package's, as the
|
|
7
|
+
// template's paragraph « Les règles du cadre : la charte commune, que le greffon… ».
|
|
8
|
+
// - A CLAUDE.md that names neither receives that line at its end; none, nothing written.
|
|
15
9
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
16
10
|
import path from 'node:path';
|
|
17
11
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
// The hooks of Claude Code come from the frame's plugin (mods/grillhouse/hooks/hooks.json)
|
|
2
|
-
//
|
|
1
|
+
// The hooks of Claude Code come from the frame's plugin (mods/grillhouse/hooks/hooks.json), not
|
|
2
|
+
// from the project's settings. Mechanism: installation.md §5.4 (packages/grillhouse/docs/architecture/).
|
|
3
3
|
//
|
|
4
|
-
// - In
|
|
5
|
-
//
|
|
6
|
-
// verrous/ticket-du-sous-agent.mjs, registre.mjs) goes
|
|
7
|
-
//
|
|
8
|
-
// and so do the other keys, in their order.
|
|
9
|
-
// - A project without settings, or whose settings hold none of these hooks, is not written.
|
|
4
|
+
// - In `.claude/settings.json`, each hook running a former session script under
|
|
5
|
+
// `$CLAUDE_PROJECT_DIR/scripts/` (session-start.sh, structure-guard.sh,
|
|
6
|
+
// verrous/ticket-du-sous-agent.mjs, registre.mjs) goes, then each group, event and `hooks` left
|
|
7
|
+
// empty; a hook of the project's own and the other keys stay, in their order.
|
|
10
8
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
11
9
|
import path from 'node:path';
|
|
12
10
|
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
// The frame's plugin comes from the marketplace
|
|
2
|
-
//
|
|
3
|
-
// wrote, goes (`grillhouse maj` then declares roomi-fields and enables `grillhouse@roomi-fields`).
|
|
1
|
+
// The marketplace of the project's own goes: the frame's plugin comes from the marketplace
|
|
2
|
+
// roomi-fields. Mechanism: installation.md §5.4 (packages/grillhouse/docs/architecture/).
|
|
4
3
|
//
|
|
5
|
-
// -
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
// - In `.claude/settings.json` and
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
// `grillhouse@<name>`, leaves `enabledPlugins`. A key left empty goes; the other keys stay, in
|
|
12
|
-
// their order.
|
|
13
|
-
// - A project without them is not written.
|
|
4
|
+
// - `.claude-plugin/marketplace.json` goes when it is the frame's (a name beginning with
|
|
5
|
+
// `grillhouse-`, each plugin `grillhouse` from `./node_modules/@roomi-fields/grillhouse/…`),
|
|
6
|
+
// `.claude-plugin/` with it when empty.
|
|
7
|
+
// - In `.claude/settings.json` and `settings.local.json`, each marketplace named `grillhouse-…`
|
|
8
|
+
// whose source is the project's root leaves `extraKnownMarketplaces`, its plugin
|
|
9
|
+
// `grillhouse@<name>` leaves `enabledPlugins`; a key left empty goes, the others keep their order.
|
|
14
10
|
import { existsSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
15
11
|
import path from 'node:path';
|
|
16
12
|
|
|
@@ -1,36 +1,13 @@
|
|
|
1
|
-
// The frame's copies
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// are what this version replaces, as a codemod of `@turbo/codemod` removes what a version replaces.
|
|
5
|
-
// The list says what to remove: nothing is guessed.
|
|
1
|
+
// The frame's copies placed by the former update (`.claude/grillhouse/fichiers.txt`, SHA-256 in
|
|
2
|
+
// `empreintes.json`) are removed: the package carries the scripts, its plugin the rest. Mechanism:
|
|
3
|
+
// installation.md §5.4 (packages/grillhouse/docs/architecture/).
|
|
6
4
|
//
|
|
7
|
-
// -
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
// `grillhouse init` places it, and stays.
|
|
14
|
-
// - Under a directory the list keeps that is no workspace of the project (scripts/paquets.mjs), a
|
|
15
|
-
// file the former generator of the packages' turbo.json wrote (its first line « // Généré par
|
|
16
|
-
// `…turbo-des-paquets…` ») goes too: it belonged to the former workspace of a copy.
|
|
17
|
-
// - A file whose bytes differ (the project modified it) stays: the migration leaves it to the
|
|
18
|
-
// project (`{ aFaire }`), with the command that removes it, and the update's exit code is
|
|
19
|
-
// non-zero; an npm script that runs it is named with it, since its removal breaks that script.
|
|
20
|
-
// While one stays, the list and the fingerprints stay, so that the next update names it again;
|
|
21
|
-
// once none stays, `.claude/grillhouse/` goes whole (the list, the fingerprints, the version, the
|
|
22
|
-
// former charter). A modified copy of a role 0.24.0 removes stays too, but is named by that
|
|
23
|
-
// migration alone (`deRoleSupprime` of 0.24.0-circuit-simplifie.mjs), once.
|
|
24
|
-
// - Each root npm script that runs a copy removed (`node scripts/<chemin>`, `bash scripts/<chemin>`,
|
|
25
|
-
// its arguments kept) runs its subcommand, `grillhouse <sous-commande>`, by the table of
|
|
26
|
-
// scripts/sous-commandes.mjs; a script that still names a copy removed (no subcommand runs it) is
|
|
27
|
-
// named, not rewritten.
|
|
28
|
-
// - A dependency of the project's root that a copy removed imported, that the package declares in
|
|
29
|
-
// its own `dependencies`, that the template of a project does not declare, and that no source of
|
|
30
|
-
// the project still imports, is named, not removed: the project decides. API Extractor is named
|
|
31
|
-
// by the migration of 0.24.2 alone (`DU_PAQUET` of 0.24.2-api-extractor-du-paquet.mjs), once.
|
|
32
|
-
// - A project without `fichiers.txt` and `empreintes.json` is not written: a second pass finds
|
|
33
|
-
// neither, or finds only the copies left to the project, which it names again.
|
|
5
|
+
// - A file the list keeps goes when its bytes have the recorded SHA-256 (or a former form,
|
|
6
|
+
// `formesAnterieures`), its emptied directory with it; a modified file stays, `{ aFaire }`
|
|
7
|
+
// with the command that removes it, and the list stays until none is left.
|
|
8
|
+
// - A root npm script running a removed copy (`node scripts/<chemin>`) runs `grillhouse
|
|
9
|
+
// <sous-commande>` (scripts/sous-commandes.mjs); one with no subcommand is named, not rewritten.
|
|
10
|
+
// - A dependency only a removed copy imported is named, not removed (API Extractor: 0.24.2).
|
|
34
11
|
import { createHash } from 'node:crypto';
|
|
35
12
|
import { existsSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
36
13
|
import path from 'node:path';
|