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.
367 lines
6.6 KiB
JSON
367 lines
6.6 KiB
JSON
{
|
|
"title": "Shopping List Composite Across Sections",
|
|
"slug": "shopping-list-composite-across-sections",
|
|
"meta": {
|
|
"title": "Shopping List Composite Across Sections"
|
|
},
|
|
"registry": {
|
|
"ingredients": {
|
|
"egg-whites": {
|
|
"id": "egg-whites",
|
|
"name": "egg whites",
|
|
"is_composite": true,
|
|
"parent": "eggs"
|
|
},
|
|
"eggs": {
|
|
"id": "eggs",
|
|
"name": "eggs",
|
|
"is_composite": true
|
|
},
|
|
"egg-yolks": {
|
|
"id": "egg-yolks",
|
|
"name": "egg yolks",
|
|
"is_composite": true,
|
|
"parent": "eggs"
|
|
}
|
|
},
|
|
"cookware": {}
|
|
},
|
|
"shopping_list": [
|
|
{
|
|
"type": "composite",
|
|
"id": "eggs",
|
|
"name": "eggs",
|
|
"qty": 4,
|
|
"usage": [
|
|
{
|
|
"id": "egg-whites",
|
|
"qty": 2
|
|
},
|
|
{
|
|
"id": "egg-yolks",
|
|
"qty": 3
|
|
},
|
|
{
|
|
"id": "eggs",
|
|
"alias": "Direct Use",
|
|
"qty": 1
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"cookware": [],
|
|
"sections": [
|
|
{
|
|
"title": "Whites",
|
|
"ingredients": [
|
|
{
|
|
"id": "egg-whites",
|
|
"_usageId": "1",
|
|
"qty": 2,
|
|
"composite": {
|
|
"parent": "eggs",
|
|
"quantity": 2
|
|
}
|
|
}
|
|
],
|
|
"cookware": [],
|
|
"steps": [
|
|
{
|
|
"type": "step",
|
|
"content": [
|
|
"Separate ",
|
|
{
|
|
"id": "egg-whites",
|
|
"_usageId": "1",
|
|
"qty": 2,
|
|
"composite": {
|
|
"parent": "eggs",
|
|
"quantity": 2
|
|
}
|
|
},
|
|
"for the meringue."
|
|
],
|
|
"timings": {
|
|
"start": 0,
|
|
"end": 2,
|
|
"activeDuration": 2
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Yolks",
|
|
"ingredients": [
|
|
{
|
|
"id": "egg-yolks",
|
|
"_usageId": "2",
|
|
"qty": 3,
|
|
"composite": {
|
|
"parent": "eggs",
|
|
"quantity": 3
|
|
}
|
|
}
|
|
],
|
|
"cookware": [],
|
|
"steps": [
|
|
{
|
|
"type": "step",
|
|
"content": [
|
|
"Whisk ",
|
|
{
|
|
"id": "egg-yolks",
|
|
"_usageId": "2",
|
|
"qty": 3,
|
|
"composite": {
|
|
"parent": "eggs",
|
|
"quantity": 3
|
|
}
|
|
},
|
|
"into the custard."
|
|
],
|
|
"timings": {
|
|
"start": 2,
|
|
"end": 4,
|
|
"activeDuration": 2
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Extra",
|
|
"ingredients": [
|
|
{
|
|
"id": "eggs",
|
|
"_usageId": "3",
|
|
"qty": 1
|
|
}
|
|
],
|
|
"cookware": [],
|
|
"steps": [
|
|
{
|
|
"type": "step",
|
|
"content": [
|
|
"Crack one more ",
|
|
{
|
|
"id": "eggs",
|
|
"_usageId": "3",
|
|
"qty": 1
|
|
},
|
|
"into the bowl."
|
|
],
|
|
"timings": {
|
|
"start": 4,
|
|
"end": 6,
|
|
"activeDuration": 2
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"warnings": [],
|
|
"metrics": {
|
|
"totalTime": 9,
|
|
"totalBreakdown": [
|
|
{
|
|
"label": "section_active:Whites",
|
|
"duration": 2
|
|
},
|
|
{
|
|
"label": "section_active:Yolks",
|
|
"duration": 2
|
|
},
|
|
{
|
|
"label": "section_active:Extra",
|
|
"duration": 2
|
|
}
|
|
],
|
|
"idleTime": 0,
|
|
"activeTime": 6,
|
|
"activeBreakdown": [
|
|
{
|
|
"label": "section_active:Whites",
|
|
"duration": 2
|
|
},
|
|
{
|
|
"label": "section_active:Yolks",
|
|
"duration": 2
|
|
},
|
|
{
|
|
"label": "section_active:Extra",
|
|
"duration": 2
|
|
}
|
|
],
|
|
"preparationTime": 3,
|
|
"prepBreakdown": [
|
|
{
|
|
"label": "ingredients_overhead",
|
|
"duration": 3
|
|
}
|
|
]
|
|
},
|
|
"miseEnPlace": [
|
|
{
|
|
"section": 0,
|
|
"duration": 2,
|
|
"items": [
|
|
{
|
|
"kind": "gather",
|
|
"target": "ingredient",
|
|
"count": 2,
|
|
"duration": 2
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"section": 1,
|
|
"duration": 1,
|
|
"items": [
|
|
{
|
|
"kind": "gather",
|
|
"target": "ingredient",
|
|
"count": 1,
|
|
"duration": 1
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"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": []
|
|
},
|
|
{
|
|
"id": "s1.prep",
|
|
"kind": "prep",
|
|
"section": 1,
|
|
"duration": {
|
|
"nominal": 1
|
|
},
|
|
"items": [
|
|
{
|
|
"kind": "gather",
|
|
"target": "ingredient",
|
|
"count": 1,
|
|
"duration": 1
|
|
}
|
|
],
|
|
"after": []
|
|
},
|
|
{
|
|
"id": "s1.0",
|
|
"kind": "step",
|
|
"section": 1,
|
|
"step": 0,
|
|
"duration": {
|
|
"nominal": 2
|
|
},
|
|
"after": []
|
|
},
|
|
{
|
|
"id": "s2.0",
|
|
"kind": "step",
|
|
"section": 2,
|
|
"step": 0,
|
|
"duration": {
|
|
"nominal": 2
|
|
},
|
|
"after": []
|
|
}
|
|
],
|
|
"sections": [
|
|
{
|
|
"day": 0
|
|
},
|
|
{
|
|
"day": 0
|
|
},
|
|
{
|
|
"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": 2
|
|
},
|
|
{
|
|
"kind": "step",
|
|
"task": "s0.0",
|
|
"section": 0,
|
|
"step": 0,
|
|
"start": 2,
|
|
"end": 4
|
|
},
|
|
{
|
|
"kind": "prep",
|
|
"task": "s1.prep",
|
|
"section": 1,
|
|
"start": 4,
|
|
"end": 5
|
|
},
|
|
{
|
|
"kind": "step",
|
|
"task": "s1.0",
|
|
"section": 1,
|
|
"step": 0,
|
|
"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
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|