@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,43 +1,15 @@
|
|
|
1
|
-
// The circuit
|
|
2
|
-
//
|
|
3
|
-
// what is his. What a project holds of the former circuit is rewritten here, as a codemod of
|
|
4
|
-
// `@turbo/codemod` rewrites what a version changes, and nothing else.
|
|
1
|
+
// The circuit has no regulator and no technical referent: the project's former circuit is rewritten.
|
|
2
|
+
// The mechanism is installation.md §5.4 (packages/grillhouse/docs/architecture/).
|
|
5
3
|
//
|
|
6
|
-
// -
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
// left to the project.
|
|
16
|
-
// - A copy of a removed role (`.claude/agents/<rôle>.md`, `.claude/skills/<rôle>/`) still in the
|
|
17
|
-
// project is one the migration of the copies (0.23.2-copies-du-cadre.mjs, played before) could
|
|
18
|
-
// not know as the frame's: the project modified it, or no list named it. It is left to the
|
|
19
|
-
// project, with the command that removes it; the migration of the copies leaves it to this one
|
|
20
|
-
// (deRoleSupprime), so that it is named once.
|
|
21
|
-
// - What stays to the project (`restes`, which the update plays after its own update and its
|
|
22
|
-
// regeneration, so that it sees the final state): a tracked file of the project (`git ls-files`,
|
|
23
|
-
// node_modules and the changelogs aside) that still calls or names a script of the frame at its former address under `scripts/`
|
|
24
|
-
// (`node scripts/<script>`, `$RACINE/scripts/<script>`, `file://$1/scripts/<script>`,
|
|
25
|
-
// `path.join(…, '..', 'scripts', '<dossier>', '<script>')`, found by its words, sousScripts; a
|
|
26
|
-
// `scripts/` under a literal directory, a package of the project or the installed package, is
|
|
27
|
-
// another's, `.` and `..` naming none; a tracked path that is no regular file, a submodule or a
|
|
28
|
-
// link, is skipped), where the project holds no such file any more, is named with its file:line
|
|
29
|
-
// and what replaces it: the subcommand (`SOUS_COMMANDES` of scripts/sous-commandes.mjs), the hook
|
|
30
|
-
// (`grillhouse hook <nom>`, `CROCHETS` of scripts/crochets.mjs) or the named entry (the
|
|
31
|
-
// `exports` of the package). A script of the package that has none of them is named with « aucune
|
|
32
|
-
// entrée publiée ne la remplace ». The project's scripts are its own: none is rewritten, and the
|
|
33
|
-
// lines are a report, which never holds back the version the project records, as a codemod
|
|
34
|
-
// reports what it leaves without failing.
|
|
35
|
-
// - No version of the update wrote a setting of a role in `.claude/settings.json` or under
|
|
36
|
-
// `grillhouse` of the package.json (the update of 0.22.x wrote the hooks, the status line and the
|
|
37
|
-
// plugins; the rights of a role are given on the command line of its session, scripts/droits.mjs):
|
|
38
|
-
// the migration writes neither.
|
|
39
|
-
// - A project already in the new form is not written, and a second pass reports only what it left
|
|
40
|
-
// to the project.
|
|
4
|
+
// - CLAUDE.md, « Ce qui monte au superviseur »: the former paragraph (« Le fonctionnel que le
|
|
5
|
+
// régulateur… ») becomes the new one, its list kept; a rubric naming a removed role is left
|
|
6
|
+
// to the project (`{ aFaire }`).
|
|
7
|
+
// - docs/agents/issue-tracker.md: a file of a former template (SHA-256 in FORMES) becomes the
|
|
8
|
+
// template's; a modified one naming a removed role is left.
|
|
9
|
+
// - A copy of a removed role (`.claude/agents/<rôle>.md`, `.claude/skills/<rôle>/`) is left, with
|
|
10
|
+
// the command that removes it (deRoleSupprime, named once).
|
|
11
|
+
// - `restes`: a tracked file still calling a frame script at its former address under `scripts/`
|
|
12
|
+
// is named with file:line and its replacement; the lines never hold back the recorded version.
|
|
41
13
|
import { execFileSync } from 'node:child_process';
|
|
42
14
|
import { createHash } from 'node:crypto';
|
|
43
15
|
import { existsSync, lstatSync, readdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
//
|
|
2
|
-
// tri
|
|
3
|
-
//
|
|
4
|
-
// is its own since 0.23.0, and its template's rule said a discovery « reopens on the owner's
|
|
5
|
-
// word », the supervisor bringing those that touch a real use: a rule the frame no longer holds.
|
|
1
|
+
// The rule of the discoveries in the project's `docs/agents/issue-tracker.md` is the rule of the
|
|
2
|
+
// tri (verdict per discovery, `a-porter` and `non-confirmee` reopening under `a-valider`).
|
|
3
|
+
// Mechanism: installation.md §5.4 (packages/grillhouse/docs/architecture/).
|
|
6
4
|
//
|
|
7
|
-
// - Each of the two sentences
|
|
8
|
-
//
|
|
9
|
-
// - A file without them
|
|
10
|
-
// without the file neither.
|
|
5
|
+
// - Each of the two sentences « reopens on the owner's word » of the template's former rule,
|
|
6
|
+
// when the file holds it as written, becomes the new rule; nothing else of the file changes.
|
|
7
|
+
// - A file without them, or no file, is not written.
|
|
11
8
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
12
9
|
import path from 'node:path';
|
|
13
10
|
|
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
// API Extractor is the package's dependency, not the project's: the
|
|
2
|
-
// (
|
|
3
|
-
//
|
|
4
|
-
// added it to the devDependencies of a project's root as a tool the project runs, and
|
|
5
|
-
// `grillhouse code-mort` then refused it as a development dependency without use. The project's
|
|
6
|
-
// `tsdoc.json` extended its TSDoc base, resolved only when npm hoists API Extractor to the root:
|
|
7
|
-
// the package now publishes its own base (`tsdoc-base.json`, which extends API Extractor's), as a
|
|
8
|
-
// rig of Rushstack carries the base configuration beside the dependency it names.
|
|
1
|
+
// API Extractor is the package's dependency, not the project's: the root `tsdoc.json` extends the
|
|
2
|
+
// package's own base (`tsdoc-base.json`). Mechanism: installation.md §5.4
|
|
3
|
+
// (packages/grillhouse/docs/architecture/).
|
|
9
4
|
//
|
|
10
|
-
// -
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
// (`dependencies`, `devDependencies` or `optionalDependencies`), while no source of the project
|
|
16
|
-
// imports it (scripts/sources.mjs), hears the line of the other dependencies only the package
|
|
17
|
-
// imports (`dependanceDuPaquet`), with `npm uninstall`. The dependency is named, never removed:
|
|
18
|
-
// the project decides. The migration of the copies (0.23.2-copies-du-cadre.mjs) leaves it to this
|
|
19
|
-
// one (DU_PAQUET), so that it is named once.
|
|
20
|
-
// - A project already in the new form is not written, and a second pass returns no line.
|
|
5
|
+
// - A root `tsdoc.json` whose `extends` names API Extractor's base (ANCIENNE_BASE) extends the
|
|
6
|
+
// package's (BASE), the rest of the file kept byte for byte; another base is not written.
|
|
7
|
+
// - `restes`: a root `package.json` declaring `@microsoft/api-extractor` while no source imports it
|
|
8
|
+
// (scripts/sources.mjs) hears the line of `dependanceDuPaquet`, with `npm uninstall`; named,
|
|
9
|
+
// never removed (DU_PAQUET, named once).
|
|
21
10
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
22
11
|
import path from 'node:path';
|
|
23
12
|
import { importe, sources } from '../sources.mjs';
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// it. The circuit asks the module of language which component plays tests (`joueDesTests`), and
|
|
4
|
-
// the module typescript answers by `test:unit`; Turborepo's task has the script's name.
|
|
1
|
+
// The script of the tests is named `test:unit`, the same for every language. Mechanism:
|
|
2
|
+
// installation.md §5.4 (packages/grillhouse/docs/architecture/).
|
|
5
3
|
//
|
|
6
|
-
// - Each package.json of the
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
// - Each turbo.json (or turbo.jsonc) of the root and of the packages of the frame that names the
|
|
12
|
-
// task `test:vitest` (a task, a dependency `^test:vitest` or `<paquet>#test:vitest`) names
|
|
13
|
-
// `test:unit` instead, its text kept otherwise; one that names both is left to the project.
|
|
14
|
-
// - A project already in the new form is not written: a second pass changes nothing.
|
|
4
|
+
// - Each package.json of the root and of the frame's packages (scripts/paquets.mjs) holding
|
|
5
|
+
// `test:vitest` has it named `test:unit`, command and place kept; with a `test:unit` of another
|
|
6
|
+
// command, nothing is written (`aFaire`).
|
|
7
|
+
// - Each turbo.json(c) naming the task `test:vitest` (a task, `^test:vitest`, `<paquet>#test:vitest`)
|
|
8
|
+
// names `test:unit`; one naming both is left to the project.
|
|
15
9
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
16
10
|
import path from 'node:path';
|
|
17
11
|
import { paquets } from '../paquets.mjs';
|
|
@@ -1,27 +1,13 @@
|
|
|
1
|
-
//
|
|
2
|
-
// of the table of the components of docs/ARCHITECTURE.md
|
|
3
|
-
//
|
|
4
|
-
// languages, and the key `grillhouse.langages` of the package.json, which named them before,
|
|
5
|
-
// disappears.
|
|
1
|
+
// The language of each package moves from the key `grillhouse.langages` to the column « Langage »
|
|
2
|
+
// of the table of the components of docs/ARCHITECTURE.md. Mechanism: installation.md §5.4
|
|
3
|
+
// (packages/grillhouse/docs/architecture/), the declaration tests.md §5.6.
|
|
6
4
|
//
|
|
7
|
-
// -
|
|
8
|
-
//
|
|
9
|
-
// A
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
// at the end of its header, of its separator, in their style, and of each row: the language of
|
|
14
|
-
// the component the row names, empty for a row that names none. A package of the modules (its
|
|
15
|
-
// manifest in its folder) that no row names goes to a section « Les paquets » that ends the
|
|
16
|
-
// document (written when absent), a table `Paquet | Langage`, one row each: a table that says
|
|
17
|
-
// « each stage does a step » (BPScript's) receives no row without its step. A language of the
|
|
18
|
-
// key that no package carries has a row naming the root, `.`, there. The text of the document is
|
|
19
|
-
// kept otherwise.
|
|
20
|
-
// - `aReporter`: whether a project holds the former declaration, which the session start names
|
|
21
|
-
// with `npx grillhouse maj`, which reports it.
|
|
22
|
-
// - A key that names a language the frame lacks, or whose modules claim one folder twice, is left
|
|
23
|
-
// to the project (`aFaire`), nothing written.
|
|
24
|
-
// - A project without the key, or already migrated, is not written: a second pass changes nothing.
|
|
5
|
+
// - The declaration is written in the column of the first table where a cell names a component of
|
|
6
|
+
// the key's modules (./tableau-des-composants.mjs), then the key goes (`grillhouse` with it when
|
|
7
|
+
// empty). A package no row names goes to a section « Les paquets » ending the document, a table
|
|
8
|
+
// `Paquet | Langage`; a language no package carries has a row naming the root, `.`.
|
|
9
|
+
// - `aReporter`: whether a project holds the former declaration (named at the session start).
|
|
10
|
+
// - A language the frame lacks, or modules claiming one folder twice, is left (`aFaire`).
|
|
25
11
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
26
12
|
import path from 'node:path';
|
|
27
13
|
import { composantsRanges } from '../composition-des-langages.mjs';
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// at the poste.
|
|
1
|
+
// The CI calls `npm run verifier` alone. Mechanism: installation.md §5.4
|
|
2
|
+
// (packages/grillhouse/docs/architecture/).
|
|
4
3
|
//
|
|
5
|
-
// -
|
|
6
|
-
//
|
|
7
|
-
// - One that differs
|
|
8
|
-
//
|
|
9
|
-
// - One that already calls the verification alone,
|
|
10
|
-
// said: a second pass changes nothing.
|
|
4
|
+
// - A `.github/workflows/ci.yml` identical, spaces normalized, to the former template is replaced
|
|
5
|
+
// by the new one.
|
|
6
|
+
// - One that differs stays, and `aFaire` names the steps to remove from its test job:
|
|
7
|
+
// `format:check`, `lint`, `typecheck` and `build`.
|
|
8
|
+
// - One that already calls the verification alone, or no CI, is left.
|
|
11
9
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
12
10
|
import path from 'node:path';
|
|
13
11
|
import { CADRE } from '../cadre.mjs';
|
|
@@ -1,22 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// project of Python of an existing project, which `grillhouse paquet` did not create, receive the
|
|
4
|
-
// same one.
|
|
1
|
+
// Every cargo or python package enters the graph of Turborepo by a `package.json` beside its
|
|
2
|
+
// manifest. Mechanism: installation.md §5.4 (packages/grillhouse/docs/architecture/).
|
|
5
3
|
//
|
|
6
|
-
// - The packages are those the column « Langage » of
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
// - The package.json of a package is the one the command writes (./paquet-npm.mjs): the manifest's
|
|
12
|
-
// name, `private`, the scripts `build`, `test:unit` and `typecheck`. A package.json present is
|
|
13
|
-
// kept as it is when its name is the manifest's; any other is left to the project (`aFaire`,
|
|
14
|
-
// both names), as is a name another package of the workspaces bears, and nothing else is written
|
|
15
|
-
// for that package.
|
|
16
|
-
// - The folder of each package is entered in the `workspaces` of the root package.json when its
|
|
17
|
-
// patterns do not select it, after the pattern `!` that takes it out.
|
|
18
|
-
// - A project already migrated, or without crate nor project of Python, is not written: a second
|
|
19
|
-
// pass changes nothing and returns no line.
|
|
4
|
+
// - The packages are those the column « Langage » of docs/ARCHITECTURE.md declares `cargo` or
|
|
5
|
+
// `python`, whose folder holds the manifest with a package name, the root excluded.
|
|
6
|
+
// - The package.json is the one `grillhouse paquet` writes (./paquet-npm.mjs); one present is kept
|
|
7
|
+
// when its name is the manifest's, else left (`aFaire`), as a name another workspace bears.
|
|
8
|
+
// - The folder enters the root `workspaces` when no pattern selects it, after the `!` pattern.
|
|
20
9
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
21
10
|
import path from 'node:path';
|
|
22
11
|
import { inscrireAuxEspaces, packageJsonDuPaquet, paquetsSansPackageJson } from '../paquet-npm.mjs';
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// ~/.config/grillhouse/turbo-cache.env, read alone (scripts/fichier-du-poste.mjs).
|
|
1
|
+
// The remote cache of Turborepo is shared between the CI (the repository's variables and
|
|
2
|
+
// secrets) and the poste (~/.config/grillhouse/turbo-cache.env, scripts/fichier-du-poste.mjs).
|
|
3
|
+
// Mechanism: installation.md §5.4 and §4.3 (packages/grillhouse/docs/architecture/).
|
|
5
4
|
//
|
|
6
|
-
// - The migration changes no file
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
// the artifacts (`remoteCache.signature`) is told how to plug a server. One that signs them has
|
|
10
|
-
// plugged it already.
|
|
5
|
+
// - The migration changes no file.
|
|
6
|
+
// - `restes`, once: a project whose root turbo.json does not sign the artifacts
|
|
7
|
+
// (`remoteCache.signature`) is told how to plug a server.
|
|
11
8
|
import { existsSync, readFileSync } from 'node:fs';
|
|
12
9
|
import path from 'node:path';
|
|
13
10
|
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// (scripts/workflows-du-cadre.mjs).
|
|
1
|
+
// The frame carries the CI of a project: the template's `.github/workflows/ci.yml` and `nuit.yml`,
|
|
2
|
+
// each bearing the frame's mark on its first line (scripts/workflows-du-cadre.mjs). Mechanism:
|
|
3
|
+
// installation.md §5.2 and §5.4 (packages/grillhouse/docs/architecture/).
|
|
5
4
|
//
|
|
6
|
-
// - The migration changes no file: a project's CI is its own until it adopts the frame's
|
|
7
|
-
//
|
|
8
|
-
// - What stays to the project (`restes`), once: a project that holds no workflow of the frame is
|
|
9
|
-
// told how to adopt them. One that holds one has nothing to do.
|
|
5
|
+
// - The migration changes no file: a project's CI is its own until it adopts the frame's.
|
|
6
|
+
// - `restes`, once: a project holding no workflow of the frame is told how to adopt them.
|
|
10
7
|
import path from 'node:path';
|
|
11
8
|
import { CADRE } from '../cadre.mjs';
|
|
12
9
|
import { aLaCiDuCadre, GABARIT_DES_WORKFLOWS, WORKFLOWS } from '../workflows-du-cadre.mjs';
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// the npm Node 26 ships as its `packageManager`.
|
|
1
|
+
// The template's package.json declares `engines.node` `>=24.0.0` and the npm Node 26 ships as
|
|
2
|
+
// its `packageManager`. Mechanism: installation.md §5.4 (packages/grillhouse/docs/architecture/).
|
|
4
3
|
//
|
|
5
|
-
// - A
|
|
6
|
-
//
|
|
7
|
-
//
|
|
4
|
+
// - A package.json still holding the former template's values (`engines.node` `>=22.0.0`,
|
|
5
|
+
// `packageManager` `npm@10.9.8`) receives the template's; a value the project chose stays,
|
|
6
|
+
// unsaid.
|
|
8
7
|
// - Only those values change in the text: the rest of the file keeps its bytes.
|
|
9
|
-
// - A project already migrated, or without package.json, is not written: a second pass changes
|
|
10
|
-
// nothing and returns no line.
|
|
11
8
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
12
9
|
import path from 'node:path';
|
|
13
10
|
import { CADRE } from '../cadre.mjs';
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// `grillhouse:domain-modeling`), and the template no longer enables the whole plugin
|
|
4
|
-
// (grillhouse-8gp).
|
|
1
|
+
// The frame's plugin carries the skills it calls: the plugin `mattpocock-skills` is no longer
|
|
2
|
+
// enabled. Mechanism: installation.md §5.4 (packages/grillhouse/docs/architecture/).
|
|
5
3
|
//
|
|
6
|
-
// -
|
|
7
|
-
// `enabledPlugins
|
|
8
|
-
//
|
|
9
|
-
// the template: it removes it and says so once.
|
|
10
|
-
// - A project without .claude/settings.json, without `enabledPlugins` or without that plugin is
|
|
11
|
-
// not written: a second pass changes nothing and returns no line.
|
|
4
|
+
// - `.claude/settings.json` loses the key `mattpocock-skills@claude-plugins-official` of
|
|
5
|
+
// `enabledPlugins`, whatever its value; the other plugins and keys keep their place. A project
|
|
6
|
+
// that enabled it for itself is not told apart: the key goes and the line says so once.
|
|
12
7
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
13
8
|
import path from 'node:path';
|
|
14
9
|
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
//
|
|
2
|
-
// GitHub play Node 26 only
|
|
1
|
+
// The frame supports Node 26 alone: the template declares `engines.node` `>=26.0.0`, and the CI
|
|
2
|
+
// and the night of GitHub play Node 26 only. Mechanism: installation.md §5.4
|
|
3
|
+
// (packages/grillhouse/docs/architecture/).
|
|
3
4
|
//
|
|
4
|
-
// - A
|
|
5
|
-
//
|
|
6
|
-
// -
|
|
7
|
-
// with no proof of the version it declares; the project raises it or widens its matrix.
|
|
8
|
-
// - The frame's workflows of the project are written again from the template
|
|
9
|
-
// (scripts/workflows-du-cadre.mjs): a project that holds none receives none.
|
|
10
|
-
// - A project already migrated, or without package.json, changes nothing and returns no line.
|
|
5
|
+
// - A package.json holding `>=22.0.0` or `>=24.0.0` receives `>=26.0.0`, that value alone changing.
|
|
6
|
+
// - Any other value stays, and a line names it: the project raises it or widens its matrix.
|
|
7
|
+
// - The frame's workflows are written again from the template (scripts/workflows-du-cadre.mjs).
|
|
11
8
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
12
9
|
import path from 'node:path';
|
|
13
10
|
import { CADRE } from '../cadre.mjs';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
1
|
+
// The threshold of Beads that keeps the codes of the tickets at three characters
|
|
2
|
+
// (`max_collision_prob`, 0.99). Mechanism: installation.md §5.4 (packages/grillhouse/docs/architecture/).
|
|
3
3
|
//
|
|
4
|
-
// - A
|
|
5
|
-
// -
|
|
6
|
-
//
|
|
7
|
-
// - A
|
|
8
|
-
// - A project whose Beads cannot be reached (no `bd`, no store) is not written; the update says so.
|
|
4
|
+
// - A Beads with no value gets 0.99, and the update says so once.
|
|
5
|
+
// - Another value stays; the update names it with the command that aligns it, as information that
|
|
6
|
+
// never fails the update.
|
|
7
|
+
// - A Beads that cannot be reached (no `bd`, no store) is not written; the update says so.
|
|
9
8
|
import { spawnSync } from 'node:child_process';
|
|
10
9
|
|
|
11
10
|
export const version = '0.44.0';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
//
|
|
2
|
-
// (grillhouse
|
|
1
|
+
// No CI judges a ticket's branch: the CI plays on main, by batches. Mechanism: installation.md
|
|
2
|
+
// §5.4 (packages/grillhouse/docs/architecture/), the CI of main entree.md §5.2.
|
|
3
3
|
//
|
|
4
|
-
// - A workflow
|
|
5
|
-
// its
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
// frame's new CI, on the hourly schedule: the migration leaves it.
|
|
4
|
+
// - A workflow listing `agent/**` among the branches of its push has it taken out, its comments,
|
|
5
|
+
// its layout and its other branches kept (the library yaml's document); another is left.
|
|
6
|
+
// - A workflow of the frame is the update's (scripts/workflows-du-cadre.mjs): the migration
|
|
7
|
+
// leaves it.
|
|
9
8
|
import { existsSync, readdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
10
9
|
import path from 'node:path';
|
|
11
10
|
import { parseDocument } from 'yaml';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
1
|
+
// The queue starts the CI of main itself, one pass an hour at most (scripts/ci-de-main.mjs
|
|
2
|
+
// `declencherLaCiDeMain`): the frame's ci.yml has no schedule and no job `moved`, and keeps
|
|
3
|
+
// `workflow_dispatch` and `workflow_call`. Mechanism: installation.md §5.4, entree.md §5.2
|
|
4
|
+
// (packages/grillhouse/docs/architecture/).
|
|
4
5
|
//
|
|
5
|
-
// - A ci.yml
|
|
6
|
-
// on the template's
|
|
7
|
-
// are. A second pass changes nothing and says nothing.
|
|
6
|
+
// - A ci.yml with the frame's mark on its first line (scripts/workflows-du-cadre.mjs) is rewritten
|
|
7
|
+
// on the template's; a ci.yml without the mark, and every other workflow, stay.
|
|
8
8
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
9
9
|
import path from 'node:path';
|
|
10
10
|
import { CADRE } from '../cadre.mjs';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// kept; a project without the key, without `grillhouse` or without package.json is left, and a
|
|
5
|
-
// second pass changes nothing and says nothing. The remote branches of the project are not touched.
|
|
1
|
+
// The key `grillhouse.poussee` has no reader: a package.json carrying it, with any value, loses
|
|
2
|
+
// it, its other keys, its layout and its end of line kept; the remote branches are not touched.
|
|
3
|
+
// Mechanism: installation.md §5.4 (packages/grillhouse/docs/architecture/).
|
|
6
4
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
7
5
|
import path from 'node:path';
|
|
8
6
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
// pass changes nothing and says nothing.
|
|
1
|
+
// A circuit reserves 3 cores: a package.json whose `grillhouse.part.coeurs` is 4 gets 3, its other
|
|
2
|
+
// keys, its layout and its end of line kept. Mechanism: installation.md §5.4
|
|
3
|
+
// (packages/grillhouse/docs/architecture/).
|
|
5
4
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
6
5
|
import path from 'node:path';
|
|
7
6
|
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// The charter of a project describes no setting: the list of the keys `grillhouse.*` and of the
|
|
2
|
+
// files of the machine, and what each one sets, lives in the document of the installation
|
|
3
|
+
// (docs/architecture/installation.md, §4.2 and §4.3), which follows the installed version. The
|
|
4
|
+
// update never rewrites a project's `CLAUDE.md`.
|
|
5
|
+
//
|
|
6
|
+
// - `migrer` writes nothing and returns no line: the form of the project does not change.
|
|
7
|
+
// - `restes(projet)`: when `CLAUDE.md` names a key of the list (`grillhouse.<clé>`), a variable
|
|
8
|
+
// of a file of the machine (`GRILLHOUSE_*`, `TURBO_*`), the script `ci:preparer`, or a
|
|
9
|
+
// section « La CI de main » or « La machine vierge » in its section « Commandes », one line,
|
|
10
|
+
// which names each match by its line; none when the charter names none. A second pass on a
|
|
11
|
+
// charter cleaned says nothing.
|
|
12
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
13
|
+
import path from 'node:path';
|
|
14
|
+
|
|
15
|
+
export const version = '0.50.0';
|
|
16
|
+
export const nom = 'reglages hors de la charte';
|
|
17
|
+
|
|
18
|
+
// The keys of the settings of the project (installation.md, §4.2).
|
|
19
|
+
const CLES = [
|
|
20
|
+
'version',
|
|
21
|
+
'outil',
|
|
22
|
+
'circuits',
|
|
23
|
+
'groupe',
|
|
24
|
+
'mesure',
|
|
25
|
+
'outils',
|
|
26
|
+
'partage',
|
|
27
|
+
'references',
|
|
28
|
+
'engendres',
|
|
29
|
+
'flux',
|
|
30
|
+
'matieres',
|
|
31
|
+
'nuit',
|
|
32
|
+
'demarrage',
|
|
33
|
+
'rappel',
|
|
34
|
+
'plageDeNuit',
|
|
35
|
+
'sigle',
|
|
36
|
+
'lit',
|
|
37
|
+
'traces',
|
|
38
|
+
'donnees',
|
|
39
|
+
'part',
|
|
40
|
+
'poussee',
|
|
41
|
+
'langages',
|
|
42
|
+
];
|
|
43
|
+
const MOTIFS = [
|
|
44
|
+
new RegExp(`grillhouse\\.(?:${CLES.join('|')})\\b`, 'g'),
|
|
45
|
+
/\b(?:GRILLHOUSE|TURBO)_[A-Z0-9_]+/g,
|
|
46
|
+
/\bci:preparer\b/g,
|
|
47
|
+
/^#{1,6}\s*(?:La CI de main|La machine vierge)\b/gm,
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
/** Changes nothing: the charter is the project's (`restes`). */
|
|
51
|
+
export function migrer() {
|
|
52
|
+
return [];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** One line naming each setting the charter of <projet> describes, by its line; none if it names none. */
|
|
56
|
+
export function restes(projet) {
|
|
57
|
+
const fichier = path.join(projet, 'CLAUDE.md');
|
|
58
|
+
if (!existsSync(fichier)) {
|
|
59
|
+
return [];
|
|
60
|
+
}
|
|
61
|
+
const noms = [];
|
|
62
|
+
readFileSync(fichier, 'utf8')
|
|
63
|
+
.split('\n')
|
|
64
|
+
.forEach((ligne, i) => {
|
|
65
|
+
for (const motif of MOTIFS) {
|
|
66
|
+
for (const m of ligne.matchAll(motif)) {
|
|
67
|
+
const nomTrouve = m[0].replace(/^#+\s*/, '');
|
|
68
|
+
const marque = `${nomTrouve} l.${i + 1}`;
|
|
69
|
+
if (!noms.includes(marque)) {
|
|
70
|
+
noms.push(marque);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
if (noms.length === 0) {
|
|
76
|
+
return [];
|
|
77
|
+
}
|
|
78
|
+
return [
|
|
79
|
+
`CLAUDE.md, rubrique « Commandes » : la charte décrit des réglages du cadre (${noms.join(', ')}). La charte d'un projet n'en décrit aucun : leur liste et ce que chacun règle sont au document de l'installation (node_modules/@roomi-fields/grillhouse/docs/architecture/installation.md, §4.2 et §4.3), qui suit la version installée. Retire ces descriptions, et mets à leur place la ligne de renvoi du gabarit (node_modules/@roomi-fields/grillhouse/cadre/templates/projet/CLAUDE.md, rubrique « Commandes ») ; la montée ne réécrit jamais ta charte.`,
|
|
80
|
+
];
|
|
81
|
+
}
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
// are inscribed, frozen, and the entry of a guard that receives its migration is pruned.
|
|
20
20
|
// - It plays at the frame only: scripts installed under node_modules, or outside the root, are the
|
|
21
21
|
// frame's, whose debt the frame holds; a project that updates sees none refused.
|
|
22
|
+
//
|
|
23
|
+
// The list of the guards: docs/architecture/tests.md §3.4; their debt: §5.5.
|
|
22
24
|
import { existsSync, readdirSync, readFileSync } from 'node:fs';
|
|
23
25
|
import path from 'node:path';
|
|
24
26
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
package/scripts/migrations.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// The migrations of a project from one version of the frame to the next, as the transforms of
|
|
2
2
|
// `npx @turbo/codemod migrate`: one module per change of form, written once, in
|
|
3
3
|
// scripts/migrations/<version>-<nom>.mjs, which `grillhouse maj` plays (scripts/grillhouse-maj.mjs).
|
|
4
|
+
// The mechanism is installation.md §5.4 (packages/grillhouse/docs/architecture/).
|
|
4
5
|
//
|
|
5
6
|
// - A migration exports `version` (the version of the package that brings the change of form),
|
|
6
7
|
// `nom` and `migrer(projet)`, which brings the project at <projet> to the new form and returns
|
|
@@ -46,6 +47,8 @@ import * as pousseeRetiree from './migrations/0.48.0-poussee-retiree.mjs';
|
|
|
46
47
|
import * as ciDeclencheeParLaFile from './migrations/0.48.0-ci-declenchee-par-la-file.mjs';
|
|
47
48
|
import * as reservationDeTroisCoeurs from './migrations/0.49.0-reservation-de-trois-coeurs.mjs';
|
|
48
49
|
|
|
50
|
+
import * as reglagesHorsDeLaCharte from './migrations/0.50.0-reglages-hors-de-la-charte.mjs';
|
|
51
|
+
|
|
49
52
|
/** The migrations of the core. */
|
|
50
53
|
export const MIGRATIONS = [
|
|
51
54
|
crochetsDeSeance,
|
|
@@ -69,6 +72,7 @@ export const MIGRATIONS = [
|
|
|
69
72
|
pousseeRetiree,
|
|
70
73
|
ciDeclencheeParLaFile,
|
|
71
74
|
reservationDeTroisCoeurs,
|
|
75
|
+
reglagesHorsDeLaCharte,
|
|
72
76
|
];
|
|
73
77
|
|
|
74
78
|
/**
|
package/scripts/newday.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// `grillhouse newday`: sets the day's marker of the project to now (scripts/tableau.mjs,
|
|
2
2
|
// `poserLeRepere`). FAITS AUJOURD'HUI and the board's « rejetés » and « validés » cases then count
|
|
3
|
-
// only since it, while « new » and « →check » stay
|
|
4
|
-
//
|
|
3
|
+
// only since it, while « new » and « →check » stay. The mod's command /grillhouse:newday runs it
|
|
4
|
+
// (greffon.md, §4.1, the day's marker).
|
|
5
5
|
import { pathToFileURL } from 'node:url';
|
|
6
6
|
import { poserLeRepere } from './tableau.mjs';
|
|
7
7
|
|