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.
429 lines
7.9 KiB
JSON
429 lines
7.9 KiB
JSON
{
|
|
"meta": {},
|
|
"registry": {
|
|
"ingredients": {
|
|
"blancs": {
|
|
"id": "blancs",
|
|
"name": "blancs",
|
|
"is_intermediate": true
|
|
},
|
|
"egg": {
|
|
"id": "egg",
|
|
"name": "egg",
|
|
"default_unit": "g"
|
|
},
|
|
"jaunes": {
|
|
"id": "jaunes",
|
|
"name": "jaunes",
|
|
"is_intermediate": true
|
|
}
|
|
},
|
|
"cookware": {}
|
|
},
|
|
"shopping_list": [
|
|
{
|
|
"id": "egg",
|
|
"name": "egg",
|
|
"_usageIds": [
|
|
"1",
|
|
"2"
|
|
],
|
|
"qty": 300,
|
|
"unit": "g"
|
|
}
|
|
],
|
|
"cookware": [],
|
|
"sections": [
|
|
{
|
|
"title": "Blancs",
|
|
"ingredients": [
|
|
{
|
|
"id": "egg",
|
|
"_usageId": "1",
|
|
"qty": 200,
|
|
"unit": "g"
|
|
}
|
|
],
|
|
"cookware": [],
|
|
"steps": [
|
|
{
|
|
"type": "step",
|
|
"content": [
|
|
"Separate ",
|
|
{
|
|
"id": "egg",
|
|
"_usageId": "1",
|
|
"qty": 200,
|
|
"unit": "g"
|
|
},
|
|
"."
|
|
],
|
|
"timings": {
|
|
"start": 0,
|
|
"end": 2,
|
|
"activeDuration": 2
|
|
}
|
|
}
|
|
],
|
|
"intermediate_preparation": "blancs",
|
|
"module": {
|
|
"binding": "blancs",
|
|
"uri": "oeufs.gram",
|
|
"title": null,
|
|
"mode": "inline"
|
|
}
|
|
},
|
|
{
|
|
"title": "Jaunes",
|
|
"ingredients": [
|
|
{
|
|
"id": "egg",
|
|
"_usageId": "2",
|
|
"qty": 100,
|
|
"unit": "g"
|
|
}
|
|
],
|
|
"cookware": [],
|
|
"steps": [
|
|
{
|
|
"type": "step",
|
|
"content": [
|
|
"Separate ",
|
|
{
|
|
"id": "egg",
|
|
"_usageId": "2",
|
|
"qty": 100,
|
|
"unit": "g"
|
|
},
|
|
"."
|
|
],
|
|
"timings": {
|
|
"start": 2,
|
|
"end": 4,
|
|
"activeDuration": 2
|
|
}
|
|
}
|
|
],
|
|
"intermediate_preparation": "jaunes",
|
|
"module": {
|
|
"binding": "blancs",
|
|
"uri": "oeufs.gram",
|
|
"title": null,
|
|
"mode": "inline"
|
|
}
|
|
},
|
|
{
|
|
"title": "Dessert",
|
|
"ingredients": [
|
|
{
|
|
"type": "reference",
|
|
"id": "blancs",
|
|
"name": "blancs",
|
|
"_usageId": "3",
|
|
"qty": 200,
|
|
"unit": "g"
|
|
},
|
|
{
|
|
"type": "reference",
|
|
"id": "jaunes",
|
|
"name": "jaunes",
|
|
"_usageId": "4",
|
|
"qty": 50,
|
|
"unit": "g"
|
|
}
|
|
],
|
|
"cookware": [],
|
|
"steps": [
|
|
{
|
|
"type": "step",
|
|
"content": [
|
|
"Whisk ",
|
|
{
|
|
"type": "reference",
|
|
"id": "blancs",
|
|
"name": "blancs",
|
|
"_usageId": "3",
|
|
"qty": 200,
|
|
"unit": "g"
|
|
},
|
|
"and ",
|
|
{
|
|
"type": "reference",
|
|
"id": "jaunes",
|
|
"name": "jaunes",
|
|
"_usageId": "4",
|
|
"qty": 50,
|
|
"unit": "g"
|
|
},
|
|
"."
|
|
],
|
|
"timings": {
|
|
"start": 4,
|
|
"end": 6,
|
|
"activeDuration": 2
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"warnings": [
|
|
{
|
|
"code": "MODULE_SURPLUS",
|
|
"message": "Scaling \"./oeufs.gram\" for '&jaunes' yields a surplus: 100 g produced, 50 g used.",
|
|
"loc": {
|
|
"start": 0,
|
|
"end": 44
|
|
}
|
|
}
|
|
],
|
|
"metrics": {
|
|
"totalTime": 9,
|
|
"totalBreakdown": [
|
|
{
|
|
"label": "section_active:Blancs",
|
|
"duration": 2
|
|
},
|
|
{
|
|
"label": "section_active:Jaunes",
|
|
"duration": 2
|
|
},
|
|
{
|
|
"label": "section_active:Dessert",
|
|
"duration": 2
|
|
}
|
|
],
|
|
"idleTime": 0,
|
|
"activeTime": 6,
|
|
"activeBreakdown": [
|
|
{
|
|
"label": "section_active:Blancs",
|
|
"duration": 2
|
|
},
|
|
{
|
|
"label": "section_active:Jaunes",
|
|
"duration": 2
|
|
},
|
|
{
|
|
"label": "section_active:Dessert",
|
|
"duration": 2
|
|
}
|
|
],
|
|
"preparationTime": 3,
|
|
"prepBreakdown": [
|
|
{
|
|
"label": "ingredients_overhead",
|
|
"duration": 3
|
|
}
|
|
]
|
|
},
|
|
"miseEnPlace": [
|
|
{
|
|
"section": 0,
|
|
"duration": 1,
|
|
"items": [
|
|
{
|
|
"kind": "gather",
|
|
"target": "ingredient",
|
|
"count": 1,
|
|
"duration": 1
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"section": 2,
|
|
"duration": 2,
|
|
"items": [
|
|
{
|
|
"kind": "gather",
|
|
"target": "ingredient",
|
|
"count": 2,
|
|
"duration": 2,
|
|
"intermediates": 2
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"tasks": {
|
|
"tasks": [
|
|
{
|
|
"id": "s0.prep",
|
|
"kind": "prep",
|
|
"section": 0,
|
|
"duration": {
|
|
"nominal": 1
|
|
},
|
|
"items": [
|
|
{
|
|
"kind": "gather",
|
|
"target": "ingredient",
|
|
"count": 1,
|
|
"duration": 1
|
|
}
|
|
],
|
|
"after": []
|
|
},
|
|
{
|
|
"id": "s0.0",
|
|
"kind": "step",
|
|
"section": 0,
|
|
"step": 0,
|
|
"duration": {
|
|
"nominal": 2
|
|
},
|
|
"after": []
|
|
},
|
|
{
|
|
"id": "s1.0",
|
|
"kind": "step",
|
|
"section": 1,
|
|
"step": 0,
|
|
"duration": {
|
|
"nominal": 2
|
|
},
|
|
"after": []
|
|
},
|
|
{
|
|
"id": "s2.prep.blancs",
|
|
"kind": "prep",
|
|
"section": 2,
|
|
"intermediate": "blancs",
|
|
"duration": {
|
|
"nominal": 1
|
|
},
|
|
"items": [
|
|
{
|
|
"kind": "gather",
|
|
"target": "ingredient",
|
|
"count": 1,
|
|
"duration": 1,
|
|
"intermediates": 1
|
|
}
|
|
],
|
|
"after": [
|
|
"s0.0"
|
|
]
|
|
},
|
|
{
|
|
"id": "s2.prep.jaunes",
|
|
"kind": "prep",
|
|
"section": 2,
|
|
"intermediate": "jaunes",
|
|
"duration": {
|
|
"nominal": 1
|
|
},
|
|
"items": [
|
|
{
|
|
"kind": "gather",
|
|
"target": "ingredient",
|
|
"count": 1,
|
|
"duration": 1,
|
|
"intermediates": 1
|
|
}
|
|
],
|
|
"after": [
|
|
"s1.0"
|
|
]
|
|
},
|
|
{
|
|
"id": "s2.0",
|
|
"kind": "step",
|
|
"section": 2,
|
|
"step": 0,
|
|
"duration": {
|
|
"nominal": 2
|
|
},
|
|
"consumes": [
|
|
"blancs",
|
|
"jaunes"
|
|
],
|
|
"after": [
|
|
"s0.0",
|
|
"s1.0"
|
|
]
|
|
}
|
|
],
|
|
"sections": [
|
|
{
|
|
"day": 0,
|
|
"intermediate": "blancs"
|
|
},
|
|
{
|
|
"day": 0,
|
|
"intermediate": "jaunes"
|
|
},
|
|
{
|
|
"day": 0
|
|
}
|
|
]
|
|
},
|
|
"schedule": {
|
|
"miseEnPlace": "perSection",
|
|
"rests": "shortest",
|
|
"totalTime": 9,
|
|
"activeTime": 6,
|
|
"preparationTime": 3,
|
|
"idleTime": 0,
|
|
"blocks": [
|
|
{
|
|
"kind": "prep",
|
|
"task": "s0.prep",
|
|
"section": 0,
|
|
"start": 0,
|
|
"end": 1
|
|
},
|
|
{
|
|
"kind": "step",
|
|
"task": "s0.0",
|
|
"section": 0,
|
|
"step": 0,
|
|
"start": 1,
|
|
"end": 3
|
|
},
|
|
{
|
|
"kind": "step",
|
|
"task": "s1.0",
|
|
"section": 1,
|
|
"step": 0,
|
|
"start": 3,
|
|
"end": 5
|
|
},
|
|
{
|
|
"kind": "prep",
|
|
"task": "s2.prep.blancs",
|
|
"section": 2,
|
|
"start": 5,
|
|
"end": 7
|
|
},
|
|
{
|
|
"kind": "step",
|
|
"task": "s2.0",
|
|
"section": 2,
|
|
"step": 0,
|
|
"start": 7,
|
|
"end": 9
|
|
}
|
|
],
|
|
"days": [
|
|
{
|
|
"day": 0,
|
|
"start": 0,
|
|
"end": 9,
|
|
"sections": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"modules": [
|
|
{
|
|
"binding": "blancs",
|
|
"uri": "oeufs.gram",
|
|
"title": null,
|
|
"meta": {},
|
|
"scaleFactor": 2,
|
|
"mode": "inline"
|
|
}
|
|
]
|
|
}
|