All checks were successful
CI / Build, Test & Publish (push) Successful in 4m11s
Introduce @gram-lang/scheduler, work plan views, mise en place modes, comments option, and CLI/editor integrations.
275 lines
5.4 KiB
JSON
275 lines
5.4 KiB
JSON
{
|
|
"title": "Warn Relative Quantity Unknown Mass",
|
|
"slug": "warn-relative-quantity-unknown-mass",
|
|
"meta": {
|
|
"title": "Warn Relative Quantity Unknown Mass"
|
|
},
|
|
"registry": {
|
|
"ingredients": {
|
|
"flour": {
|
|
"id": "flour",
|
|
"name": "flour",
|
|
"default_unit": "flask"
|
|
},
|
|
"water": {
|
|
"id": "water",
|
|
"name": "water"
|
|
}
|
|
},
|
|
"cookware": {}
|
|
},
|
|
"shopping_list": [
|
|
{
|
|
"id": "flour",
|
|
"name": "flour",
|
|
"_usageIds": [
|
|
"1"
|
|
],
|
|
"qty": 1,
|
|
"unit": "flask"
|
|
},
|
|
{
|
|
"id": "water",
|
|
"name": "water",
|
|
"_usageIds": [
|
|
"2"
|
|
],
|
|
"relative": true,
|
|
"variable_entries": [
|
|
"50% of flour"
|
|
]
|
|
}
|
|
],
|
|
"cookware": [],
|
|
"sections": [
|
|
{
|
|
"title": "Section",
|
|
"ingredients": [
|
|
{
|
|
"id": "flour",
|
|
"_usageId": "1",
|
|
"qty": 1,
|
|
"unit": "flask"
|
|
},
|
|
{
|
|
"id": "water",
|
|
"_usageId": "2",
|
|
"qty": {
|
|
"type": "RelativeQuantity",
|
|
"percent": 50,
|
|
"target": "flour",
|
|
"referenceType": "ingredient",
|
|
"loc": {
|
|
"start": 103,
|
|
"end": 114
|
|
}
|
|
},
|
|
"dependencies": [
|
|
"flour"
|
|
],
|
|
"formula": {
|
|
"raw": "50% of flour",
|
|
"target": "flour",
|
|
"percent": 50,
|
|
"isGhost": false
|
|
}
|
|
}
|
|
],
|
|
"cookware": [],
|
|
"steps": [
|
|
{
|
|
"type": "step",
|
|
"content": [
|
|
"Add ",
|
|
{
|
|
"id": "flour",
|
|
"_usageId": "1",
|
|
"qty": 1,
|
|
"unit": "flask"
|
|
},
|
|
"then mix in ",
|
|
{
|
|
"id": "water",
|
|
"_usageId": "2",
|
|
"qty": {
|
|
"type": "RelativeQuantity",
|
|
"percent": 50,
|
|
"target": "flour",
|
|
"referenceType": "ingredient",
|
|
"loc": {
|
|
"start": 103,
|
|
"end": 114
|
|
}
|
|
},
|
|
"dependencies": [
|
|
"flour"
|
|
],
|
|
"formula": {
|
|
"raw": "50% of flour",
|
|
"target": "flour",
|
|
"percent": 50,
|
|
"isGhost": false
|
|
}
|
|
},
|
|
"."
|
|
],
|
|
"timings": {
|
|
"start": 0,
|
|
"end": 2,
|
|
"activeDuration": 2
|
|
}
|
|
}
|
|
],
|
|
"metrics": {
|
|
"totalMass": 0,
|
|
"massStatus": "incomplete",
|
|
"missingMassIngredients": [
|
|
"flour",
|
|
"water"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"warnings": [
|
|
{
|
|
"code": "RELATIVE_QUANTITY_UNKNOWN_MASS",
|
|
"message": "Cannot compute relative quantity for 'water' because the mass of target 'flour' is unknown.",
|
|
"item": "water"
|
|
},
|
|
{
|
|
"code": "UNKNOWN_MASS",
|
|
"message": "Cannot calculate mass for \"flour\" — omitted from nutritional totals."
|
|
}
|
|
],
|
|
"metrics": {
|
|
"totalTime": 4,
|
|
"totalBreakdown": [
|
|
{
|
|
"label": "section_active:Section",
|
|
"duration": 2
|
|
}
|
|
],
|
|
"idleTime": 0,
|
|
"activeTime": 2,
|
|
"activeBreakdown": [
|
|
{
|
|
"label": "section_active:Section",
|
|
"duration": 2
|
|
}
|
|
],
|
|
"preparationTime": 2,
|
|
"prepBreakdown": [
|
|
{
|
|
"label": "ingredients_overhead",
|
|
"duration": 2
|
|
}
|
|
],
|
|
"totalMass": 0,
|
|
"massStatus": "incomplete",
|
|
"missingMassIngredients": [
|
|
"flour",
|
|
"water"
|
|
],
|
|
"nutrition": {
|
|
"total": {
|
|
"calories": 0,
|
|
"fat": 0,
|
|
"carbs": 0,
|
|
"protein": 0
|
|
},
|
|
"isEstimate": false,
|
|
"coverage": 0,
|
|
"warnings": [
|
|
{
|
|
"code": "UNKNOWN_MASS",
|
|
"message": "Cannot calculate mass for \"flour\" — omitted from nutritional totals."
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"miseEnPlace": [
|
|
{
|
|
"section": 0,
|
|
"duration": 2,
|
|
"items": [
|
|
{
|
|
"kind": "gather",
|
|
"target": "ingredient",
|
|
"count": 2,
|
|
"duration": 2
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"tasks": {
|
|
"tasks": [
|
|
{
|
|
"id": "s0.prep",
|
|
"kind": "prep",
|
|
"section": 0,
|
|
"duration": {
|
|
"nominal": 2
|
|
},
|
|
"items": [
|
|
{
|
|
"kind": "gather",
|
|
"target": "ingredient",
|
|
"count": 2,
|
|
"duration": 2
|
|
}
|
|
],
|
|
"after": []
|
|
},
|
|
{
|
|
"id": "s0.0",
|
|
"kind": "step",
|
|
"section": 0,
|
|
"step": 0,
|
|
"duration": {
|
|
"nominal": 2
|
|
},
|
|
"after": []
|
|
}
|
|
],
|
|
"sections": [
|
|
{
|
|
"day": 0
|
|
}
|
|
]
|
|
},
|
|
"schedule": {
|
|
"miseEnPlace": "perSection",
|
|
"rests": "shortest",
|
|
"totalTime": 4,
|
|
"activeTime": 2,
|
|
"preparationTime": 2,
|
|
"idleTime": 0,
|
|
"blocks": [
|
|
{
|
|
"kind": "prep",
|
|
"task": "s0.prep",
|
|
"section": 0,
|
|
"start": 0,
|
|
"end": 2
|
|
},
|
|
{
|
|
"kind": "step",
|
|
"task": "s0.0",
|
|
"section": 0,
|
|
"step": 0,
|
|
"start": 2,
|
|
"end": 4
|
|
}
|
|
],
|
|
"days": [
|
|
{
|
|
"day": 0,
|
|
"start": 0,
|
|
"end": 4,
|
|
"sections": [
|
|
0
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|