mcp-marmiton 1.5.0 → 1.7.0
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/README.md +59 -11
- package/dist/index.js +686 -234
- package/dist/index.js.map +1 -1
- package/dist/marmiton/client.js +1 -1
- package/dist/marmiton/client.js.map +1 -1
- package/package.json +1 -1
- package/server.json +10 -6
package/README.md
CHANGED
|
@@ -81,9 +81,36 @@ landed somewhere the arithmetic did not put it, a half egg taken to a whole one
|
|
|
81
81
|
or 133.4 g written as 135 g.
|
|
82
82
|
|
|
83
83
|
Two rules are enforced. Scaling a recipe **down never asks for more** than the
|
|
84
|
-
original: half a sachet at factor 0.667
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
original: half a sachet at factor 0.667 stays half a sachet, never a whole one.
|
|
85
|
+
And scaling never **silently drops** an ingredient by rounding it to zero, which
|
|
86
|
+
is why small amounts come back as fractions.
|
|
87
|
+
|
|
88
|
+
**A counted thing is divided by what it holds, not by what holds it.** A boîte de
|
|
89
|
+
tomates is poured and the rest kept, a sachet de sucre vanillé is split by eye, a
|
|
90
|
+
feuille de gélatine is cut with scissors, a branche de thym is broken in two: all
|
|
91
|
+
of those land on a half. Half an oeuf would have to be
|
|
92
|
+
beaten and weighed, which is not an amount a recipe asks for, so a count of oeufs,
|
|
93
|
+
jaunes or blancs d'oeufs lands on a whole number. A few things are decided by what
|
|
94
|
+
they are: a clou de girofle and a zeste are counted whole, a pot and a bouteille
|
|
95
|
+
hold enough for a quarter to be a portion, a tranche is cut off
|
|
96
|
+
something larger and the board takes a corner off it in the same gesture, a
|
|
97
|
+
gousse d'ail is split in two and no finer, a blanc de poulet is
|
|
98
|
+
meat and halves, and a douzaine states a number of things rather than a measure
|
|
99
|
+
of them, so `2 douzaines d'escargots` at three quarters comes back as
|
|
100
|
+
`18 escargots`.
|
|
101
|
+
|
|
102
|
+
**A thing counted on its own is divided by the size of one against what a recipe
|
|
103
|
+
puts in.** Une crevette, une moule, une noisette, un grain de poivre, une baie de
|
|
104
|
+
genièvre, un anis étoilé is already a portion: a recipe counts twelve of them
|
|
105
|
+
and a smaller recipe puts one fewer in the pan, so they land on a whole number.
|
|
106
|
+
Un gigot, une baguette, un camembert, un ananas, un oignon, une pastèque, une
|
|
107
|
+
pintade, un poulet, un poireau sits at
|
|
108
|
+
the other end of that comparison, asked for by the one or the two and shared out
|
|
109
|
+
with a knife, so they go as far as the quarter. A cut carved off one of them
|
|
110
|
+
stops at the half, une cuisse and une aile being the portion the knife already
|
|
111
|
+
produced. Un jus stops at the half: half
|
|
112
|
+
the jus of a citron is taken by squeezing half the fruit, and a quarter of one
|
|
113
|
+
has to be poured out and measured back.
|
|
87
114
|
|
|
88
115
|
Approximate measures are quantities too. A pinch, a handful, a bouchon or a
|
|
89
116
|
ramequin has the size the cook gives it, and the recipe's proportion lives in how
|
|
@@ -94,7 +121,8 @@ converted into grams or spoons, where published equivalences span a fourfold
|
|
|
94
121
|
range; an order of magnitude belongs in a note, never in the quantity.
|
|
95
122
|
|
|
96
123
|
Ranges are read as one quantity: "2 à 3 gousses" doubled reads "4 à 6 gousses",
|
|
97
|
-
|
|
124
|
+
with `amount` holding the lower bound and `amountMax` the upper one. Where both
|
|
125
|
+
ends land on the same amount, the line states that amount once and says so.
|
|
98
126
|
|
|
99
127
|
A line that writes an article where a digit would go is read as one of the
|
|
100
128
|
measure that follows it: `un bouchon de rhum` scaled sixfold is
|
|
@@ -107,8 +135,10 @@ the line as published.
|
|
|
107
135
|
Each ingredient also carries `adjusted`, which says whether rounding moved the
|
|
108
136
|
number away from the exact product.
|
|
109
137
|
|
|
110
|
-
|
|
111
|
-
|
|
138
|
+
A shrinking line keeps the smallest share still worth measuring: a knife takes an
|
|
139
|
+
oignon to a quarter, a boîte or a sachet goes to a half, an oeuf stops at one.
|
|
140
|
+
Under that floor the amount is clamped up and **the line stops holding its share
|
|
141
|
+
of the recipe**. Half a sachet of
|
|
112
142
|
baking powder against three pots of flour comes out four times too strong that
|
|
113
143
|
way, so the ingredient and the response both say it happened rather than leaving
|
|
114
144
|
you to find out in the oven.
|
|
@@ -293,10 +323,25 @@ ailleurs que là où le calcul la mettait, un demi-œuf ramené à un œuf entie
|
|
|
293
323
|
133,4 g écrits 135 g.
|
|
294
324
|
|
|
295
325
|
Deux règles sont garanties. Réduire une recette **ne demande jamais davantage** que
|
|
296
|
-
l'originale : un demi-sachet au facteur 0,667
|
|
326
|
+
l'originale : un demi-sachet au facteur 0,667 reste un demi-sachet, jamais un
|
|
297
327
|
sachet entier. Et l'adaptation ne **supprime jamais** un ingrédient en l'arrondissant
|
|
298
328
|
à zéro, d'où les fractions pour les petites quantités.
|
|
299
329
|
|
|
330
|
+
**Un dénombrable se divise selon son contenu, pas selon son emballage.** Une boîte
|
|
331
|
+
de tomates se verse et le reste se garde, un sachet de sucre vanillé se partage à
|
|
332
|
+
l'œil, une feuille de gélatine se coupe aux ciseaux, une branche de thym se casse
|
|
333
|
+
en deux : tous tombent sur une demie. Un demi-œuf, lui,
|
|
334
|
+
demanderait de le battre et de le peser, ce qu'aucune recette ne demande : un
|
|
335
|
+
nombre d'œufs, de jaunes ou de blancs d'œufs tombe sur un entier. Quelques cas se
|
|
336
|
+
décident sur la nature de la chose : un clou de girofle et un zeste se comptent
|
|
337
|
+
entiers, un pot et une bouteille en contiennent assez pour qu'un quart soit une
|
|
338
|
+
portion, une tranche est déjà taillée dans plus grand et la planche lui reprend
|
|
339
|
+
un coin du même geste, une gousse d'ail se coupe en deux et pas plus fin, un
|
|
340
|
+
blanc de poulet est une viande et
|
|
341
|
+
se coupe en deux, et une douzaine
|
|
342
|
+
énonce un nombre de choses plutôt qu'une mesure, si bien que
|
|
343
|
+
« 2 douzaines d'escargots » réduites d'un quart reviennent en « 18 escargots ».
|
|
344
|
+
|
|
300
345
|
Les mesures approximatives sont des quantités elles aussi. Une pincée, une
|
|
301
346
|
poignée, un bouchon ou un ramequin ont la taille que le cuisinier leur donne,
|
|
302
347
|
et la proportion de la recette tient au nombre demandé : ce nombre est donc
|
|
@@ -307,8 +352,9 @@ note. Aucune conversion en grammes ni en cuillères : les
|
|
|
307
352
|
sa place dans une note, jamais dans la quantité.
|
|
308
353
|
|
|
309
354
|
Les fourchettes sont lues comme une seule quantité : « 2 à 3 gousses » doublé
|
|
310
|
-
donne « 4 à 6 gousses »,
|
|
311
|
-
|
|
355
|
+
donne « 4 à 6 gousses », `amount` portant la borne basse et `amountMax` la borne
|
|
356
|
+
haute. Quand les deux bornes tombent sur la même valeur, la ligne énonce cette
|
|
357
|
+
valeur une fois et le signale.
|
|
312
358
|
|
|
313
359
|
Une ligne qui écrit un article là où irait un chiffre est lue comme une unité de
|
|
314
360
|
la mesure qui suit : « un bouchon de rhum » multiplié par six donne « 6 bouchons
|
|
@@ -321,8 +367,10 @@ publiée.
|
|
|
321
367
|
Chaque ingrédient porte aussi `adjusted`, qui dit si l'arrondi a déplacé le
|
|
322
368
|
nombre par rapport au produit exact.
|
|
323
369
|
|
|
324
|
-
|
|
325
|
-
|
|
370
|
+
Une ligne qui rétrécit garde la plus petite part qui vaille encore la peine : le
|
|
371
|
+
couteau mène un oignon au quart, une boîte ou un sachet s'arrêtent à la demie, un
|
|
372
|
+
œuf s'arrête à l'unité. Sous ce plancher, la quantité est remontée et **la ligne
|
|
373
|
+
cesse de tenir sa part de la recette**. Un demi-sachet
|
|
326
374
|
de levure face à trois pots de farine ressort ainsi quatre fois trop dosé, donc
|
|
327
375
|
l'ingrédient et la réponse le disent, plutôt que de vous le laisser découvrir au
|
|
328
376
|
four.
|