@roomi-fields/grillhouse 0.53.0 → 0.54.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 +54 -0
- package/cadre/templates/projet/docs/agents/issue-tracker.md +2 -2
- package/charte.md +12 -0
- package/dist/temporal/circuit/deroule.js +5 -9
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/installation.d.ts +15 -2
- package/dist/temporal/installation.js +69 -17
- package/dist/temporal/installation.js.map +1 -1
- package/docs/INTERFACE.md +21 -1
- package/docs/architecture/circuit.md +3 -3
- package/docs/architecture/entree.md +4 -4
- package/docs/architecture/greffon.md +28 -17
- package/docs/architecture/installation.md +21 -11
- package/docs/architecture/machine.md +1 -1
- package/docs/architecture/tests.md +1 -1
- package/hooks/register.tsx +50 -24
- package/package.json +1 -1
- package/scripts/aiguillage.mjs +4 -2
- package/scripts/bd-garde.mjs +69 -0
- package/scripts/ci-de-main.mjs +259 -56
- package/scripts/circuit.mjs +20 -5
- package/scripts/commandes-composees.mjs +1 -1
- package/scripts/droits.mjs +11 -4
- package/scripts/file-des-tickets.mjs +27 -9
- package/scripts/greffons.mjs +282 -17
- package/scripts/langages/c/commandes.mjs +1 -1
- package/scripts/langages/cargo/commandes.mjs +1 -1
- package/scripts/langages/cargo/tailles-des-tests.mjs +115 -6
- package/scripts/langages/python/commandes.mjs +1 -1
- package/scripts/langages/typescript/code-mort.mjs +36 -3
- package/scripts/langages/typescript/migrations/configurations-en-commonjs.mjs +95 -24
- package/scripts/langages/typescript/mise-a-jour.mjs +49 -12
- package/scripts/langages/typescript/parcours.mjs +5 -1
- package/scripts/langages.d.mts +6 -0
- package/scripts/langages.mjs +6 -0
- package/scripts/lire.mjs +236 -0
- package/scripts/migrations/cout-des-jetons-au-registre.mjs +136 -0
- package/scripts/migrations/lire-un-ticket.mjs +46 -0
- package/scripts/migrations.mjs +4 -0
- package/scripts/montee.mjs +123 -47
- package/scripts/nuit.sh +21 -12
- package/scripts/registre.d.mts +7 -1
- package/scripts/registre.mjs +114 -102
- package/scripts/resultats.mjs +15 -5
- package/scripts/retirer-copie.sh +7 -0
- package/scripts/sous-commandes.mjs +1 -0
- package/scripts/suiveur.mjs +12 -4
- package/scripts/superviseur.mjs +111 -31
- package/scripts/tableau.mjs +527 -119
- package/scripts/tarifs.mjs +67 -0
- package/scripts/ticket-du-circuit.mjs +3 -4
- package/scripts/transitions.d.mts +0 -5
- package/scripts/transitions.mjs +3 -13
- package/scripts/verdict-de-la-nuit.mjs +2 -2
- package/skills/explorateur/SKILL.md +10 -5
- package/skills/mesure/SKILL.md +4 -3
- package/skills/pitmaster/SKILL.md +18 -4
- package/skills/pitmaster/references/erreurs.md +4 -2
- package/skills/pitmaster/references/tour.md +11 -4
- package/types/index.d.ts +3 -1
- package/scripts/base-des-workflows.mjs +0 -58
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// The price of the tokens of the frame's models, in dollars per million tokens, as the table of
|
|
2
|
+
// LiteLLM that ccusage reads publishes it: the input, the output, a read of the cache, a write of
|
|
3
|
+
// the cache kept five minutes, and one kept an hour. A model with a `palier` takes the tariff of
|
|
4
|
+
// its upper tier for a request of more than `palier.au` input tokens, cache included. Those of
|
|
5
|
+
// Sonnet 5.5 and Opus 5.5 give the total Claude Code wrote for each of 25 sessions without
|
|
6
|
+
// sub-agent, to the thousandth.
|
|
7
|
+
const OPUS_5 = { entree: 5, sortie: 25, lecture: 0.5, ecriture5m: 6.25, ecriture1h: 10 };
|
|
8
|
+
|
|
9
|
+
export const TARIFS = {
|
|
10
|
+
'claude-fable-5-2': { entree: 8, sortie: 40, lecture: 0.2, ecriture5m: 10, ecriture1h: 16 },
|
|
11
|
+
'claude-opus-5': OPUS_5,
|
|
12
|
+
'claude-opus-4-8': OPUS_5,
|
|
13
|
+
'claude-sonnet-5-5': { entree: 2, sortie: 10, lecture: 0.1, ecriture5m: 2.5, ecriture1h: 4 },
|
|
14
|
+
'claude-opus-5-5': { entree: 4, sortie: 20, lecture: 0.2, ecriture5m: 5, ecriture1h: 8 },
|
|
15
|
+
'claude-haiku-4-5': { entree: 1, sortie: 5, lecture: 0.1, ecriture5m: 1.25, ecriture1h: 2 },
|
|
16
|
+
'claude-haiku-5-5': {
|
|
17
|
+
entree: 0.1,
|
|
18
|
+
sortie: 0.5,
|
|
19
|
+
lecture: 0.01,
|
|
20
|
+
ecriture5m: 0.125,
|
|
21
|
+
ecriture1h: 0.2,
|
|
22
|
+
palier: {
|
|
23
|
+
au: 100_000,
|
|
24
|
+
entree: 0.5,
|
|
25
|
+
sortie: 2.5,
|
|
26
|
+
lecture: 0.05,
|
|
27
|
+
ecriture5m: 0.625,
|
|
28
|
+
ecriture1h: 1,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// What marks, after its model's name, the usage of the requests of the upper tier.
|
|
34
|
+
const AU_DESSUS = ' (palier supérieur)';
|
|
35
|
+
|
|
36
|
+
// The tariff of the model <modele>: that of its name, else of its name without its date.
|
|
37
|
+
const tarifDe = modele => TARIFS[modele] ?? TARIFS[modele.replace(/-\d{8}$/, '')];
|
|
38
|
+
|
|
39
|
+
// The key under which the usage by model counts one request of <modele>, its usage <u> (`{ entree,
|
|
40
|
+
// sortie, lecture, ecriture5m, ecriture1h }`): its name, marked when the request is of the upper
|
|
41
|
+
// tier.
|
|
42
|
+
export function cleDuTarif(modele, u) {
|
|
43
|
+
const au = tarifDe(modele)?.palier?.au;
|
|
44
|
+
const entree = u.entree + u.lecture + u.ecriture5m + u.ecriture1h;
|
|
45
|
+
return au !== undefined && entree > au ? `${modele}${AU_DESSUS}` : modele;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// The cost of the usage by model <modeles> (`{ <clé>: { entree, sortie, lecture, ecriture5m,
|
|
49
|
+
// ecriture1h } }`, tokens, each key a model's name or one `cleDuTarif` gives), or null when a model
|
|
50
|
+
// without a tariff spent tokens.
|
|
51
|
+
export function coutDe(modeles) {
|
|
52
|
+
let cout = 0;
|
|
53
|
+
for (const [cle, u] of Object.entries(modeles ?? {})) {
|
|
54
|
+
const parts = Object.entries(u);
|
|
55
|
+
if (parts.every(([, n]) => !n)) {
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
const haut = cle.endsWith(AU_DESSUS);
|
|
59
|
+
const base = tarifDe(haut ? cle.slice(0, -AU_DESSUS.length) : cle);
|
|
60
|
+
const tarif = haut ? base?.palier : base;
|
|
61
|
+
if (!tarif) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
cout += parts.reduce((m, [k, n]) => m + n * (tarif[k] ?? 0), 0) / 1e6;
|
|
65
|
+
}
|
|
66
|
+
return cout;
|
|
67
|
+
}
|
|
@@ -10,7 +10,7 @@ import { spawnSync } from 'node:child_process';
|
|
|
10
10
|
import { appendFileSync, existsSync, readFileSync } from 'node:fs';
|
|
11
11
|
import { gesteDe } from './etapes.mjs';
|
|
12
12
|
import { paquetsDuLangage } from './enveloppe/paquets-du-plan.mjs';
|
|
13
|
-
import {
|
|
13
|
+
import { composantsLisibles, langageDe } from './langages.mjs';
|
|
14
14
|
import { AUTEUR_DU_CIRCUIT, PREFIXE, emettre, rendusDe, sansCouleurs } from './effets.mjs';
|
|
15
15
|
|
|
16
16
|
// The author of a comment, the circuit's, and the start of its lines: those of its one writer.
|
|
@@ -68,9 +68,8 @@ export const enUneLigne = t =>
|
|
|
68
68
|
// root (a crate whose workspace is its own, as OSC Bridge's).
|
|
69
69
|
export const composantsDe = racine => paquetsDuLangage(langageDe(racine), racine);
|
|
70
70
|
|
|
71
|
-
// The same components, still read in a copy its tool no longer loads
|
|
72
|
-
|
|
73
|
-
export const composantsLisibles = racine => paquetsDuLangage(langageDeLaCopie(racine), racine);
|
|
71
|
+
// The same components, still read in a copy its tool no longer loads.
|
|
72
|
+
export { composantsLisibles };
|
|
74
73
|
|
|
75
74
|
// Every comment at the ticket, in their order, `{ author, text }` as Beads gives them, then those
|
|
76
75
|
// emitted and not yet played; a failed read throws.
|
|
@@ -17,11 +17,6 @@ export interface EntreeDeLaTransition {
|
|
|
17
17
|
ticket: { id: string; paquets: string[]; sorte: unknown; copie: string; circuit?: string | null };
|
|
18
18
|
reprend?: boolean;
|
|
19
19
|
faits?: Record<string, unknown>;
|
|
20
|
-
/**
|
|
21
|
-
* The markers of the workflow of a ticket (`patched`), each true when the run carries it; a run
|
|
22
|
-
* recorded before a marker decides as before it.
|
|
23
|
-
*/
|
|
24
|
-
marqueurs?: { attributionAvantSansLivraison?: boolean };
|
|
25
20
|
}
|
|
26
21
|
|
|
27
22
|
/** The next fact to read, with what the step decided before it; or the decision of the step. */
|
package/scripts/transitions.mjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// reads no file, launches no process and imports no module that does (a guard holds it:
|
|
7
7
|
// tests/unit/transitions.spec.ts).
|
|
8
8
|
//
|
|
9
|
-
// `transition({ etat, memoire, ticket, reprend, faits
|
|
9
|
+
// `transition({ etat, memoire, ticket, reprend, faits })`:
|
|
10
10
|
//
|
|
11
11
|
// - `etat`, the run at its step: `{ etape, tentative, rapport, finale, relanceSurLeRefus }`;
|
|
12
12
|
// - `memoire`, what the circuit keeps between steps (`controlesRouges`, `renvoiAuTestwriter`,
|
|
@@ -15,10 +15,7 @@
|
|
|
15
15
|
// - `ticket`, `{ id, paquets, sorte, copie, circuit }`, `circuit` being `long`, `court` or
|
|
16
16
|
// `direct` (without it, the rule decides as a long or short circuit);
|
|
17
17
|
// - `reprend`, whether this step is the first of a `--reprendre`;
|
|
18
|
-
// - `faits`, the facts read for this step, by their name
|
|
19
|
-
// - `marqueurs`, the markers of the workflow of a ticket (`patched`), each true when the run
|
|
20
|
-
// carries it: `attributionAvantSansLivraison`, without which red checks after a developpeur who
|
|
21
|
-
// had nothing to deliver stop before any attribution, as a run recorded before it replays.
|
|
18
|
+
// - `faits`, the facts read for this step, by their name.
|
|
22
19
|
//
|
|
23
20
|
// It returns either the next fact to read, `{ besoin: { fait, ...parametres }, effets, memoire }` (a
|
|
24
21
|
// session, a pass, a reading of the copy), which the circuit reads and gives back in `faits` with
|
|
@@ -608,7 +605,7 @@ export function transition(entree) {
|
|
|
608
605
|
}
|
|
609
606
|
}
|
|
610
607
|
|
|
611
|
-
function decider({ etat, memoire = {}, ticket, reprend = false
|
|
608
|
+
function decider({ etat, memoire = {}, ticket, reprend = false }, lire, partiel) {
|
|
612
609
|
let { etape, tentative, rapport, finale } = etat;
|
|
613
610
|
let relanceSurLeRefus = Boolean(etat.relanceSurLeRefus);
|
|
614
611
|
const maj = {};
|
|
@@ -1349,13 +1346,6 @@ function decider({ etat, memoire = {}, ticket, reprend = false, marqueurs = {} }
|
|
|
1349
1346
|
`Le ticket est mécanique (${ticket.sorte.raison}) : ni testwriter ni développeur ne lève ce rouge du lot de sa commande. Le superviseur fait corriger le lot (\`--depuis developpeur\`, le rouge en \`--contexte\`), corrige le geste dans la copie puis \`--reprendre\`, ou arrête le circuit (\`--arreter\`).`
|
|
1350
1347
|
);
|
|
1351
1348
|
}
|
|
1352
|
-
// A run without the marker `attribution-avant-sans-livraison` of the workflow of a ticket
|
|
1353
|
-
// (src/temporal/circuit/deroule.ts) keeps the former order: the stop of a developpeur who had
|
|
1354
|
-
// nothing to deliver before any attribution, the fact « portes » not read, as its history
|
|
1355
|
-
// replays.
|
|
1356
|
-
if (k.rouge && rien && !marqueurs.attributionAvantSansLivraison) {
|
|
1357
|
-
return arret('sans-livraison', rien, CODE);
|
|
1358
|
-
}
|
|
1359
1349
|
// The red goes back to the step that carries it, by the files it names (scripts/reprise.mjs).
|
|
1360
1350
|
const portes =
|
|
1361
1351
|
k.rouge && suivante <= SEANCES_DEVELOPPEUR ? lire('portes', { lieux: k.lieux }) : null;
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
11
11
|
import path from 'node:path';
|
|
12
12
|
import { fileURLToPath } from 'node:url';
|
|
13
|
+
import { A_REPASSER } from './codes-de-sortie.mjs';
|
|
13
14
|
|
|
14
|
-
const CODE_A_REPASSER = 75;
|
|
15
15
|
const FICHIERS = { pc2: 'verdict-pc2', pc3: 'verdict' };
|
|
16
16
|
const fichierDuVerdict = (commun, part) => path.join(commun, 'nuit', FICHIERS[part]);
|
|
17
17
|
|
|
@@ -22,7 +22,7 @@ const fichierDuVerdict = (commun, part) => path.join(commun, 'nuit', FICHIERS[pa
|
|
|
22
22
|
* @returns {'vert' | 'rouge' | null} the verdict written, null when the part is to be replayed
|
|
23
23
|
*/
|
|
24
24
|
export function noterLeVerdict(commun, code, part = 'pc3') {
|
|
25
|
-
if (code ===
|
|
25
|
+
if (code === A_REPASSER) {
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
28
28
|
const verdict = code === 0 ? 'vert' : 'rouge';
|
|
@@ -213,9 +213,12 @@ Pour classer une découverte qui rapporte un défaut, je charge la compétence
|
|
|
213
213
|
règles qu'elle prend au plan : en lecture seule, sans lancer aucun test. Ainsi le verdict repose sur
|
|
214
214
|
la cause.
|
|
215
215
|
|
|
216
|
-
1. **Le geste, par découverte.** Je la lis (`
|
|
217
|
-
devenu : `
|
|
218
|
-
(`git log --oneline --grep <ticket>`, `git show <commit>`).
|
|
216
|
+
1. **Le geste, par découverte.** Je la lis (`npx grillhouse lire <id>`), puis son ticket parent et ce qu'il est
|
|
217
|
+
devenu : `npx grillhouse lire <ticket>`, son commit sur main
|
|
218
|
+
(`git log --oneline --grep <ticket>`, `git show <commit>`). Quand un sommaire nomme une
|
|
219
|
+
section écartée ou des notes, je joue `--description` avant d'agir, et je déplie par son numéro
|
|
220
|
+
(`npx grillhouse lire <ticket> <numéro>`) chaque commentaire dont le geste a besoin, une
|
|
221
|
+
passation en entier. Je rejoue sa preuve sur main, par
|
|
219
222
|
l'index ou une lecture du code. Avant de conclure sur une erreur de types de l'export d'un
|
|
220
223
|
paquet, je construis ce paquet (`npm run build -- --filter=<paquet>...`) : un export lu
|
|
221
224
|
d'avant sa construction ment. Je ne lance aucun test ni aucune passe, ni la suite des tests ni
|
|
@@ -250,8 +253,10 @@ qu'aucune preuve n'a tranché.
|
|
|
250
253
|
|
|
251
254
|
## Sur un ticket d'exploration
|
|
252
255
|
|
|
253
|
-
Je lis mon ticket (`
|
|
254
|
-
|
|
256
|
+
Je lis mon ticket (`npx grillhouse lire <ticket>`), avec `--description` avant d'agir quand le
|
|
257
|
+
sommaire nomme une section écartée ou des notes, et je déplie par son numéro
|
|
258
|
+
(`npx grillhouse lire <ticket> <numéro>`) chaque commentaire dont le geste a besoin, une passation
|
|
259
|
+
en entier ; puis le cadre et l'interface des composants qu'il nomme. Je n'écris rien au ticket : mes écritures passent par le superviseur.
|
|
255
260
|
|
|
256
261
|
1. **Le relevé.** Je décris la construction réelle de ce que le ticket touche, avec la consigne
|
|
257
262
|
du relevé structurel, restreinte à ce périmètre. Chaque constat porte son fichier et son
|
package/skills/mesure/SKILL.md
CHANGED
|
@@ -45,9 +45,10 @@ dans le compte rendu, et attend le responsable.
|
|
|
45
45
|
9. **Ralentir après une trouvaille** : quand tu viens de trouver, tu vérifies que ton outil répond
|
|
46
46
|
à la question posée, et non à sa voisine. Ainsi la satisfaction de trouver ne saute pas la
|
|
47
47
|
vérification.
|
|
48
|
-
10. **La sortie entière** : tu conclus sur la sortie complète d'une commande
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
10. **La sortie entière** : tu conclus sur la sortie complète d'une commande, gardée et cherchée
|
|
49
|
+
dans la variable du script ; seul ce que le script rend se limite au sommaire et à la partie
|
|
50
|
+
dépliée. Tu tronques la sortie elle-même seulement quand tu sais déjà ce que tu cherches. Ainsi
|
|
51
|
+
rien de ce qui contredit ta conclusion ne reste hors de vue.
|
|
51
52
|
11. **On répare l'outil, et le témoin reste** : quand un témoin contredit ton outil, c'est l'outil
|
|
52
53
|
qui se corrige. Ainsi l'outil devient juste pour toutes les mesures suivantes.
|
|
53
54
|
12. **On répare tous les jumeaux** : un défaut corrigé dans un outil se cherche et se corrige dans
|
|
@@ -84,8 +84,13 @@ l'état de son circuit : la note ne la recopie pas.
|
|
|
84
84
|
- **Je réécris la note depuis la note courante**, chaque question au responsable encore ouverte
|
|
85
85
|
recopiée : une question n'en sort que tranchée, sa réponse à son ticket. Ainsi aucune question ne
|
|
86
86
|
se perd d'un jalon à l'autre.
|
|
87
|
-
- **
|
|
88
|
-
|
|
87
|
+
- **Le tour de reprise, et tout tour qui change ce que la note dit hors d'un jalon voulu**, la
|
|
88
|
+
mettent à jour par `npx grillhouse superviseur --note <fichier>` : la note est remplacée, aucun
|
|
89
|
+
jalon n'est déclaré. Seul un tour postérieur à une déclaration pas encore jouée la réécrit et
|
|
90
|
+
redéclare le jalon par `--jalon`. Ainsi la séance suivante lit l'état présent, et une reprise
|
|
91
|
+
n'en appelle pas une autre.
|
|
92
|
+
- **Un renouvellement au jalon par 30 minutes au plus** : une déclaration faite avant remplace la
|
|
93
|
+
note, et la commande dit à partir de quelle heure une déclaration vaut.
|
|
89
94
|
- **Hors jalon, une question qui naît** s'ajoute à la note par
|
|
90
95
|
`npx grillhouse superviseur --question <fichier>`, écrite comme elle se pose au responsable :
|
|
91
96
|
contexte, exemple, règle, référence mature, existant, exigence du domaine, recommandation,
|
|
@@ -133,6 +138,17 @@ l'état de son circuit : la note ne la recopie pas.
|
|
|
133
138
|
`npx grillhouse retirer-copie <copie>`, qui retire avec elle le dossier de travail de son
|
|
134
139
|
circuit (`<copie>.travail`). Ainsi le dépôt garde seulement le travail commité, et rien ne se
|
|
135
140
|
supprime sans avoir été lu.
|
|
141
|
+
- **L'enquête part à un sous-agent neuf** : une enquête cherche une réponse ou une cause qu'aucun
|
|
142
|
+
texte ne place sur un objet nommé (la cause d'un rouge dans un journal ou dans le code, le relevé
|
|
143
|
+
de l'existant dans le code). Toute lecture de code ou d'un journal qu'elle demande, même courte,
|
|
144
|
+
et toute autre lecture de plus de quelques dizaines de lignes partent au sous-agent, qui rend un
|
|
145
|
+
résumé court avec ses pièces ; je lis seulement ce résumé et la pièce qu'il cite. Me restent la
|
|
146
|
+
ligne que je vérifie à sa pièce, un ticket quelle que soit sa longueur (son sommaire, puis ses
|
|
147
|
+
parties), une commande du circuit et sa réponse courte, le regard sur un journal qui bouge pour
|
|
148
|
+
savoir un circuit vivant, et la lecture qu'un autre texte me confie sur un objet nommé. J'arrête
|
|
149
|
+
tout agent que j'ai lancé moi-même, pour une enquête ou autre chose, dès son rapport lu
|
|
150
|
+
(`TaskStop`). Ainsi ma séance porte les conclusions, leur détail reste chez les agents, et elle
|
|
151
|
+
reste courte.
|
|
136
152
|
- **Les fichiers temporaires d'un sous-agent** : la consigne d'un sous-agent que je lance
|
|
137
153
|
l'envoie écrire ses fichiers temporaires dans le scratchpad de ma séance, légers, jamais une
|
|
138
154
|
copie du dépôt, un `node_modules` ni un cache. Le dossier temporaire d'une séance que le cadre
|
|
@@ -255,8 +271,6 @@ l'état de son circuit : la note ne la recopie pas.
|
|
|
255
271
|
attente du responsable tant qu'une question d'un circuit attend ma réponse. Sans greffon, rien
|
|
256
272
|
n'est poussé : l'ouverture de séance liste les questions. Je ne sonde jamais les circuits
|
|
257
273
|
moi-même. Ainsi aucune question ne reste sans réponse par oubli.
|
|
258
|
-
- **J'arrête tout agent que j'ai lancé moi-même** dès son rapport lu (`TaskStop`). Ainsi ma
|
|
259
|
-
séance ne porte pas le détail des tickets, et elle reste courte.
|
|
260
274
|
- **Un ticket débloqué repart de son état** : l'état du travail est dans l'état du circuit, au
|
|
261
275
|
ticket et dans sa copie ; `--reprendre` repart de l'état (le document du circuit, §2.2). Ainsi
|
|
262
276
|
le travail fait sert à la reprise.
|
|
@@ -4,8 +4,10 @@ Ce que les outils du dépôt cachent, et que ni un script ni une autre règle ne
|
|
|
4
4
|
|
|
5
5
|
## Lire juste
|
|
6
6
|
|
|
7
|
-
- **`bd show --json` peut taire la passation** : un ticket se lit par `
|
|
8
|
-
|
|
7
|
+
- **`bd show --json` peut taire la passation** : un ticket se lit par `npx grillhouse lire <id>`,
|
|
8
|
+
son sommaire, puis `--description` avant d'agir quand il nomme une section écartée ou des notes,
|
|
9
|
+
et chaque commentaire dont le geste a besoin, déplié par son numéro
|
|
10
|
+
(`npx grillhouse lire <id> <numéro>`, une passation en entier).
|
|
9
11
|
- **`bd --json` donne l'heure en UTC** : je la convertis avant de la comparer à une heure locale.
|
|
10
12
|
- **Une date de commit s'affiche complète** (`--date=iso`), et « ce soir » se vérifie par
|
|
11
13
|
`--since`.
|
|
@@ -59,10 +59,14 @@ une seule adresse, dans l'architecture.
|
|
|
59
59
|
```bash
|
|
60
60
|
bd list --status in_progress
|
|
61
61
|
bd list --all --json # fermés (closed_at) et créés (created_at) depuis le dernier tour
|
|
62
|
-
|
|
63
|
-
bd comments <id> # la passation vit ici
|
|
62
|
+
npx grillhouse lire <id> # le sommaire d'abord
|
|
64
63
|
```
|
|
65
64
|
|
|
65
|
+
**Je lis un ticket par son sommaire** (`npx grillhouse lire <id>`), puis `--description` avant
|
|
66
|
+
d'agir quand il nomme une section écartée ou des notes, et je déplie par son numéro
|
|
67
|
+
(`npx grillhouse lire <id> <numéro>`) chaque commentaire dont le geste a besoin, une passation en
|
|
68
|
+
entier. Ainsi je ne charge que ce que mon geste lit.
|
|
69
|
+
|
|
66
70
|
Cherche : un ticket fermé qui dit attendre encore quelque chose ; un ticket en cours dont le
|
|
67
71
|
travail est commité ; un commit de produit sans ticket ; un ticket ouvert hors du chantier courant.
|
|
68
72
|
|
|
@@ -89,7 +93,8 @@ for k in grill testwriter ACCEPTÉ RENDU; do
|
|
|
89
93
|
"$(bd list --all --json | grep -oi "$k" | wc -l)"; done
|
|
90
94
|
```
|
|
91
95
|
|
|
92
|
-
**La passation
|
|
96
|
+
**La passation de chaque ticket fermé se lit en entier**, dépliée par son numéro
|
|
97
|
+
(`npx grillhouse lire <id> <numéro>`). Ainsi un ticket fermé sans
|
|
93
98
|
passation se voit, quel que soit le mot qu'elle emploie.
|
|
94
99
|
|
|
95
100
|
**Je signale une dérive du cadre quand plusieurs tickets fermés ne portent aucune trace du flux**
|
|
@@ -112,7 +117,9 @@ agents voient ce que le cadre attend.
|
|
|
112
117
|
|
|
113
118
|
## 7. Lancer et reprendre un agent
|
|
114
119
|
|
|
115
|
-
- Avant le lancement : `bd ready` et `
|
|
120
|
+
- Avant le lancement : `bd ready` et `npx grillhouse lire <id>` (dépendances, dernier commentaire,
|
|
121
|
+
déplié par son numéro ; `--description` quand le sommaire nomme une section écartée ou des
|
|
122
|
+
notes). **Un agent
|
|
116
123
|
part sur un ticket tranché**, dont les règles et les documents sont nommés. Ainsi il travaille
|
|
117
124
|
dans l'architecture, pas dans ses suppositions.
|
|
118
125
|
- Un agent se reprend avec `SendMessage` (chargé par `ToolSearch`, `select:SendMessage`) et son
|
package/types/index.d.ts
CHANGED
|
@@ -27,7 +27,8 @@ export type Fiche = {
|
|
|
27
27
|
// What the mod reads of `grillhouse tableau`: the board's lines, laid out there, the states' view
|
|
28
28
|
// (`vueEtats`: each state, its meaning, its tickets), each folded group whole (`groupes`), their
|
|
29
29
|
// cards, and the ticket that moved last. The board of several projects adds the folder of each
|
|
30
|
-
// ticket's project (`dossiers`).
|
|
30
|
+
// ticket's project (`dossiers`). `bd`: the command by which the pane calls Beads, resolved by the
|
|
31
|
+
// measure for the session's project; a name, or an absolute path.
|
|
31
32
|
export type Tableau = {
|
|
32
33
|
lignes: Ligne[]
|
|
33
34
|
vueEtats?: Ligne[]
|
|
@@ -35,6 +36,7 @@ export type Tableau = {
|
|
|
35
36
|
fiches: Record<string, Fiche>
|
|
36
37
|
dernier?: string | null
|
|
37
38
|
dossiers?: Record<string, string>
|
|
39
|
+
bd?: string
|
|
38
40
|
}
|
|
39
41
|
// `choisi`: the ticket whose card the pane shows; `element`: the line the keyboard is on; `grand`:
|
|
40
42
|
// the card fills the pane; `vue`: the lines shown, the board's, the states' view or one folded
|
|
@@ -1,58 +0,0 @@
|
|
|
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
|
|
3
|
-
// (`--base <commit>`, scripts/dernier-vert.mjs) for a push alone. A pull request, the call of the
|
|
4
|
-
// workflow by the release (workflow_call), the nightly schedule and any run without a push event play
|
|
5
|
-
// the complete pass, as `turbo --affected` takes its base (`TURBO_SCM_BASE`) from a push event.
|
|
6
|
-
//
|
|
7
|
-
// The control reads the text of each workflow of `.github/workflows`: a step that plays `verifier`
|
|
8
|
-
// with a base names, in its condition or in its own line, the event `push`, and, when it reads
|
|
9
|
-
// `github.event.before`, that this commit is not empty (the zeros of a first push are no base).
|
|
10
|
-
import { existsSync, readdirSync, readFileSync } from 'node:fs';
|
|
11
|
-
import path from 'node:path';
|
|
12
|
-
import { parse } from 'yaml';
|
|
13
|
-
|
|
14
|
-
const PUSH = /github\.event_name\s*==\s*'push'/;
|
|
15
|
-
const AVANT_NON_VIDE = /github\.event\.before\s*!=\s*''/;
|
|
16
|
-
|
|
17
|
-
// The faults of the base in the workflow of text <texte>, one line each; none when no step gives
|
|
18
|
-
// a base, or when each step that does is conditioned on a push.
|
|
19
|
-
export function erreursDeBase(texte) {
|
|
20
|
-
let flux;
|
|
21
|
-
try {
|
|
22
|
-
flux = parse(texte);
|
|
23
|
-
} catch (e) {
|
|
24
|
-
return [`le workflow ne se lit pas : ${e.message}`];
|
|
25
|
-
}
|
|
26
|
-
const erreurs = [];
|
|
27
|
-
for (const [nomDuJob, job] of Object.entries(flux?.jobs ?? {})) {
|
|
28
|
-
for (const etape of job?.steps ?? []) {
|
|
29
|
-
const run = String(etape.run ?? '');
|
|
30
|
-
if (!/\bverifier\b/.test(run) || !/--base\b/.test(run)) {
|
|
31
|
-
continue;
|
|
32
|
-
}
|
|
33
|
-
const t = `${job.if ?? ''}\n${etape.if ?? ''}\n${run}`;
|
|
34
|
-
const nom = `${nomDuJob} : ${etape.name ?? run.trim()}`;
|
|
35
|
-
if (!PUSH.test(t)) {
|
|
36
|
-
erreurs.push(`${nom} : la base se donne pour un push seulement (github.event_name == 'push')`);
|
|
37
|
-
} else if (/github\.event\.before/.test(t) && !AVANT_NON_VIDE.test(t)) {
|
|
38
|
-
erreurs.push(`${nom} : la base github.event.before se donne non vide (!= '')`);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return erreurs;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// The faults of the base in each workflow of `.github/workflows` of the repository at <racine>,
|
|
46
|
-
// each line led by the file.
|
|
47
|
-
export function erreursDesWorkflows(racine) {
|
|
48
|
-
const dossier = path.join(racine, '.github', 'workflows');
|
|
49
|
-
if (!existsSync(dossier)) {
|
|
50
|
-
return [];
|
|
51
|
-
}
|
|
52
|
-
return readdirSync(dossier)
|
|
53
|
-
.filter(f => /\.ya?ml$/.test(f))
|
|
54
|
-
.sort()
|
|
55
|
-
.flatMap(f =>
|
|
56
|
-
erreursDeBase(readFileSync(path.join(dossier, f), 'utf8')).map(e => `${f} : ${e}`)
|
|
57
|
-
);
|
|
58
|
-
}
|