@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
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// The base of a pass in the workflows
|
|
1
|
+
// The base of a pass in the workflows (packages/grillhouse/docs/architecture/entree.md §5.2, the
|
|
2
|
+
// CI flow): a workflow that plays `verifier` gives it a base
|
|
2
3
|
// (`--base <commit>`, scripts/dernier-vert.mjs) for a push alone. A pull request, the call of the
|
|
3
4
|
// workflow by the release (workflow_call), the nightly schedule and any run without a push event play
|
|
4
5
|
// the complete pass, as `turbo --affected` takes its base (`TURBO_SCM_BASE`) from a push event.
|
package/scripts/bilan.mjs
CHANGED
|
@@ -9,79 +9,57 @@
|
|
|
9
9
|
// prints the bilan of <ticket>, read from the main tree of the current directory; `--garder` keeps
|
|
10
10
|
// it too, as the circuit does, so the next ticket's bilan names it as its base.
|
|
11
11
|
//
|
|
12
|
-
// - Its sources are structured results, never a text (tests/unit/circuit-sans-texte-libre.spec.ts)
|
|
13
|
-
// the register of finished agents (`~/.claude/grillhouse/
|
|
14
|
-
// replaces it), each agent's latest line on the ticket
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
// `
|
|
20
|
-
//
|
|
21
|
-
// stop (`
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
// `
|
|
28
|
-
//
|
|
29
|
-
//
|
|
30
|
-
//
|
|
31
|
-
// the night the project declares in its package.json (`grillhouse.plageDeNuit`); the transcript
|
|
32
|
-
// of each supervisor's session a stop names (`~/.claude/projects/<projet>/<séance>.jsonl`), of
|
|
33
|
-
// which the origin and the time of each message, as ccusage measures from the transcripts. It
|
|
34
|
-
// reads no comment of the ticket. Every agent declares nothing: the bilan measures.
|
|
35
|
-
// - The steps and the roles are those of scripts/etapes.mjs; a register line's role is read as the
|
|
36
|
-
// board reads it (`roleDeLAgent`: bare, or scoped by the frame's plugin, `grillhouse:<rôle>`, as
|
|
37
|
-
// the register writes it). Only the circuit's roles count, the
|
|
38
|
-
// explorateur of the plan among them. Only the sessions the circuit launched count in
|
|
39
|
-
// the window, the categories, the tokens and the cost; a session of a circuit's role on the
|
|
40
|
-
// ticket the circuit did not launch, the supervisor's, counts apart (`seances.horsCircuit`: its
|
|
41
|
-
// number, by role, its cost).
|
|
42
|
-
// - The window: from the first turn of a session or a step to the last result of the circuit or
|
|
43
|
-
// the last turn; its length is the wall time.
|
|
12
|
+
// - Its sources are structured results, never a text (tests/unit/circuit-sans-texte-libre.spec.ts),
|
|
13
|
+
// and no comment of the ticket: the register of finished agents (`~/.claude/grillhouse/
|
|
14
|
+
// registre.jsonl`, GRILLHOUSE_REGISTRE replaces it), each agent's latest line on the ticket
|
|
15
|
+
// (turns, tokens, cache reads, cost) and the lines of the role `circuit`; the results the circuit
|
|
16
|
+
// keeps, `.claude/worktrees/<ticket>.fiches.jsonl`, each with its time (`lancement`, the sheet
|
|
17
|
+
// `{ role, fiche }`, `resultat` of a proof or of a check, `arret`, `inchange`, `questionnement`,
|
|
18
|
+
// `tri`, `montee`), and where the circuit ended (`{ etape, raison, code }`, given by the effect
|
|
19
|
+
// `bilan` of scripts/effets.mjs and read from the Temporal server by the command); the night
|
|
20
|
+
// the project declares (`grillhouse.plageDeNuit`); the transcript of each supervisor's session
|
|
21
|
+
// a stop names (`~/.claude/projects/<projet>/<séance>.jsonl`), for the origin and the time of
|
|
22
|
+
// each message.
|
|
23
|
+
// - The steps and the roles are those of scripts/etapes.mjs; a register line's role is read as
|
|
24
|
+
// the board reads it (`roleDeLAgent`: bare, or scoped `grillhouse:<rôle>`). Only the circuit's
|
|
25
|
+
// roles count; only the sessions the circuit launched count in the window, the categories, the
|
|
26
|
+
// tokens and the cost; a session of a circuit's role the circuit did not launch counts apart
|
|
27
|
+
// (`seances.horsCircuit`: its number, by role, its cost).
|
|
28
|
+
// - The window runs from the first turn of a session or a step to the last result of the circuit
|
|
29
|
+
// or the last turn; its length is the wall time. A step `controles` whose outcome or stop is
|
|
30
|
+
// the final pass's (`finale`) is the final pass.
|
|
44
31
|
// - Each turn of a session and each step finds its result: a step, the last outcome or stop of
|
|
45
32
|
// its step kept during it, before the next step of its name; a session, the first sheet of its
|
|
46
|
-
// role kept after its turn, before the next turn of any other.
|
|
47
|
-
// outcome or stop is the final pass's (`finale`) is the final pass.
|
|
33
|
+
// role kept after its turn, before the next turn of any other.
|
|
48
34
|
// - The categories, each instant once:
|
|
49
35
|
// - travail resté au lot: a session that delivered, the reviewer's included;
|
|
50
|
-
// - relance sans effet: a developer whose session changed no file of the plan (`inchange
|
|
51
|
-
// the
|
|
52
|
-
//
|
|
53
|
-
//
|
|
54
|
-
//
|
|
55
|
-
//
|
|
56
|
-
//
|
|
57
|
-
//
|
|
58
|
-
// a
|
|
59
|
-
//
|
|
60
|
-
//
|
|
61
|
-
// the first turn of a session or step after it, or the next result of the circuit, the first
|
|
62
|
-
// of the two; it is the owner's when he wrote during it, a message of the person
|
|
63
|
-
// (`origin.kind` « human ») in the supervisor's session the stop names; else the supervisor's;
|
|
64
|
-
// but its part in the night: the hours of
|
|
65
|
-
// `grillhouse.plageDeNuit` in the project's package.json (`{ debut, fin }`, in local time), from 23 h to 8 h without it;
|
|
36
|
+
// - relance sans effet: a developer whose session changed no file of the plan (`inchange`); a
|
|
37
|
+
// testwriter whose next proof finds the lot of the proof before it (same counts of reds,
|
|
38
|
+
// greens of the lot, broken files, greens of HEAD) or no file of the lot (`vide`), and that
|
|
39
|
+
// proof; checks that play the same measure again with no delivery since the checks of their
|
|
40
|
+
// kind before (the final pass: since the final pass before);
|
|
41
|
+
// - questionnement: a session of the questionneur;
|
|
42
|
+
// - attente du superviseur, attente du responsable, nuit: each wait runs from an end of a run on
|
|
43
|
+
// a stop (`montee`) to the first turn of a session or step after it, or the next result of the
|
|
44
|
+
// circuit; it is the owner's when a message of the person (`origin.kind` « human ») came in
|
|
45
|
+
// the supervisor's session the stop names, else the supervisor's; its part in the night is
|
|
46
|
+
// the hours of `grillhouse.plageDeNuit` (`{ debut, fin }`, local time), 23 h to 8 h without it;
|
|
66
47
|
// - étapes automatiques: the other steps the circuit leads, but the final passes;
|
|
67
48
|
// - passes finales: the final passes, but those without effect or replayed;
|
|
68
|
-
// - rejeu d'étapes déjà vertes: the same, on a lot unchanged since green
|
|
69
|
-
// a testwriter run again on a proven lot, its proof;
|
|
49
|
+
// - rejeu d'étapes déjà vertes: the same, on a lot unchanged since green;
|
|
70
50
|
// - entre deux étapes: the rest of the window.
|
|
71
51
|
// What is lost is the wall time out of the work, the questioning, the automatic steps and the
|
|
72
52
|
// final passes. The text gives the wall time and the wall time out of the night spent waiting
|
|
73
53
|
// (« hors nuit d'attente »: a night at work stays in it), the time lost and the time lost out of
|
|
74
54
|
// the waits.
|
|
75
|
-
// -
|
|
76
|
-
// the
|
|
77
|
-
//
|
|
78
|
-
//
|
|
79
|
-
// the cache reads and the cost (a session without a cost
|
|
80
|
-
// counts 0); a session's tokens go to its turns by their time.
|
|
55
|
+
// - It counts the sessions by role, the steps by title, the stops by kind (`arret`), the waits,
|
|
56
|
+
// the questions of the plan asked, the plans they changed and the questions left open, the tri
|
|
57
|
+
// of the discoveries on a line of its own, the tokens, the cache reads and the cost (a session
|
|
58
|
+
// without a cost counts 0); a session's tokens go to its turns by their time.
|
|
81
59
|
// - It is kept in the main tree, `.claude/worktrees/<ticket>.bilan.json`, and compares itself with
|
|
82
|
-
// the latest other ticket of the project whose bilan is kept,
|
|
83
|
-
//
|
|
84
|
-
//
|
|
60
|
+
// the latest other ticket of the project whose bilan is kept, recomputed by this version from
|
|
61
|
+
// its sources (`precedent`), or with nothing when none is: no figure kept by an earlier version,
|
|
62
|
+
// and none of another project, is written here.
|
|
85
63
|
import { spawnSync } from 'node:child_process';
|
|
86
64
|
import {
|
|
87
65
|
closeSync,
|
package/scripts/binaires.mjs
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// The binaries of the languages of a project, installed on the machine alone, as `rustup` or
|
|
3
3
|
// `actions/setup-*` bring a toolchain without touching the repository: what a CI runs after
|
|
4
4
|
// `npm ci`, so that `npm run verifier` finds the programs its languages run (cargo's sccache,
|
|
5
|
-
// nextest and cargo-deny; python's uv).
|
|
5
|
+
// nextest and cargo-deny; python's uv). The mechanism is installation.md §5.3 (step 3) and §5.2
|
|
6
|
+
// (packages/grillhouse/docs/architecture/).
|
|
6
7
|
//
|
|
7
8
|
// npx grillhouse binaires from the root of the project
|
|
8
9
|
//
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// The judged main guard
|
|
2
|
+
// The judged main guard (packages/grillhouse/docs/architecture/entree.md §3.1 « Garde de main »,
|
|
3
|
+
// §3.3, §5.1): a push to origin of the branch main carries only a commit whose tree a
|
|
3
4
|
// final pass of the circuit, or the verification of a lot of the direct way, judged green
|
|
4
5
|
// (scripts/arbres-juges.mjs), as bors and the merge queues enter only a tree already judged
|
|
5
6
|
// (`refusSurMain`), in every project. Run by the pre-push hook of the frame with git's arguments
|
package/scripts/cadre.mjs
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
// package is the plugin, as a package of ESLint carries its plugin: its root holds the plugin's
|
|
8
8
|
// files, so the marketplace names the package by a source npm, which has no subdirectory; and
|
|
9
9
|
// it carries a copy of the template under `cadre/`, as create-vite carries its templates. The
|
|
10
|
-
// frame arrives in one piece.
|
|
10
|
+
// frame arrives in one piece. The mechanism is installation.md §4.4 and §4.5
|
|
11
|
+
// (packages/grillhouse/docs/architecture/).
|
|
11
12
|
//
|
|
12
13
|
// node scripts/cadre.mjs --empaqueter copies them into the package (the package's prepack)
|
|
13
14
|
// node scripts/cadre.mjs --nettoyer removes the copies (the package's postpack)
|
|
@@ -17,14 +18,17 @@
|
|
|
17
18
|
// repository, two levels above the package. CADRE is the root the template is read from:
|
|
18
19
|
// `cadre/` of the installed package, else the repository. So the package reads the same files
|
|
19
20
|
// wherever it is installed, and the repository keeps one address for each.
|
|
20
|
-
// - The copy of the plugin, ELEMENTS_DU_GREFFON, is each entry of `mods/grillhouse/`
|
|
21
|
-
//
|
|
21
|
+
// - The copy of the plugin, ELEMENTS_DU_GREFFON, is each entry of `mods/grillhouse/` that git does
|
|
22
|
+
// not ignore, but its tests
|
|
23
|
+
// (`tests/`), its configuration of TypeScript (`tsconfig.json`) and what makes it a package of the
|
|
24
|
+
// workspace (`package.json`, `turbo.json`, `.turbo`, `node_modules`), at the package's root,
|
|
22
25
|
// beside the package's own entries, PROPRES_DU_PAQUET; an entry of the plugin of the same name
|
|
23
26
|
// stops the copy. Its manifest (`.claude-plugin/plugin.json`)
|
|
24
27
|
// receives VERSION: the plugin takes the package's version, its manifest in the repository
|
|
25
28
|
// carries none.
|
|
26
29
|
// - VERSION is the `version` of the package's package.json, the one version of the package and its
|
|
27
30
|
// plugin.
|
|
31
|
+
import { spawnSync } from 'node:child_process';
|
|
28
32
|
import { cpSync, existsSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
29
33
|
import path from 'node:path';
|
|
30
34
|
import { pathToFileURL } from 'node:url';
|
|
@@ -55,14 +59,38 @@ export const PROPRES_DU_PAQUET = [
|
|
|
55
59
|
];
|
|
56
60
|
|
|
57
61
|
/** The entries of the plugin's source the package leaves out. */
|
|
58
|
-
export const HORS_DU_GREFFON = [
|
|
62
|
+
export const HORS_DU_GREFFON = [
|
|
63
|
+
'tests',
|
|
64
|
+
'tsconfig.json',
|
|
65
|
+
'package.json',
|
|
66
|
+
'turbo.json',
|
|
67
|
+
'.turbo',
|
|
68
|
+
'node_modules',
|
|
69
|
+
];
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The entries of a plugin's source directory the package copies: each one but HORS_DU_GREFFON and
|
|
73
|
+
* what git ignores (a cache a tool wrote there), as `npm pack` leaves out what .gitignore names.
|
|
74
|
+
*/
|
|
75
|
+
export function elementsDuGreffon(source) {
|
|
76
|
+
if (!existsSync(source)) {
|
|
77
|
+
return [];
|
|
78
|
+
}
|
|
79
|
+
const entrees = readdirSync(source).filter(e => !HORS_DU_GREFFON.includes(e));
|
|
80
|
+
if (entrees.length === 0) {
|
|
81
|
+
return [];
|
|
82
|
+
}
|
|
83
|
+
const { stdout } = spawnSync('git', ['check-ignore', '-z', '--stdin'], {
|
|
84
|
+
cwd: source,
|
|
85
|
+
input: entrees.join('\0'),
|
|
86
|
+
encoding: 'utf8',
|
|
87
|
+
});
|
|
88
|
+
const ignorees = new Set(stdout.split('\0').filter(Boolean));
|
|
89
|
+
return entrees.filter(e => !ignorees.has(e)).sort();
|
|
90
|
+
}
|
|
59
91
|
|
|
60
92
|
/** The entries of the plugin, which `--empaqueter` copies at the package's root. */
|
|
61
|
-
export const ELEMENTS_DU_GREFFON =
|
|
62
|
-
? readdirSync(SOURCE_DU_GREFFON)
|
|
63
|
-
.filter(e => !HORS_DU_GREFFON.includes(e))
|
|
64
|
-
.sort()
|
|
65
|
-
: [];
|
|
93
|
+
export const ELEMENTS_DU_GREFFON = elementsDuGreffon(SOURCE_DU_GREFFON);
|
|
66
94
|
|
|
67
95
|
/** The root of the frame's files: the package's copy when installed, else the repository. */
|
|
68
96
|
export const CADRE = INSTALLE ? COPIE : DEPOT;
|
package/scripts/ci-de-main.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// The
|
|
1
|
+
// The reading and the start of the CI of main (packages/grillhouse/docs/architecture/entree.md
|
|
2
|
+
// §3.1 « Lecture et déclenchement de la CI de main », §5.2), read after the lots entered, as Google's TAP plays the whole suite after the
|
|
2
3
|
// submit, by batches of changes, and a red looks for its culprit among the lots entered since the
|
|
3
4
|
// last green. A lot enters main on its final pass (scripts/integration/file.mjs); the CI plays on
|
|
4
5
|
// main, started by the queue itself after a lot entered, one pass an hour at most, and this module
|