@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/resultats.mjs
CHANGED
|
@@ -1,122 +1,102 @@
|
|
|
1
|
-
// The formats of the results the circuit decides on, in one module
|
|
2
|
-
//
|
|
3
|
-
//
|
|
1
|
+
// The formats of the results the circuit decides on, in one module that the circuit, the guards
|
|
2
|
+
// and the tests read; as Bazel's Build Event Protocol and the JUnit reports carry the outcome of a
|
|
3
|
+
// build, no reader reads an output meant for the human (circuit.md §4.4, the sheet of a role).
|
|
4
4
|
//
|
|
5
5
|
// npx grillhouse resultats --schema <rôle> prints the JSON schema of a role's sheet
|
|
6
6
|
//
|
|
7
7
|
// - The sheet of the end of a session (« la fiche ») of the explorateur, the questionneur, the
|
|
8
|
-
// testwriter, the developpeur and the reviewer: the schema of each role (FICHES), which the
|
|
9
|
-
// (`claude -p --output-format json --json-schema <schéma>`) and fills as its
|
|
10
|
-
//
|
|
11
|
-
//
|
|
8
|
+
// testwriter, the developpeur and the reviewer: the schema of each role (FICHES), which the
|
|
9
|
+
// session receives (`claude -p --output-format json --json-schema <schéma>`) and fills as its
|
|
10
|
+
// last act, in the field `structured_output` of its result. A field exists only when a reader
|
|
11
|
+
// reads it:
|
|
12
12
|
// - `statut` (FAIT, BLOQUÉ, BESOIN), with `raison` for BLOQUÉ and `question` for BESOIN, each
|
|
13
|
-
// with its `piece`: the circuit goes on, or stops at « hors-portee » or « besoin
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
// - `portent_le_travail` (`fichier` from the root, `test` its full name, or none for every test
|
|
17
|
-
// the file): the tests of the lot that
|
|
18
|
-
// requires red (testwriter);
|
|
13
|
+
// with its `piece`: the circuit goes on, or stops at « hors-portee » or « besoin »
|
|
14
|
+
// (testwriter, developpeur, and the explorateur's gesture of a mechanical ticket, its own
|
|
15
|
+
// schema, `geste`);
|
|
16
|
+
// - `portent_le_travail` (`fichier` from the root, `test` its full name, or none for every test
|
|
17
|
+
// of the file): the tests of the lot that the proof of the red requires red (testwriter);
|
|
19
18
|
// - `renvoi` (`role` testwriter): the circuit relaunches the testwriter, then the proof and the
|
|
20
19
|
// developpeur (developpeur);
|
|
21
20
|
// - `hors_plan` (`critere` its number, `paquet` the package out of the plan that would hold it,
|
|
22
21
|
// `piece`): each criterion the session does not hold for want of a package out of the plan; a
|
|
23
|
-
// FAIT that carries one stops at « hors-portee
|
|
24
|
-
// change that does not pass it (BP 320.17: « critère 10 hors plan, non fait », in a handover
|
|
25
|
-
// the circuit does not read, fell at the review) (developpeur);
|
|
22
|
+
// FAIT that carries one stops at « hors-portee » (developpeur);
|
|
26
23
|
// - `reponses` (`titre` of the finding, `etat` levé or contesté, `raison` for a contesté,
|
|
27
|
-
// `piece`):
|
|
28
|
-
//
|
|
29
|
-
//
|
|
30
|
-
//
|
|
31
|
-
//
|
|
32
|
-
//
|
|
33
|
-
// scripts/circuit.mjs), and gives the next review each answer
|
|
34
|
-
// under its finding (BP 320.21: the cause of his choice in a handover the circuit does not
|
|
35
|
-
// read, three RENDU, then the stop) (developpeur);
|
|
24
|
+
// `piece`): a FAIT answers each finding of the reviewer open for its role, by its title (the
|
|
25
|
+
// number « Constat N — » is recognised, `cleDuConstat`); the circuit refuses a sheet without
|
|
26
|
+
// the answer to one (`reponsesAuxConstats`), save in a run where the supervisor gives the task
|
|
27
|
+
// (`--contexte`: the findings open at the run's launch are then its context, the ones a RENDU
|
|
28
|
+
// states within it still its task, `constatsDeLaSeance` of scripts/circuit.mjs), and gives the
|
|
29
|
+
// next review each answer under its finding (developpeur);
|
|
36
30
|
// - `ecarts` (`sujet`, `texte`): the body of the commit message, written by the circuit, each
|
|
37
31
|
// subject once, its value from the last sheet that carries it (developpeur, reviewer);
|
|
38
32
|
// - `decouvertes` (`sujet`, `corps`): each one a ticket filed closed under the ticket, labelled
|
|
39
33
|
// `decouverte`, created by the circuit (every role);
|
|
40
34
|
// - `verdict` (ACCEPTÉ, RENDU), `constats` (`titre`, `corps`, `piece`, `genre` bloquant or
|
|
41
|
-
// remarque; a
|
|
42
|
-
//
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
// review marks it lifted, and writes the verdict at the ticket for the human, the remarks with
|
|
46
|
-
// it; a RENDU carries a blocking finding, an ACCEPTÉ none (reviewer);
|
|
35
|
+
// remarque; a blocking one with `regle`, the criterion of the plan or the rule of the frame
|
|
36
|
+
// it holds, and `role` its recipient, or `critere_en_cause`): the circuit plays the blocking
|
|
37
|
+
// findings alone, each open until a review marks it lifted, and writes the verdict at the
|
|
38
|
+
// ticket, the remarks with it; a RENDU carries a blocking finding, an ACCEPTÉ none (reviewer);
|
|
47
39
|
// - `conformite` (`element`, `conforme` oui or non, `document` CADRE, INTERFACE or
|
|
48
|
-
// ARCHITECTURE, `reference`, `piece`; a « non » with `role` its recipient):
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
//
|
|
53
|
-
//
|
|
54
|
-
// (`conformiteDuLot`) (reviewer);
|
|
40
|
+
// ARCHITECTURE, `reference`, `piece`; a « non » with `role` its recipient): one line per
|
|
41
|
+
// element of the lot (scripts/langages/typescript/elements-du-lot.mjs), a new export's the
|
|
42
|
+
// entry of the INTERFACE that names it; a line without its reference is refused; a « non » is
|
|
43
|
+
// a blocking finding (`bloquantsDeLaFiche`), and the circuit refuses a sheet without a line
|
|
44
|
+
// for each element, or with a line on an element out of the list, a file the lot changes
|
|
45
|
+
// named alone or as `<fichier>#<nom>` (`conformiteDuLot`) (reviewer);
|
|
55
46
|
// - `suivi` (`titre`, `etat` levé or non levé, `preuve`): each finding still open judged on the
|
|
56
|
-
// lot,
|
|
57
|
-
//
|
|
58
|
-
// a sheet without a line for one, or an ACCEPTÉ that holds one not lifted
|
|
47
|
+
// lot, by its title (`cleDuConstat`), which the circuit writes at the ticket with the verdict;
|
|
48
|
+
// it refuses a sheet without a line for one, or an ACCEPTÉ that holds one not lifted
|
|
59
49
|
// (`suiviDesConstats`) (reviewer);
|
|
60
|
-
// - `question`, with its `piece` (reviewer): what goes up to the owner
|
|
61
|
-
//
|
|
62
|
-
//
|
|
63
|
-
//
|
|
64
|
-
//
|
|
65
|
-
//
|
|
66
|
-
//
|
|
67
|
-
//
|
|
68
|
-
// language, the architecture, a gap to the reference, or no answer (BP 328: a question the
|
|
69
|
-
// ticket settled stopped the plan) (explorateur);
|
|
50
|
+
// - `question`, with its `piece` (reviewer): what goes up to the owner; the circuit stops at
|
|
51
|
+
// « besoin » before it commits or relaunches anyone;
|
|
52
|
+
// - `criteres`, `paquets`, `questions` (each with its `motif` and its `piece`): the plan, which
|
|
53
|
+
// the circuit writes at the ticket: the criteria it adds after those the ticket holds, the
|
|
54
|
+
// packages in the title as it names its components (a package name or a path), the list the
|
|
55
|
+
// envelope of every later session writes; the open questions, a change or a removal of a
|
|
56
|
+
// criterion written among them, go up to the supervisor, each naming why: the language, the
|
|
57
|
+
// architecture, a gap to the reference, or no answer (explorateur);
|
|
70
58
|
// - `sorte` (`genre` mécanique or comportement, its `raison`, the `commande` a mechanical ticket
|
|
71
|
-
// plays, and, for a comportement, `comportement` changé, tests-adaptés or inchangé):
|
|
72
|
-
//
|
|
73
|
-
//
|
|
74
|
-
//
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
// absent, out of its kinds, or without its reason or its command is comportement, the whole
|
|
78
|
-
// circuit (`sorteDuPlan`, grillhouse-sos) (explorateur);
|
|
59
|
+
// plays, and, for a comportement, `comportement` changé, tests-adaptés or inchangé): a
|
|
60
|
+
// mechanical ticket skips the testwriter, the proof and the developpeur; under
|
|
61
|
+
// « tests-adaptés » the testwriter writes and every green of the proof is expected, then the
|
|
62
|
+
// developpeur writes; under « inchangé » the developpeur alone writes; a sort absent, out of
|
|
63
|
+
// its kinds, or without its reason or its command is comportement, the whole circuit
|
|
64
|
+
// (`sorteDuPlan`) (explorateur; circuit.md §5.1);
|
|
79
65
|
// - `ecartes` (`composant`, `raison`): the components of the survey, and those the title of
|
|
80
|
-
// the ticket names, that the plan does not touch
|
|
81
|
-
//
|
|
82
|
-
// component set apart without its reason makes the sheet out of conformity (explorateur);
|
|
83
|
-
// - `noms_publies` (`fournisseur`, `consommateur`, `noms`): the names a component publishes to
|
|
84
|
-
// another, which the lot adds to the provider's « Consommateurs » lines; as a code owner's
|
|
85
|
-
// approval covers what it reviewed, the circuit writes them in the description (« ## Noms
|
|
86
|
-
// publiés »), which scripts/langages/typescript/consommateurs-arbitres.mjs reads (BP
|
|
87
|
-
// 320.14.2.10: a criterion alone named them, the guard refused the lot) (grillhouse-la3)
|
|
66
|
+
// the ticket names, that the plan does not touch; each other component the circuit plays is in
|
|
67
|
+
// the packages; a component set apart without its reason makes the sheet out of conformity
|
|
88
68
|
// (explorateur);
|
|
69
|
+
// - `noms_publies` (`fournisseur`, `consommateur`, `noms`): the names a component publishes to
|
|
70
|
+
// another, which the lot adds to the provider's « Consommateurs » lines; the circuit writes
|
|
71
|
+
// them in the description (« ## Noms publiés »), which
|
|
72
|
+
// scripts/langages/typescript/consommateurs-arbitres.mjs reads (explorateur);
|
|
89
73
|
// - `reponses` (`numero` of the question, `reponse` CHANGE or GARDE, `texte`): the explorateur's
|
|
90
|
-
// one answer to the questionneur
|
|
91
|
-
//
|
|
92
|
-
//
|
|
93
|
-
//
|
|
74
|
+
// one answer to the questionneur; a question without an answer stays open (explorateur); an
|
|
75
|
+
// answer may carry a `correction` of a criterion (`critere`, `texte`, `piece`, `extrait`),
|
|
76
|
+
// which the circuit accepts when the extract stands at the line of the question's piece
|
|
77
|
+
// (`correctionsDuPlan` of scripts/transitions.mjs);
|
|
94
78
|
// - `issue` (QUESTIONS with its `questions`, each with what it aims at, `vise`, and its
|
|
95
|
-
// `piece`; AUCUNE; DÉSACCORD
|
|
96
|
-
// with its `desaccord`): the explorateur answers the questions, the disagreement as one, and
|
|
97
|
-
// the circuit writes them at the ticket (questionneur);
|
|
79
|
+
// `piece`; AUCUNE; DÉSACCORD with its `desaccord`) (questionneur);
|
|
98
80
|
// - `verdicts` (`decouverte`, `verdict` among VERDICTS_DU_TRI, `texte`, `piece`): the tri of the
|
|
99
81
|
// discoveries, the explorateur's sheet after the queue (its own schema, `tri`), one line per
|
|
100
82
|
// discovery of the ticket, which the circuit writes at the ticket of each and reopens under
|
|
101
83
|
// `a-valider` for an a-porter or a non-confirmee; the piece of a traitee or an a-porter, a
|
|
102
84
|
// command played again on main and its output or file:line, is required, and the circuit
|
|
103
85
|
// refuses a sheet without a line for each discovery, with a line on another, or two on one
|
|
104
|
-
// (`conformiteDuTri`)
|
|
86
|
+
// (`conformiteDuTri`).
|
|
105
87
|
// `lireFiche` reads a session's output: the sheet and the session's id, or the error that
|
|
106
88
|
// names what lacks or does not conform (no `structured_output`, a field out of the schema, a
|
|
107
89
|
// status without its reason, a blocking finding without its criterion or rule, a line of
|
|
108
90
|
// conformity without its rule or a « non » without its recipient, a plan without packages, a
|
|
109
91
|
// fact without its piece, a piece in no form, given the copy, a file piece not in it, and, given
|
|
110
92
|
// the ticket's description, a piece of the ticket whose criterion or section it lacks).
|
|
111
|
-
// - The piece of a fact (« la pièce »), one format,
|
|
112
|
-
//
|
|
113
|
-
//
|
|
114
|
-
//
|
|
115
|
-
//
|
|
116
|
-
//
|
|
117
|
-
//
|
|
118
|
-
// `ticket, § <section>`, then « : » and what it shows, as a review of a specification cites its
|
|
119
|
-
// section (BP 320.17: the questionneur's pieces on the plan it questions, refused). `lirePiece`
|
|
93
|
+
// - The piece of a fact (« la pièce »), one format: a finding, a question or a stop carries it, so
|
|
94
|
+
// the agent who takes the fact up re-reads it before he builds on it. Either
|
|
95
|
+
// `<fichier>:<ligne>` or `<fichier>:<ligne>-<fin>`, the file from the root of the copy, the line
|
|
96
|
+
// from 1, then, after a space, what it shows (« packages/a/src/x.ts:3 divise par sa valeur. »);
|
|
97
|
+
// or `$ <commande>` on its first line and its output on the lines after (after a « \n » written
|
|
98
|
+
// in two characters, in a piece written on one line); or, for what the ticket says,
|
|
99
|
+
// `ticket, critère <N>` or `ticket, § <section>`, then « : » and what it shows. `lirePiece`
|
|
120
100
|
// reads it; the circuit gives `lireFiche` the copy, where each file piece's file stands and
|
|
121
101
|
// holds its line, and the ticket's description, which carries each criterion or section cited.
|
|
122
102
|
// - The findings of a guard, in SARIF 2.1.0 (OASIS), beside its output for the human: one run per
|
|
@@ -204,7 +184,7 @@ const DOCUMENTS = ['CADRE', 'INTERFACE', 'ARCHITECTURE'];
|
|
|
204
184
|
// gap to the mature reference), or no answer the explorateur holds.
|
|
205
185
|
const MOTIFS = ['langage', 'architecture', 'écart à la référence', 'sans réponse'];
|
|
206
186
|
|
|
207
|
-
// The verdicts of the tri of the discoveries
|
|
187
|
+
// The verdicts of the tri of the discoveries, as the triage of a report of
|
|
208
188
|
// Chromium or Mozilla: the lot or a ticket already holds it, it repeats another, it stays out of
|
|
209
189
|
// the actual use, it is a defect of the actual use, or no proof could be played again. The
|
|
210
190
|
// verdicts that reopen their discovery under `a-valider`, for the owner.
|
|
@@ -213,7 +193,7 @@ export const VERDICTS_ROUVERTS = ['a-porter', 'non-confirmee'];
|
|
|
213
193
|
// The verdicts whose piece is a command played again on main and its output, or file:line.
|
|
214
194
|
const VERDICTS_PROUVES = ['traitee', 'a-porter'];
|
|
215
195
|
|
|
216
|
-
// The sorts of a ticket the explorateur judges at the plan
|
|
196
|
+
// The sorts of a ticket the explorateur judges at the plan: a gesture without new
|
|
217
197
|
// behaviour, which its command makes, or a change of behaviour, which the circuit of code makes.
|
|
218
198
|
export const SORTES = ['mécanique', 'comportement'];
|
|
219
199
|
// The values of the field `comportement` of a plan of sort comportement: changé (the testwriter
|
|
@@ -528,7 +508,7 @@ export const schemaDeFiche = role => FICHES[role] ?? null;
|
|
|
528
508
|
// 'mécanique', raison, commande }` for a mechanical ticket with its reason and its command; else
|
|
529
509
|
// `{ genre: 'comportement', raison, comportement }`, `comportement` one of COMPORTEMENTS, changé
|
|
530
510
|
// when absent, unknown or without its reason. A sort absent, out of its kinds or without what it needs is comportement, the
|
|
531
|
-
// whole circuit, as a doubt goes to the circuit
|
|
511
|
+
// whole circuit, as a doubt goes to the circuit.
|
|
532
512
|
export function sorteDuPlan(fiche) {
|
|
533
513
|
const s = fiche?.sorte;
|
|
534
514
|
const plein = v => typeof v === 'string' && v.trim() !== '';
|
|
@@ -647,8 +627,7 @@ export const bloquantsDeLaFiche = fiche => [
|
|
|
647
627
|
// without its line, a line on an element out of the list, a new export whose rule does not name
|
|
648
628
|
// its entry in the INTERFACE of its package. A line on a changed file, a source or not, names it
|
|
649
629
|
// alone or one of its parts, `<fichier>#<nom>`, as a review on GitHub or Gerrit accepts a comment
|
|
650
|
-
// on any line of any changed file
|
|
651
|
-
// the commit changes, refused); a changed file asks no line, but a reference file the lot changes
|
|
630
|
+
// on any line of any changed file; a changed file asks no line, but a reference file the lot changes
|
|
652
631
|
// (<references>, their paths, `differencesDesReferences`) asks one, its `element` its path. The
|
|
653
632
|
// fault, or null.
|
|
654
633
|
export function conformiteDuLot(fiche, { elements, fichiers, references = [] }) {
|
|
@@ -765,11 +744,10 @@ export function conformiteDuTri(fiche, decouvertes) {
|
|
|
765
744
|
// fin }` for « <fichier>:<ligne>-<fin> » (as SARIF's region has a start line and an optional end
|
|
766
745
|
// line), then what it shows after a space, the place in backquotes or followed by punctuation
|
|
767
746
|
// read the same; `{ commande, sortie }` for « $ <commande> » and its output on the lines after,
|
|
768
|
-
// a « \n » written in two characters read as the line break of a piece written on one line
|
|
769
|
-
//
|
|
747
|
+
// a « \n » written in two characters read as the line break of a piece written on one line;
|
|
748
|
+
// `{ critere }` for « ticket, critère <N> » and `{ section }`
|
|
770
749
|
// for « ticket, § <section> » (in « » or up to « : »), what the ticket says, as a review of a
|
|
771
|
-
// specification cites its section (« RFC 9110 § 15.5
|
|
772
|
-
// questionneur refused for a piece on the plan they question); null for a text in no form.
|
|
750
|
+
// specification cites its section (« RFC 9110 § 15.5 »); null for a text in no form.
|
|
773
751
|
export function lirePiece(texte) {
|
|
774
752
|
const t = String(texte ?? '').trim();
|
|
775
753
|
const ticket = /^ticket\s*,\s*/i.exec(t);
|
package/scripts/retirer-copie.sh
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# The removal of a working copy
|
|
2
|
+
# The removal of a working copy (packages/grillhouse/docs/architecture/entree.md §5.3, « Après les
|
|
3
|
+
# étapes »; §5.1 for the queue's copy), called by the three places that end one: the agent copy (by
|
|
3
4
|
# scripts/integration/integrer.mjs once its lot is committed, and by the supervisor for a ticket
|
|
4
5
|
# closed without integration), the integration copy (by the same script) and the night copy
|
|
5
6
|
# (scripts/nuit.sh), the last two when their existing copy does not get ready; and by the night
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// The command of the removal of the finished copies (./copies-finies.mjs), which the night runs
|
|
2
|
-
// once its steps are played (scripts/nuit.sh
|
|
2
|
+
// once its steps are played (scripts/nuit.sh; packages/grillhouse/docs/architecture/entree.md
|
|
3
|
+
// §5.3, « Après les étapes »):
|
|
3
4
|
//
|
|
4
5
|
// node scripts/retirer-les-copies-finies.mjs [<copie finie de jouer>…] from the main tree
|
|
5
6
|
//
|
package/scripts/seances.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// The sessions of the agents
|
|
1
|
+
// The sessions of the agents (circuit.md §3.1, « Actes du circuit »; the sheet they end on, §4.4):
|
|
2
|
+
// each session is a
|
|
2
3
|
// process group the activity launches (`jouerLeGroupe`), which sends a sign of life
|
|
3
4
|
// `{ pid, depart, seanceId }` at its launch and at each step of its watch, stops on a motionless
|
|
4
5
|
// transcript (`IMMOBILE_MS` of scripts/circuit.mjs, `ctx.immobileMs`), and, cancelled, kills its
|
|
@@ -8,7 +9,7 @@
|
|
|
8
9
|
// each session comes from its caller, which gives a new one to each session it launches. `lancer` launches one session, `jusquALaFiche` until its
|
|
9
10
|
// sheet, `seance` the testwriter's or the developpeur's on the whole ticket, with the instruction of
|
|
10
11
|
// the templates (`consigne`) and the findings of the reviewer open for its role
|
|
11
|
-
// (`constatsDeLaSeance`). The circuit (scripts/circuit.mjs) calls them
|
|
12
|
+
// (`constatsDeLaSeance`). The circuit (scripts/circuit.mjs) calls them.
|
|
12
13
|
import { spawn, spawnSync } from 'node:child_process';
|
|
13
14
|
import { createHash, randomUUID } from 'node:crypto';
|
|
14
15
|
import {
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
// repository).
|
|
8
8
|
// - The core imports ./langages.mjs, never this entry: the command (bin/grillhouse.mjs) loads it
|
|
9
9
|
// at each call, and a script of the core it loads before running one would not run again.
|
|
10
|
+
//
|
|
11
|
+
// What the core asks of a module, and the boundary: docs/architecture/tests.md §3.3 and §3.5.
|
|
10
12
|
import { fileURLToPath } from 'node:url';
|
|
11
13
|
|
|
12
14
|
export * from './langages.mjs';
|
package/scripts/session-start.sh
CHANGED
|
@@ -1,53 +1,40 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# SessionStart hook: tells the session what the project still lacks
|
|
3
|
-
# Silent once the project is set up and initialised. It changes nothing,
|
|
4
|
-
# supervisor
|
|
2
|
+
# SessionStart hook (`grillhouse session-start`): tells the session what the project still lacks
|
|
3
|
+
# before work can start. Silent once the project is set up and initialised. It changes nothing,
|
|
4
|
+
# save the lock of the supervisor. Mechanism: greffon.md, §5.2 (the missing and the unfilled:
|
|
5
|
+
# installation.md).
|
|
5
6
|
#
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
#
|
|
7
|
+
# Each check below joins the list « Manque » or « Pas encore renseignés ».
|
|
8
|
+
# - The project's own check: `grillhouse.demarrage` in the root package.json names an npm script;
|
|
9
|
+
# `npm run --silent <script>` runs at the root, 10 s (past them its whole process group is
|
|
10
|
+
# stopped), and each non-blank line it writes joins « Pas encore renseignés ». A failure or a
|
|
11
|
+
# stop adds a line that says so; the session start goes on. Without the key (or with null)
|
|
12
|
+
# nothing runs; a value that is not a non-blank string runs nothing and adds a line that says
|
|
13
|
+
# so. An agent's copy does not play it.
|
|
14
|
+
# - The Node of the dependencies: installed (`npm ci`) under another binary interface of Node than
|
|
15
|
+
# the current one, the project joins « Manque » with `npm ci` (scripts/abi-des-dependances.mjs).
|
|
16
|
+
# - The languages: no language declared in the column « Langage » of the table of the components of
|
|
17
|
+
# docs/ARCHITECTURE.md (scripts/langages.mjs) joins « Manque » as « le langage de chaque
|
|
18
|
+
# paquet », with the grill, or with `npx grillhouse maj` for a declaration of a former version.
|
|
19
|
+
# A document that holds a field <…> of its template stays under « Pas encore renseignés ».
|
|
20
|
+
# - The plugins: scripts/greffons.mjs --absents reads `.claude/settings.json` and
|
|
21
|
+
# `claude plugin list --json` (each call stopped after 5 s). Each declared plugin not installed
|
|
22
|
+
# joins « Manque » as « le greffon <id> », the missing claude command as « la commande claude »
|
|
23
|
+
# (with `npx grillhouse maj`), a failed or stopped reading as « la lecture des greffons … »; the
|
|
24
|
+
# same reading names the mod installed at another version than the package, with the command
|
|
25
|
+
# that aligns it. An agent's copy does not read them.
|
|
26
|
+
# - The worker of Temporal on a former version after a change of `grillhouse.outil` (`grillhouse
|
|
27
|
+
# temporal perime`) joins « Manque » with `npx grillhouse temporal installer`. An agent's copy
|
|
28
|
+
# does not read it.
|
|
13
29
|
#
|
|
14
|
-
# The
|
|
15
|
-
#
|
|
16
|
-
#
|
|
30
|
+
# The supervisor (scripts/superviseur.mjs): the session takes the lock of its repository; when its
|
|
31
|
+
# opening takes it (not when it keeps it) it receives « Les questions des circuits » then « Les
|
|
32
|
+
# circuits du dépôt »; a second session while the first lives receives first « Un autre
|
|
33
|
+
# superviseur tient ce dépôt ». An agent's copy takes nothing and receives nothing.
|
|
17
34
|
#
|
|
18
|
-
#
|
|
19
|
-
#
|
|
20
|
-
#
|
|
21
|
-
# project that holds the declaration of a former version, which it reports. A document of the project that holds
|
|
22
|
-
# a field <…> of its template (the template's docs/ARCHITECTURE.md declares its language, its
|
|
23
|
-
# other fields left to the grill) is not yet written: it stays under « Pas encore renseignés », and
|
|
24
|
-
# the line of the night waits for it.
|
|
25
|
-
#
|
|
26
|
-
# The frame's plugins: scripts/greffons.mjs --absents reads `.claude/settings.json` and
|
|
27
|
-
# `claude plugin list --json` (each call stopped after 5 s). Each declared plugin not installed for
|
|
28
|
-
# the project joins « Manque » as « le greffon <id> », the missing claude command as « la commande
|
|
29
|
-
# claude » (the line gives `npx grillhouse maj`, which installs them), and a reading that fails
|
|
30
|
-
# or is stopped as « la lecture des greffons … ». The same reading names the frame's mod installed
|
|
31
|
-
# for the project at another version than the package @roomi-fields/grillhouse, both released under
|
|
32
|
-
# one version, with the command that aligns the one behind. An agent's copy does not read them.
|
|
33
|
-
#
|
|
34
|
-
# The worker of Temporal on a former version after a rise of `grillhouse.outil` (see below, the
|
|
35
|
-
# detection `grillhouse temporal perime`): joins « Manque » with `npx grillhouse temporal installer`.
|
|
36
|
-
# An agent's copy does not read it.
|
|
37
|
-
#
|
|
38
|
-
# One supervisor per project (scripts/superviseur.mjs): the session takes the lock of its
|
|
39
|
-
# repository, and, when its opening takes the lock (not when it keeps it, after a compaction or a
|
|
40
|
-
# /clear), receives the section « Les questions des circuits » (the greffon pushes the questions, the answer
|
|
41
|
-
# acknowledges them; no wait to launch), then « Les circuits du dépôt » when there are some: each circuit that runs, each one stopped on a
|
|
42
|
-
# question with its question and the command that answers it, each one whose workflow ended
|
|
43
|
-
# without its issue with the command that resumes it; a second session, while the first one lives, receives first the section « Un autre
|
|
44
|
-
# superviseur tient ce dépôt », which asks it to say so to the owner and to launch no circuit. An
|
|
45
|
-
# agent's copy and a session of a role the circuit launches take nothing and receive nothing.
|
|
46
|
-
#
|
|
47
|
-
# A session of a role agent of the frame (`claude --agent <rôle>`, the circuit's sessions: the
|
|
48
|
-
# hook's input names it, `agent_type`, bare or as `grillhouse:<rôle>`, and the frame's plugin
|
|
49
|
-
# defines it, `$CLAUDE_PLUGIN_ROOT/agents/<rôle>.md`, the plugin whose hook runs this script) receives nothing:
|
|
50
|
-
# what the project lacks is the supervisor's to deal with.
|
|
35
|
+
# A session of a role of the frame (`claude --agent <rôle>`: the hook's input names it,
|
|
36
|
+
# `agent_type`, bare or `grillhouse:<rôle>`, and the plugin defines it,
|
|
37
|
+
# `$CLAUDE_PLUGIN_ROOT/agents/<rôle>.md`) receives nothing.
|
|
51
38
|
set -uo pipefail
|
|
52
39
|
|
|
53
40
|
# The project is Claude Code's, else the working directory; the frame's scripts are this one's
|
|
@@ -59,12 +46,6 @@ entree=
|
|
|
59
46
|
role="$(printf '%s' "$entree" | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{try{const a=JSON.parse(s).agent_type;if(typeof a==="string"&&/^[A-Za-z0-9_:-]+$/.test(a))process.stdout.write(a)}catch{}})' 2>/dev/null)"
|
|
60
47
|
role="${role#grillhouse:}"
|
|
61
48
|
[ -n "$role" ] && [ -n "${CLAUDE_PLUGIN_ROOT:-}" ] && [ -f "$CLAUDE_PLUGIN_ROOT/agents/$role.md" ] && exit 0
|
|
62
|
-
if [ -f "$root/.claude/template" ]; then
|
|
63
|
-
echo "## Gabarit Roomi's Grillhouse"
|
|
64
|
-
echo "Ce dossier est le gabarit du framework, pas un projet : il ne s'initialise pas. Un projet neuf se crée par \`npx @roomi-fields/grillhouse init <chemin> [préfixe]\` ; sa première séance propose le grill d'initialisation."
|
|
65
|
-
exit 0
|
|
66
|
-
fi
|
|
67
|
-
|
|
68
49
|
# One supervisor per project: the lock of the repository, or the section that says who holds it.
|
|
69
50
|
superviseur="$(node "$ici/superviseur.mjs" "$root" 2>/dev/null)"
|
|
70
51
|
[ -z "$superviseur" ] || echo "$superviseur"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// The short name of a project on the displays shared between projects (the line of the places, the
|
|
2
|
-
// board of several projects): the key `grillhouse.sigle` of its package.json (
|
|
3
|
-
// owner's word of 2026-11-12), else its ticket prefix (`issue-prefix` of .beads/config.yaml,
|
|
2
|
+
// board of several projects): the key `grillhouse.sigle` of its package.json, else its ticket prefix (`issue-prefix` of .beads/config.yaml,
|
|
4
3
|
// ./prefixe-des-tickets.mjs). Read like the other keys `grillhouse.*` (./circuits-cles.mjs): as
|
|
5
4
|
// written, a faulty value is named by its key.
|
|
6
5
|
import { readFileSync } from 'node:fs';
|
package/scripts/sortie.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
//
|
|
2
|
+
// The release command (packages/grillhouse/docs/architecture/entree.md §3.1 « Commande de sortie »,
|
|
3
|
+
// §5.4): a release of Grillhouse, its package npm, which carries the frame's plugin: Grillhouse's own
|
|
3
4
|
// script, which no project runs (`grillhouse init` installs the template of a project alone).
|
|
4
5
|
//
|
|
5
6
|
// npx grillhouse sortie <x.y.z> the release's files: the package's package.json, packages/grillhouse/CHANGELOG.md
|
package/scripts/sources.mjs
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
// leaves out what a `.gitignore` names. A project that declares no language
|
|
10
10
|
// (the column « Langage » of its docs/ARCHITECTURE.md) leaves out what every language of the
|
|
11
11
|
// frame writes.
|
|
12
|
+
//
|
|
13
|
+
// What each language writes in the project: docs/architecture/tests.md §3.3.
|
|
12
14
|
import { readdirSync } from 'node:fs';
|
|
13
15
|
import path from 'node:path';
|
|
14
16
|
import { LANGAGES, langage, langageDe, langagesDeclares } from './langages.mjs';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// The table of the frame's subcommands, which `grillhouse <sous-commande>` (bin/grillhouse.mjs)
|
|
2
2
|
// runs and the migrations read (a former copy of a script becomes its subcommand): one module the
|
|
3
3
|
// command and the scripts import, so that no script imports the command, which is being evaluated
|
|
4
|
-
// when it runs one.
|
|
4
|
+
// when it runs one. The aiguillage of each subcommand is installation.md §5.5 and §3.1
|
|
5
|
+
// (packages/grillhouse/docs/architecture/).
|
|
5
6
|
//
|
|
6
7
|
// - A subcommand of the core is named after its script, without directory nor extension
|
|
7
8
|
// (`circuit`, `tableau`); `maj` runs `grillhouse-maj.mjs`, whose name already says the frame's;
|
package/scripts/sous-modules.sh
CHANGED
|
@@ -8,50 +8,31 @@
|
|
|
8
8
|
# npx grillhouse sous-modules monter <copie> --partages <liste> <commande…>
|
|
9
9
|
# plays a command with the shared submodules read-only
|
|
10
10
|
#
|
|
11
|
-
#
|
|
12
|
-
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
#
|
|
16
|
-
#
|
|
17
|
-
#
|
|
18
|
-
# one more copy of it. Without the key, or with an empty list, nothing is shared.
|
|
11
|
+
# The mechanism is installation.md §4.2 (the key `partage`), under
|
|
12
|
+
# packages/grillhouse/docs/architecture/.
|
|
13
|
+
#
|
|
14
|
+
# - `grillhouse.partage` in the package.json of the copy lists the submodules the project shares.
|
|
15
|
+
# A shared submodule is not set in a copy: the copy reads the one of the main repository, at the
|
|
16
|
+
# commit checked out there, through a symbolic link marked `git update-index --skip-worktree`.
|
|
17
|
+
# Without the key, or with an empty list, nothing is shared.
|
|
19
18
|
# - `pose` reads the declaration first and refuses before setting anything (exit 1, its first line
|
|
20
|
-
# on stderr citing `grillhouse.partage` and the faulty value
|
|
21
|
-
#
|
|
22
|
-
#
|
|
23
|
-
#
|
|
24
|
-
#
|
|
25
|
-
#
|
|
26
|
-
#
|
|
27
|
-
#
|
|
28
|
-
#
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
# `
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
# submodule was already set, the `origin` remote of that submodule is moved to it first (git
|
|
38
|
-
# fetches through `origin`, fixed at the first clone). The pose never writes the main
|
|
39
|
-
# repository's configuration. A url relative to the superproject (`./`, `../`), in the
|
|
40
|
-
# configuration or in .gitmodules, is resolved as `git submodule init` resolves it for the main
|
|
41
|
-
# repository (relative_url and chop_last_dir of git), against the url of the remote the current
|
|
42
|
-
# branch of the main repository follows (`branch.<b>.remote`), else its `origin`, else its working
|
|
43
|
-
# tree folder. A remote url that is a local path not absolute is relative to the main repository.
|
|
44
|
-
# Each `../` removes the last component of that url, at its last slash, else at its colon:
|
|
45
|
-
# `host:repo.git` with `../natif.git` gives `host:natif.git`, `git@github.com:org/repo.git` with
|
|
46
|
-
# `../../x.git` gives `git@github.com:x.git`, `upstream.git` with `../natif.git` gives `natif.git`.
|
|
47
|
-
# One final « / » of the url goes. A local path not absolute that results is taken from the main
|
|
48
|
-
# repository's folder, which need not exist (`../up/repo.git` with `../../natif.git` gives
|
|
49
|
-
# `<main repository>/../up/natif.git`). A url git refuses for the main repository stops the pose
|
|
50
|
-
# before the submodule is set — a `../` that finds neither slash nor colon left in a relative
|
|
51
|
-
# remote url (`upstream.git` with `../../natif.git`), or in the `.` an absolute one becomes once
|
|
52
|
-
# emptied of its components: exit 1, its first line on stderr naming the submodule, and the
|
|
53
|
-
# main repository's configuration stays as it is. The resolved address is the one the command
|
|
54
|
-
# carries, so a copy under .claude/worktrees/ never resolves it from its own folder.
|
|
19
|
+
# on stderr citing `grillhouse.partage` and the faulty value): a value that is not a list, an
|
|
20
|
+
# element that is not a non-empty relative path inside the repository, a path that is not a
|
|
21
|
+
# submodule of .gitmodules, a shared submodule absent or not initialized in the main repository.
|
|
22
|
+
# Then it puts the link of each shared submodule back, sets each other submodule at the commit of
|
|
23
|
+
# HEAD (`submodule update --init --recursive --force`) and removes their untracked files: a local
|
|
24
|
+
# modification is overwritten. A submodule that cannot be set stops it, exit 1, its first line
|
|
25
|
+
# naming the submodule and its commit. The command alone carries `-c protocol.file.allow=always`.
|
|
26
|
+
# - The address a submodule is set from is the main repository's: its `submodule.<name>.url`, else
|
|
27
|
+
# the url of .gitmodules. The command carries it (`-c submodule.<name>.url=…`) and moves the
|
|
28
|
+
# `origin` remote of an already set submodule to it; the main repository's configuration is
|
|
29
|
+
# never written. A url relative to the superproject (`./`, `../`) is resolved as
|
|
30
|
+
# `git submodule init` does (relative_url and chop_last_dir of git), against the url of the
|
|
31
|
+
# remote the current branch follows (`branch.<b>.remote`), else `origin`, else the working tree
|
|
32
|
+
# folder: each `../` removes the last component at its last slash, else at its colon
|
|
33
|
+
# (`git@github.com:org/repo.git` with `../../x.git` gives `git@github.com:x.git`). A url git
|
|
34
|
+
# refuses (a `../` finding neither slash nor colon left) stops the pose, exit 1, naming the
|
|
35
|
+
# submodule.
|
|
55
36
|
# - `pose` never enters a shared submodule, nor a submodule nested in it: they belong to the main
|
|
56
37
|
# repository, which neither sets nor cleans them.
|
|
57
38
|
# - `garde` reads the copy as it stands: a submodule modified in `git status` (an edited or
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
# the grill. Read-only; silent on every other message, including one that merely mentions structure,
|
|
5
5
|
# and to a session of a role agent of the frame (`claude --agent <rôle>`: the input names it,
|
|
6
6
|
# `agent_type`, bare or as `grillhouse:<rôle>`, and the frame's plugin defines it,
|
|
7
|
-
# `$CLAUDE_PLUGIN_ROOT/agents/<rôle>.md`), whose instruction is a ticket's.
|
|
7
|
+
# `$CLAUDE_PLUGIN_ROOT/agents/<rôle>.md`), whose instruction is a ticket's. Mechanism: greffon.md,
|
|
8
|
+
# §3.2.
|
|
8
9
|
entree="$(cat)"
|
|
9
10
|
role="$(printf '%s' "$entree" | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{try{const a=JSON.parse(s).agent_type;if(typeof a==="string"&&/^[A-Za-z0-9_:-]+$/.test(a))process.stdout.write(a)}catch{}})')"
|
|
10
11
|
racine="${CLAUDE_PROJECT_DIR:-$PWD}"
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
// stands, and nothing blocks.
|
|
19
19
|
// - It never fails on the tool: without Prettier or ESLint installed in the project, an input that
|
|
20
20
|
// is no JSON, a file absent or out of the project, it exits 0 and writes nothing.
|
|
21
|
+
//
|
|
22
|
+
// The hook: docs/architecture/greffon.md §3.2.
|
|
21
23
|
import { existsSync, readFileSync, realpathSync, writeFileSync } from 'node:fs';
|
|
22
24
|
import { createRequire } from 'node:module';
|
|
23
25
|
import path from 'node:path';
|
package/scripts/suiveur.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// The follower of the board (`grillhouse tableau --suivre`): one producer that follows the events
|
|
2
2
|
// and, at each measure, writes the status line's text (`grillhouse-etat.txt`) and the pane's line
|
|
3
3
|
// (`grillhouse-tableau.ligne`) from that one measure, in the common git directory. The status line
|
|
4
|
-
// and the pane are readers
|
|
4
|
+
// and the pane are readers. Mechanism: greffon.md, §5.3.
|
|
5
5
|
//
|
|
6
6
|
// - A measure follows an event: a change under `.beads/`, a change of the git state (HEAD, the
|
|
7
7
|
// references), a change of the set of circuits (a light poll of Temporal), the end of a bd or git
|