@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
package/scripts/nuit.sh
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# The night
|
|
2
|
+
# The night pass (packages/grillhouse/docs/architecture/entree.md §3.1 « Passe de nuit », §5.3):
|
|
3
|
+
# once a day, the full pass played for real, then what the day never plays: the night
|
|
3
4
|
# tests and the measures of time (the time budget benches and the time witnesses). During the day `npm run verifier` (the integration's) plays
|
|
4
5
|
# what the changes since the last green touch (scripts/integration/integrer.mjs,
|
|
5
6
|
# scripts/dernier-vert.mjs); the module of the project's language plays each step
|
|
6
|
-
# (scripts/jointure.d.ts).
|
|
7
|
+
# (scripts/jointure.d.ts). The paragraphs below are the details only this script knows (marks,
|
|
8
|
+
# files, bounds, the text of a night ticket).
|
|
7
9
|
#
|
|
8
10
|
# npx grillhouse nuit from the root of the project, which runs it alone
|
|
9
11
|
# (src/temporal/nuits/commande.ts): the workflow of the nights of the
|
|
@@ -55,8 +57,8 @@
|
|
|
55
57
|
# a project that installs the frame, even with a copy of the frame's package.json under
|
|
56
58
|
# packages/grillhouse/, builds nothing. A failed build turns the night red, and nothing runs.
|
|
57
59
|
# - The night tests: after the full pass, the night tests, then the measures of time alone (the
|
|
58
|
-
# time budget benches and the time witnesses), which `npm test` and the integration leave out
|
|
59
|
-
#
|
|
60
|
+
# time budget benches and the time witnesses), which `npm test` and the integration leave out,
|
|
61
|
+
# played by the command `tests-de-nuit` of the module of the copy's language
|
|
60
62
|
# (the module typescript's: the files `*.nuit.test.*` and `*.nuit.spec.*`, then the files
|
|
61
63
|
# `*.budget.test.*`, `*.budget.spec.*` and those that import `mesurerAuRepos`, one at a time, by
|
|
62
64
|
# Vitest; the module python's, `*_nuit_test.py`; the module cargo's, the test targets
|
|
@@ -103,7 +105,7 @@
|
|
|
103
105
|
# why and the place it holds, a kept copy whose ticket is closed losing what the tools of its
|
|
104
106
|
# languages wrote there. The night names its own copy to the removal, its steps played: the copy
|
|
105
107
|
# stays, and loses what the tools of its languages wrote there (`target`, `.turbo`), its
|
|
106
|
-
# `node_modules` kept, which its next preparation would remove anyway
|
|
108
|
+
# `node_modules` kept, which its next preparation would remove anyway. The
|
|
107
109
|
# removal never changes the night's verdict; the end of each circuit runs it too
|
|
108
110
|
# (scripts/circuit.mjs), the night's copy untouched.
|
|
109
111
|
# - It takes no lock of the integration or of the queue (scripts/integration/file.mjs): an
|
package/scripts/outil.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// The installation of the published version that leads the frame's repository
|
|
3
|
-
// (scripts/aiguillage.mjs, the key `grillhouse.outil`, the cache, the switch).
|
|
3
|
+
// (scripts/aiguillage.mjs, the key `grillhouse.outil`, the cache, the switch). The mechanism is
|
|
4
|
+
// installation.md §5.5 (packages/grillhouse/docs/architecture/).
|
|
4
5
|
//
|
|
5
6
|
// npx grillhouse outil installs the version the key names, nothing when it is there
|
|
6
7
|
// npx grillhouse outil <x.y.z> writes the key, then installs that version
|
package/scripts/outils-cles.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// The reading of the `grillhouse.outils` key of a package.json, the tools of the project
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// envelope (scripts/enveloppe/enveloppe.mjs) mounts each path read-only and passes each variable to
|
|
1
|
+
// The reading of the `grillhouse.outils` key of a package.json, the tools of the project:
|
|
2
|
+
// `{ "<VARIABLE>": "<chemin>" }`, each path absolute or under `~`. The envelope
|
|
3
|
+
// (scripts/enveloppe/enveloppe.mjs) mounts each path read-only and passes each variable to
|
|
5
4
|
// the session; the circuit's passes (scripts/circuit.mjs), `npm run verifier`
|
|
6
5
|
// (bin/grillhouse.mjs) and the night (scripts/nuit.sh) play with the same variables, so that every
|
|
7
|
-
// one of them sees the same tool, whatever its launcher's environment.
|
|
6
|
+
// one of them sees the same tool, whatever its launcher's environment. Architecture:
|
|
7
|
+
// docs/architecture/machine.md (§1, §5.5).
|
|
8
8
|
//
|
|
9
9
|
// - The key is absent, null or an object; each name is a variable's (`[A-Za-z_][A-Za-z0-9_]*`),
|
|
10
10
|
// each value a string, a path absolute or under `~` (the home), that exists. Every fault is named
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// `~/.local/share/keyrings`, the keyrings of the machine's credentials. A path that is a link is
|
|
19
19
|
// judged by its target too, which the envelope mounts with it.
|
|
20
20
|
// - A tool is a string path (unhashed) or `{ "chemin": "<chemin>", "contenu": true }`: hashed by
|
|
21
|
-
// content
|
|
21
|
+
// content. Its fingerprint
|
|
22
22
|
// (`empreinteDeLOutil`, `empreintesDe`) is given to every pass as `<VARIABLE>_EMPREINTE`, which
|
|
23
23
|
// the root turbo.json's `globalEnv` names so that Turborepo hashes its value. Any other object
|
|
24
24
|
// form is refused, its key named; a hashed tool absent, unreadable or special is refused too.
|
package/scripts/paquet-npm.mjs
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// the entry by which it enters the graph of Turborepo, which reads a `package.json` beside each
|
|
3
3
|
// project that is no JavaScript (node_modules/turbo/docs/guides/multi-language.mdx:191), as Turborepo's
|
|
4
4
|
// own example of Rust writes one beside the crate. `grillhouse paquet` writes it with the package
|
|
5
|
-
// (./paquet.mjs), and the migration of
|
|
6
|
-
// (./migrations/0.31.0-paquets-dans-le-graphe.mjs).
|
|
5
|
+
// (./paquet.mjs), and the migration of the packages of an existing project
|
|
6
|
+
// (./migrations/0.31.0-paquets-dans-le-graphe.mjs). The mechanism is installation.md §3.1
|
|
7
|
+
// (« Création d'un paquet »), in packages/grillhouse/docs/architecture/.
|
|
7
8
|
//
|
|
8
9
|
// - Its name is the manifest's: the `name` of the `[package]` of a Cargo.toml, of the `[project]`
|
|
9
10
|
// of a pyproject.toml.
|
package/scripts/paquet.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// The creation of a package, out of the circuit: the third of the four times of a package's birth
|
|
3
3
|
// (the common charter, « La naissance d'un paquet »: the grill, the writing of its row and its
|
|
4
|
-
// documents, this command, then a ticket of code), as the generators of Nx
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
// does not pass by the circuit, which works on a package that exists.
|
|
4
|
+
// documents, this command, then a ticket of code), as the generators of Nx and `cargo new --lib`
|
|
5
|
+
// write one. A skeleton has neither behaviour nor test. The mechanism is installation.md §3.1
|
|
6
|
+
// (« Création d'un paquet »), tests.md §5.6, in packages/grillhouse/docs/architecture/.
|
|
8
7
|
//
|
|
9
8
|
// npx grillhouse paquet <chemin> from the root of the project, <chemin> from it
|
|
10
9
|
//
|
package/scripts/paquets.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// The types of ./paquets.mjs as the entry `@roomi-fields/grillhouse/paquets` publishes it, for a
|
|
2
|
-
// project's guard that leaves out the packages out of the frame.
|
|
2
|
+
// project's guard that leaves out the packages out of the frame (docs/architecture/tests.md §3.4).
|
|
3
3
|
|
|
4
4
|
/** The code of `src/` (the root's, or a package's under `packages/`), as a pattern of a path from
|
|
5
5
|
* the root: what a project publishes, out of its tests. */
|
package/scripts/paquets.mjs
CHANGED
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
//
|
|
20
20
|
// A project's guard imports `horsCadre` by the package's entry `@roomi-fields/grillhouse/paquets`,
|
|
21
21
|
// its types in ./paquets.d.ts (docs/ARCHITECTURE.md, the package's named entries).
|
|
22
|
+
//
|
|
23
|
+
// The packages are the nodes of the graph of the tasks: docs/architecture/tests.md §2.1 and §3.1.
|
|
22
24
|
import { spawnSync } from 'node:child_process';
|
|
23
25
|
import { existsSync, globSync, readdirSync, readFileSync } from 'node:fs';
|
|
24
26
|
import path from 'node:path';
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
// A pass on the machine:
|
|
2
|
-
// `prendreUnePart`), waiting
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
// (GRILLHOUSE_TRAVAILLEURS). A pass takes no place of the machine: a place is a session of an
|
|
8
|
-
// agent or a circuit.
|
|
1
|
+
// A pass on the machine: it takes its part of the budget (scripts/places-de-la-machine.mjs
|
|
2
|
+
// `prendreUnePart`), waiting when the parts held leave too little, and plays held to that part
|
|
3
|
+
// by a control group of its own (`systemd-run --user --scope`) whose CPU weight and memory bound
|
|
4
|
+
// come from the part, with no hard CPU ceiling. Its tools receive the cores of its part
|
|
5
|
+
// (GRILLHOUSE_TRAVAILLEURS). A pass takes no place. Architecture:
|
|
6
|
+
// docs/architecture/machine.md (§3.1, §5.1, §6).
|
|
9
7
|
//
|
|
10
8
|
// - A pass out of the envelope of an agent is held to its part: the heavy pass of a circuit (its
|
|
11
9
|
// command, launched by the circuit), `npm run verifier`, a targeted `npm test`, the CI on a
|
|
12
|
-
// machine of ours, the night. The commands an agent launches in its envelope take no part
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
// tenue ».
|
|
10
|
+
// machine of ours, the night. The commands an agent launches in its envelope take no part and
|
|
11
|
+
// play without a group; where the system gives no group (no manager of the user), the pass
|
|
12
|
+
// plays without one too; each says it once, « joue sans part tenue ».
|
|
16
13
|
// - A heavy pass keeps what it consumes (scripts/consommation-des-passes.mjs): a pass that is the
|
|
17
14
|
// process itself (`npm run verifier`) enters its group by `StartTransientUnit` of the manager
|
|
18
15
|
// of the user, the weight and the bound of its part among its properties; a pass the circuit
|
|
@@ -1,61 +1,44 @@
|
|
|
1
|
-
// The places of the machine
|
|
2
|
-
// session or a
|
|
3
|
-
//
|
|
4
|
-
// Each session of an agent (testwriter, developer, reviewer…) takes a place at its start and gives
|
|
5
|
-
// it back at its end; a circuit that waits for a question, or between two sessions, holds none.
|
|
6
|
-
// A pass takes no place: it takes its part of the budget of the machine (below), which alone
|
|
7
|
-
// bounds it. A place is a session of an agent or a circuit; a part is a pass. Witness: 2026-11-02,
|
|
8
|
-
// load 39 on 12 cores with five circuits at once (grillhouse-9kq).
|
|
1
|
+
// The places and the parts of the machine, taken by a synchronous caller: a place is held by a
|
|
2
|
+
// session of an agent or a circuit, a part by a pass. Architecture: docs/architecture/machine.md
|
|
3
|
+
// (§3.1, §5.1, §5.2, §5.4).
|
|
9
4
|
//
|
|
10
|
-
// - The places live on the Temporal server, in the
|
|
11
|
-
// (src/temporal/places/deroule.ts), which grants them by the rule of
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
5
|
+
// - The places live on the Temporal server, in the workflow of the machine
|
|
6
|
+
// (src/temporal/places/deroule.ts), which grants them by the rule of ./regles-des-places.mjs
|
|
7
|
+
// and frees the place of a process gone; this module reads and takes them by
|
|
8
|
+
// ./places-du-serveur.mjs, in a process of its own. A session takes a place at its start and
|
|
9
|
+
// gives it back at its end.
|
|
15
10
|
// - The server is required on the workstation: one that does not answer stops the taking, named.
|
|
16
|
-
// In the CI (CI set) no place is taken. A trial machine (GRILLHOUSE_PARTS_DE_LA_MACHINE
|
|
17
|
-
//
|
|
18
|
-
// names, and none without it, so that no test takes a place of the user's machine.
|
|
11
|
+
// In the CI (CI set) no place is taken. A trial machine (GRILLHOUSE_PARTS_DE_LA_MACHINE) takes
|
|
12
|
+
// its places on the server GRILLHOUSE_PLACES_D_ESSAI names, and none without it.
|
|
19
13
|
// - A session that holds a place carries its mark to its children (GRILLHOUSE_PLACE_TENUE). In
|
|
20
14
|
// the envelope of an agent (GRILLHOUSE_ENVELOPPE set, ./enveloppe/paquets-du-plan.mjs) no place
|
|
21
|
-
// and no part is taken: the
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
// GRILLHOUSE_PLACES of `~/.config/grillhouse/machine.env`, 3 without it), which the workflow
|
|
26
|
-
// reads again at each judgement; two starts are spaced by ESPACEMENT_MS
|
|
27
|
-
// (GRILLHOUSE_ESPACEMENT_MS names another, in ms), which the workflow reads when it starts.
|
|
15
|
+
// and no part is taken: the envelope passes on the mark of the session's place.
|
|
16
|
+
// - The ceiling of the places is `plafondDe` of ./plafond-de-la-machine.mjs (3 without a
|
|
17
|
+
// setting), read again at each judgement; two starts are spaced by ESPACEMENT_MS
|
|
18
|
+
// (GRILLHOUSE_ESPACEMENT_MS names another, in ms), read when the workflow starts.
|
|
28
19
|
// - A wait says its reason (place, rank, load, memory or spacing) when it begins and every 30 s,
|
|
29
|
-
// and is bounded
|
|
30
|
-
// withdrawn.
|
|
31
|
-
//
|
|
32
|
-
//
|
|
33
|
-
//
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
//
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
-
//
|
|
41
|
-
//
|
|
42
|
-
//
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
// - A part holds precise threads (`fils` of its file): the passes choose them on the topology of the
|
|
52
|
-
// system (./coeurs-dedies.mjs `choisirLesCoeurs`), none held by another. A measure of time
|
|
53
|
-
// (`mesure`) takes dedicated cores, physical cores whole (its sibling threads with them), the
|
|
54
|
-
// number its project declares (`grillhouse.mesure`) or the default part of the budget, and the
|
|
55
|
-
// other passes go on on the cores left; it waits for its cores, keeping its rank, then for the
|
|
56
|
-
// rest of them (their load, out of it, under 10 %), within the bound of the wait.
|
|
57
|
-
// - A pass that holds a part carries its mark to its children (GRILLHOUSE_PART_TENUE): a pass they
|
|
58
|
-
// play takes no second part, and the workers of its tools are the cores of its part
|
|
20
|
+
// and is bounded by GRILLHOUSE_ATTENTE_MACHINE_MS: at the bound, « à repasser » (75), the
|
|
21
|
+
// request withdrawn. It keeps the rank of its arrival (`prendreUnRang`), kept from one session
|
|
22
|
+
// to the next.
|
|
23
|
+
// - The workers of the tests of a session are `travailleursDe`: max(1, cores ÷ places), passed
|
|
24
|
+
// to the tool of each language (GRILLHOUSE_TRAVAILLEURS).
|
|
25
|
+
// - A part is the share of the budget (./plafond-de-la-machine.mjs) that every pass takes: the
|
|
26
|
+
// heavy pass of a circuit, `npm run verifier`, a targeted `npm test`, the CI on a machine of
|
|
27
|
+
// ours, the night. A pass starts when its part fits in what the parts held leave of the budget
|
|
28
|
+
// and the machine admits it (`admissionDePart` of ./regles-des-places.mjs); else it waits, says
|
|
29
|
+
// what for when it begins and every 30 s, keeps its rank (the measure of the frame before a
|
|
30
|
+
// project's, then the order of arrival) and stops at « à repasser » (75) at the bound.
|
|
31
|
+
// - The parts are one file per pass in `${XDG_STATE_HOME:-~/.local/state}/grillhouse/parts`
|
|
32
|
+
// (GRILLHOUSE_PARTS_DE_LA_MACHINE names another): the part held or waited for, its project,
|
|
33
|
+
// ticket, kind, rank and progress directory, which the board reads (`lireLesParts`). A pass
|
|
34
|
+
// whose process is gone frees its part.
|
|
35
|
+
// - A part holds precise threads (`fils` of its file), chosen on the topology by
|
|
36
|
+
// ./coeurs-dedies.mjs `choisirLesCoeurs`, none held by another. A measure of time (`mesure`)
|
|
37
|
+
// takes physical cores whole, the number its project declares (`grillhouse.mesure`) or the
|
|
38
|
+
// default part of the budget; it waits for its cores, then for the load of the others to be
|
|
39
|
+
// under 10 %, within the bound of the wait.
|
|
40
|
+
// - A pass that holds a part carries its mark to its children (GRILLHOUSE_PART_TENUE): a pass
|
|
41
|
+
// they play takes no second part, and the workers of its tools are the cores of its part
|
|
59
42
|
// (GRILLHOUSE_TRAVAILLEURS).
|
|
60
43
|
import { randomUUID } from 'node:crypto';
|
|
61
44
|
import { spawnSync } from 'node:child_process';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
// The places of the machine
|
|
2
|
-
// that a synchronous caller (scripts/places-de-la-machine.mjs)
|
|
3
|
-
//
|
|
4
|
-
// (src/temporal/places/client.ts) speaks to it.
|
|
1
|
+
// The synchronous bridge to the places of the machine: it reads and takes them on the Temporal
|
|
2
|
+
// server in a process of its own, so that a synchronous caller (scripts/places-de-la-machine.mjs)
|
|
3
|
+
// waits for them as for a lock. The workflow (src/temporal/places/deroule.ts) holds them, its
|
|
4
|
+
// client (src/temporal/places/client.ts) speaks to it. Architecture:
|
|
5
|
+
// docs/architecture/machine.md (§3.1, §5.1).
|
|
5
6
|
//
|
|
6
7
|
// node places-du-serveur.mjs rang
|
|
7
8
|
// node places-du-serveur.mjs prendre <demande>
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
// The settings of the poste for the machine
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// the
|
|
5
|
-
//
|
|
1
|
+
// The settings of the poste for the machine and the budget they give, read again at each
|
|
2
|
+
// judgement so that a setting changed counts without restarting anything: the workflow of the
|
|
3
|
+
// machine reads the ceiling of the places by an activity (src/temporal/places/activites.ts), the
|
|
4
|
+
// board and the number of workers of the tests by the same function. Architecture:
|
|
5
|
+
// docs/architecture/machine.md (§3.1, §4.1).
|
|
6
6
|
//
|
|
7
|
+
// The ceiling of the places (`plafondDe`; it bounds the places only, not the parts):
|
|
7
8
|
// - The file of the poste `machine.env`, under the frame's directory of configuration
|
|
8
|
-
// (`~/.config/grillhouse/`, scripts/fichier-du-poste.mjs), holds `GRILLHOUSE_PLACES=<n
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
// a test) is read instead of the file. Without either, PLAFOND_PAR_DEFAUT, 3.
|
|
9
|
+
// (`~/.config/grillhouse/`, scripts/fichier-du-poste.mjs), holds `GRILLHOUSE_PLACES=<n>`.
|
|
10
|
+
// - The environment wins: GRILLHOUSE_PLACES set (a trial machine, a test) is read instead of the
|
|
11
|
+
// file. Without either, PLAFOND_PAR_DEFAUT, 3.
|
|
12
12
|
// - A value that is not a positive integer is refused by its name and its place.
|
|
13
13
|
//
|
|
14
14
|
// The budget of the machine and the part of a pass (functions with the hardware and the settings
|
|
15
|
-
// as input, nothing read from the machine)
|
|
16
|
-
// and Bazel bounds `--local_resources`:
|
|
15
|
+
// as input, nothing read from the machine):
|
|
17
16
|
// - The reserve of the user, the share of the machine no pass takes: GRILLHOUSE_RESERVE_COEURS
|
|
18
|
-
// (by default min(4, max(0, cores − 4)): 0 on 4 cores or fewer, 2 on 6, 4 from 8) and
|
|
19
|
-
//
|
|
17
|
+
// (by default min(4, max(0, cores − 4)): 0 on 4 cores or fewer, 2 on 6, 4 from 8) and
|
|
18
|
+
// GRILLHOUSE_RESERVE_MEMOIRE_GO (4 GB), the environment first, then `machine.env`; zero is
|
|
19
|
+
// admitted, a value that is not a whole number ≥ 0 is refused by its name.
|
|
20
20
|
// - The budget is the cores and the memory of the machine less the reserve; a reserve that leaves
|
|
21
21
|
// no core or no memory is refused by its name.
|
|
22
|
-
// - The part of a pass is its cores and its memory
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
// part larger than the budget is the budget (one pass at a time)
|
|
22
|
+
// - The part of a pass (`partDe`) is its cores and its memory, within the budget and one core at
|
|
23
|
+
// least. Its cores are those its project declares (`grillhouse.part` of its `package.json`),
|
|
24
|
+
// else COEURS_PAR_DEFAUT; a direct pass has COEURS_DU_DIRECT, fixed. Its memory is the declared
|
|
25
|
+
// one, else the largest peak the project measured plus a quarter, never under a floor (the
|
|
26
|
+
// share of the budget that max(4, a third of its cores) cores hold, which it is without a
|
|
27
|
+
// measure). A part larger than the budget is the budget (one pass at a time).
|
|
28
28
|
import { readFileSync } from 'node:fs';
|
|
29
29
|
import { cpus, totalmem } from 'node:os';
|
|
30
30
|
import path from 'node:path';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// The key `grillhouse.poussee`
|
|
1
|
+
// The refusal of the key `grillhouse.poussee` (packages/grillhouse/docs/architecture/entree.md
|
|
2
|
+
// §3.3, « La file et main »; §5.1): the frame carries no such key, one branch, main, receives every lot (the
|
|
2
3
|
// trunk-based development of Google and Chromium). This one reading serves the queue
|
|
3
4
|
// (scripts/integration/file.mjs), the night (scripts/nuit.sh) and the pre-push guard
|
|
4
5
|
// (scripts/branche-de-nuit.mjs): whatever the value of the key (null, an object, a string), the
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// commented out and keeps the prefix in its database, so the frame writes the key itself, by one
|
|
5
5
|
// function: the preparation of a new project (./preparation.mjs) and the update of any project
|
|
6
6
|
// (`mettreAJour`, which writes the key when no active one exists, the value being the store's).
|
|
7
|
+
// The mechanism is installation.md §5.1 and §5.2 (packages/grillhouse/docs/architecture/).
|
|
7
8
|
import { readFileSync, writeFileSync } from 'node:fs';
|
|
8
9
|
import path from 'node:path';
|
|
9
10
|
import { pathToFileURL } from 'node:url';
|
package/scripts/preparation.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// The preparation of a project for its first session, which `grillhouse init` runs on the project
|
|
2
|
-
// it creates (scripts/init.mjs). Idempotent: a second preparation changes nothing.
|
|
2
|
+
// it creates (scripts/init.mjs). Idempotent: a second preparation changes nothing. The mechanism
|
|
3
|
+
// is installation.md §5.1 (packages/grillhouse/docs/architecture/).
|
|
3
4
|
//
|
|
4
5
|
// - git: the directory becomes a repository when it is none.
|
|
5
6
|
// - Beads, the ticket store the skills work from: the tool (`bd`, installed by
|
package/scripts/recommencer.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// `grillhouse circuit <ticket> --recommencer
|
|
1
|
+
// `grillhouse circuit <ticket> --recommencer` (circuit.md §5.4): the removal of what a ticket's circuit left, so that
|
|
2
2
|
// a fresh launch starts from the testwriter in a fresh copy. It resets the copy, not Temporal: the
|
|
3
3
|
// copy (whatever work it carries, the gesture being asked for), its branch, its sheets, its journal
|
|
4
4
|
// and its working directory go; the ticket, its description, its plan and its comments are Beads'
|
|
5
5
|
// and stay. The finished workflow stays on the server, which the queue, counting only the live
|
|
6
|
-
// circuits, no more holds the ticket back for (
|
|
6
|
+
// circuits, no more holds the ticket back for (circuit.md §5.4).
|
|
7
7
|
import { spawnSync } from 'node:child_process';
|
|
8
8
|
import { existsSync, rmSync } from 'node:fs';
|
|
9
9
|
import path from 'node:path';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// of Jest and insta, the review of the goldens of Chromium) shows the difference of each file:
|
|
3
3
|
// measured by git between the base of the lot and the lot kept (`git diff --numstat`), summarised
|
|
4
4
|
// by name of field for a JSON file, so that the reviewer judges the change of a reference on the
|
|
5
|
-
// tree, not on what the agent declares.
|
|
5
|
+
// tree, not on what the agent declares (docs/architecture/circuit.md §5.3).
|
|
6
6
|
import { spawnSync } from 'node:child_process';
|
|
7
7
|
import { couvertPar } from './engendres.mjs';
|
|
8
8
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
// The registry of test results, by branch, of a repository
|
|
1
|
+
// The registry of test results, by branch, of a repository (a state of the tests-and-languages
|
|
2
|
+
// document, which entree.md §4.1 names beside the last green; the queue's final pass writes it,
|
|
3
|
+
// §5.1): what the last green pass of
|
|
2
4
|
// `npm run verifier` (scripts/langages/typescript/verifier.mjs) holds, test by test. As Chromium's
|
|
3
5
|
// ResultDB and Mozilla's Treeherder keep the result of each test by version of the main branch, and
|
|
4
6
|
// as `.pytest_cache` keeps the last run's tests, the proof of the red reads here which tests main
|
package/scripts/registre.mjs
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// The register of finished agents: one JSON line per agent that ends, written by a hook of the
|
|
3
3
|
// frame's plugin (`grillhouse registre`: SubagentStop for a sub-agent, SessionEnd for a session, a
|
|
4
|
-
// role agent launched in a shell included).
|
|
5
|
-
//
|
|
6
|
-
// (scripts/circuit.mjs) writes a line at the end of each step it leads itself
|
|
4
|
+
// role agent launched in a shell included). Mechanism: greffon.md, §5.5.
|
|
5
|
+
// An agent resumed by a message has one line per stop; the board reads an agent's latest line. The
|
|
6
|
+
// circuit of a ticket (scripts/circuit.mjs) writes a line at the end of each step it leads itself
|
|
7
7
|
// (`ligneDEtape`: its role `circuit`, its step, one turn, no tokens). The workflow of the nights
|
|
8
8
|
// (src/temporal/nuits/) writes a line for each night it skips (`ligneDeNuit`: its role `nuit`, no
|
|
9
|
-
// ticket, no turn, the reason, the top and the reference compared), which the board counts
|
|
10
|
-
// the projects the register names are those whose night it plays.
|
|
9
|
+
// ticket, no turn, the reason, the top and the reference compared), which the board counts
|
|
10
|
+
// nowhere; the projects the register names are those whose night it plays.
|
|
11
11
|
//
|
|
12
12
|
// - The line: the project (the main tree of the directory the session opened in, which the hook
|
|
13
13
|
// reads in CLAUDE_PROJECT_DIR, else in its input's `cwd`), the agent, its ticket (« TON TICKET : »),
|
|
14
|
-
// its role,
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
// the agent's transcript; the agent declares nothing.
|
|
14
|
+
// its role, its start and end, its working time and the turns it sums (start and end in
|
|
15
|
+
// milliseconds, the waits for a message left out), its tokens, its cache reads and its cost. All
|
|
16
|
+
// of it is read from the agent's transcript; the agent declares nothing.
|
|
18
17
|
// - The cost is the total the session writes, as ccusage keeps it; without one, or with a total of
|
|
19
18
|
// 0 for tokens spent (a sub-agent's transcript holds none), it is the usage of each model at its
|
|
20
19
|
// tariff (`TARIFS`), as Claude Code reckons it. A model without a tariff that spent tokens leaves
|
|
@@ -22,20 +21,19 @@
|
|
|
22
21
|
// - The register is `~/.claude/grillhouse/registre.jsonl` (GRILLHOUSE_REGISTRE replaces it): the
|
|
23
22
|
// envelope of a role agent leaves it writable.
|
|
24
23
|
// - A hook never stops the session, and never waits for a transcript: it hands the fields of its
|
|
25
|
-
// input that the line reads to a detached process (`--ecrire`) and ends at once,
|
|
26
|
-
//
|
|
27
|
-
//
|
|
24
|
+
// input that the line reads to a detached process (`--ecrire`) and ends at once, within Claude
|
|
25
|
+
// Code's hook time limit. The detached process reads the transcript in chunks (`lireFichier` in
|
|
26
|
+
// tableau.mjs), never whole; a transcript it cannot read writes nothing.
|
|
28
27
|
// - One stop has one line: the write holds the register's lock (`prendreVerrou`, judged by the
|
|
29
28
|
// lock's age, since a role agent's envelope and the outside do not share process numbers),
|
|
30
29
|
// and skips a line whose agent and end the register already holds. The hook and
|
|
31
30
|
// `--rattraper` write the same way.
|
|
32
31
|
// - `npx grillhouse registre --copie <copie>` writes the lines of the sessions of an agent's copy
|
|
33
32
|
// the register does not hold yet, whatever their age: the launcher (scripts/enveloppe/lancer.sh)
|
|
34
|
-
// runs it once the envelope has ended, outside it
|
|
35
|
-
// end hook alone.
|
|
33
|
+
// runs it once the envelope has ended, outside it.
|
|
36
34
|
// - `npx grillhouse registre --rattraper` writes the lines of the project's finished agents the
|
|
37
|
-
// register does not hold yet
|
|
38
|
-
//
|
|
35
|
+
// register does not hold yet, read from their transcripts (the project's sessions and their
|
|
36
|
+
// sub-agents, the agents' copies). A transcript
|
|
39
37
|
// that the board shows running (`tourne` in tableau.mjs: moved in the last 2 minutes, or, for a
|
|
40
38
|
// sub-agent, its last tool call awaiting its answer within 30 minutes) waits for its hook.
|
|
41
39
|
import { execFileSync, spawn } from 'node:child_process';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
// The rules of the places of the machine, with no input nor output: whether a start is admitted
|
|
2
|
-
// at a load and a free memory
|
|
3
|
-
// workflow of the machine (src/temporal/places
|
|
4
|
-
//
|
|
5
|
-
// scripts/
|
|
6
|
-
// reserves (`reserverDesCircuits`). The workflow bundles this module, which imports nothing. What
|
|
7
|
-
// the machine gives, its load and its memory, is measured by scripts/mesure-de-la-machine.mjs.
|
|
2
|
+
// at a load and a free memory (the load under the cores, MEMOIRE_MIN free), and why a taking does
|
|
3
|
+
// not pass now. The workflow of the machine (src/temporal/places/) decides by them and bundles
|
|
4
|
+
// this module, which imports nothing; the load and the memory come from
|
|
5
|
+
// scripts/mesure-de-la-machine.mjs. Architecture: docs/architecture/machine.md (§3.1, §5.2).
|
|
8
6
|
|
|
9
7
|
/** The memory a start wants free, in bytes: 4 GB. */
|
|
10
8
|
export const MEMOIRE_MIN = 4 * 1024 ** 3;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// The fallback of the night
|
|
1
|
+
// The fallback of the night (packages/grillhouse/docs/architecture/entree.md §3.1 « Repli de la
|
|
2
|
+
// nuit », §5.3 « Les deux parts »): the night of PC3 (scripts/nuit.sh) reads, by `gh`, the jobs
|
|
2
3
|
// of the day's Nuit flow, and decides tranche by tranche what PC3 plays in place of PC2, as a queue
|
|
3
4
|
// of agents falls back on another capacity (Buildkite) when no agent takes the job in time.
|
|
4
5
|
//
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// The answers a circuit accepts from the supervisor
|
|
1
|
+
// The answers a circuit accepts from the supervisor (circuit.md §5.4, « Un arrêt et sa réponse »),
|
|
2
|
+
// by the status of its workflow, with no input
|
|
2
3
|
// nor output: the one rule the client (src/temporal/circuit/client.ts: its refusals and the
|
|
3
4
|
// circuits it reads), the opening, the wait, the board and the line of a stop name; and the
|
|
4
5
|
// answer `--mecanique`, which turns the sort of a ticket stopped on the testwriter or on the proof
|
|
@@ -44,8 +45,8 @@ export function lesReponses(ticket, statut, ecrit) {
|
|
|
44
45
|
* The hour of a deferral (`--reporter <heure>`): a lone hour (`H:MM` or `HH:MM`, 0-23 and 00-59)
|
|
45
46
|
* aims at its next occurrence in the machine's local time, today when strictly after <maintenant>
|
|
46
47
|
* (to the second), else tomorrow, and is handed to `bd update --defer` as `AAAA-MM-JJTHH:MM:00`,
|
|
47
|
-
* the form bd reads as that wall time (bd
|
|
48
|
-
* the day taken for the hour); any other form goes to bd as written. `quand` is the phrase of the texts (« reportée <quand> »).
|
|
48
|
+
* the form bd reads as that wall time (bd reads a space-separated `AAAA-MM-JJ HH:MM` with the
|
|
49
|
+
* month and the day taken for the hour); any other form goes to bd as written. `quand` is the phrase of the texts (« reportée <quand> »).
|
|
49
50
|
* @param {string} heure
|
|
50
51
|
* @param {Date} maintenant
|
|
51
52
|
* @returns {{ defer: string, quand: string }}
|
package/scripts/reprise.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// The resumption of the circuit at the step that carries a red
|
|
1
|
+
// The resumption of the circuit at the step that carries a red (circuit.md §5.4 and §5.5, « renvoi
|
|
2
|
+
// à l'auteur du code »), with no input nor output (as
|
|
2
3
|
// scripts/transitions.mjs): the attribution of a red to the step that carries it and the step where
|
|
3
4
|
// `--depuis` resumes. Mature model: « Re-run failed jobs » of GitHub Actions (the red job and what
|
|
4
5
|
// depends on it replay). The fingerprint of a step, which hashes with `node:crypto`, is in
|
|
@@ -18,7 +19,7 @@ const etatDe = n => SUITE.find(e => e.numero === n).etat;
|
|
|
18
19
|
* test file of the lot (no guard) and a file of code are the developpeur's. A red
|
|
19
20
|
* that names no file but lies in a package of the plan (a red task: lint, format check, typing,
|
|
20
21
|
* build) is the developpeur's, no file named, as a red job of a CI goes back to its author (the
|
|
21
|
-
* owner's decision
|
|
22
|
+
* the owner's decision); one out of the plan, or a file nobody wrote, is never
|
|
22
23
|
* attributed (`etape` null, its `motif` said): it goes up.
|
|
23
24
|
*/
|
|
24
25
|
export function attribuerLeRouge({ lieux, portes }) {
|