487 lines
9.2 KiB
JSON
487 lines
9.2 KiB
JSON
{
|
|
"meta": {},
|
|
"registry": {
|
|
"ingredients": {
|
|
"a": {
|
|
"id": "a",
|
|
"name": "a",
|
|
"is_intermediate": true
|
|
},
|
|
"a-b": {
|
|
"id": "a-b",
|
|
"name": "b",
|
|
"is_intermediate": true
|
|
}
|
|
},
|
|
"cookware": {}
|
|
},
|
|
"shopping_list": [],
|
|
"cookware": [],
|
|
"sections": [
|
|
{
|
|
"title": "B",
|
|
"ingredients": [
|
|
{
|
|
"type": "reference",
|
|
"id": "a",
|
|
"name": "a",
|
|
"_usageId": "1",
|
|
"qty": 1
|
|
}
|
|
],
|
|
"cookware": [],
|
|
"steps": [
|
|
{
|
|
"type": "step",
|
|
"content": [
|
|
"Use ",
|
|
{
|
|
"type": "reference",
|
|
"id": "a",
|
|
"name": "a",
|
|
"_usageId": "1",
|
|
"qty": 1
|
|
},
|
|
"."
|
|
],
|
|
"timings": {
|
|
"start": 0,
|
|
"end": 2,
|
|
"activeDuration": 2
|
|
}
|
|
}
|
|
],
|
|
"intermediate_preparation": "a$b",
|
|
"module": {
|
|
"binding": "b",
|
|
"uri": "b.gram",
|
|
"title": null,
|
|
"mode": "inline"
|
|
},
|
|
"metrics": {
|
|
"totalMass": 0,
|
|
"massStatus": "incomplete",
|
|
"missingMassIngredients": []
|
|
}
|
|
},
|
|
{
|
|
"title": "A",
|
|
"ingredients": [
|
|
{
|
|
"type": "reference",
|
|
"id": "a-b",
|
|
"name": "a$b",
|
|
"_usageId": "2",
|
|
"qty": 1
|
|
}
|
|
],
|
|
"cookware": [],
|
|
"steps": [
|
|
{
|
|
"type": "step",
|
|
"content": [
|
|
"Use ",
|
|
{
|
|
"type": "reference",
|
|
"id": "a-b",
|
|
"name": "a$b",
|
|
"_usageId": "2",
|
|
"qty": 1
|
|
},
|
|
"."
|
|
],
|
|
"timings": {
|
|
"start": 2,
|
|
"end": 4,
|
|
"activeDuration": 2
|
|
}
|
|
}
|
|
],
|
|
"intermediate_preparation": "a",
|
|
"module": {
|
|
"binding": "a",
|
|
"uri": "a.gram",
|
|
"title": null,
|
|
"mode": "inline"
|
|
},
|
|
"metrics": {
|
|
"totalMass": 0,
|
|
"massStatus": "incomplete",
|
|
"missingMassIngredients": []
|
|
}
|
|
},
|
|
{
|
|
"title": "Section",
|
|
"ingredients": [
|
|
{
|
|
"type": "reference",
|
|
"id": "a",
|
|
"name": "a",
|
|
"_usageId": "3",
|
|
"qty": 1
|
|
}
|
|
],
|
|
"cookware": [],
|
|
"steps": [
|
|
{
|
|
"type": "step",
|
|
"content": [
|
|
"Use ",
|
|
{
|
|
"type": "reference",
|
|
"id": "a",
|
|
"name": "a",
|
|
"_usageId": "3",
|
|
"qty": 1
|
|
},
|
|
"."
|
|
],
|
|
"timings": {
|
|
"start": 4,
|
|
"end": 6,
|
|
"activeDuration": 2
|
|
}
|
|
}
|
|
],
|
|
"metrics": {
|
|
"totalMass": 0,
|
|
"massStatus": "incomplete",
|
|
"missingMassIngredients": []
|
|
}
|
|
}
|
|
],
|
|
"warnings": [
|
|
{
|
|
"code": "MODULE_NOT_FOUND",
|
|
"message": "Module \"./a.gram\" could not be found or resolved.",
|
|
"loc": {
|
|
"start": 0,
|
|
"end": 22,
|
|
"uri": "b.gram"
|
|
},
|
|
"uri": "b.gram"
|
|
},
|
|
{
|
|
"code": "SCOPE_CONFLICT",
|
|
"message": "Intermediate variable '&a' is redefined; variable names must be unique across the recipe.",
|
|
"loc": {
|
|
"start": 28,
|
|
"end": 32,
|
|
"uri": "a.gram"
|
|
},
|
|
"section": "A",
|
|
"uri": "a.gram"
|
|
},
|
|
{
|
|
"code": "CIRCULAR_REFERENCE",
|
|
"message": "Circular reference detected: 'a' depends on itself.",
|
|
"item": "a",
|
|
"loc": {
|
|
"start": 28,
|
|
"end": 32,
|
|
"uri": "a.gram"
|
|
},
|
|
"uri": "a.gram"
|
|
},
|
|
{
|
|
"code": "CIRCULAR_REFERENCE",
|
|
"message": "Circular reference detected: 'a$b' depends on itself.",
|
|
"item": "a$b",
|
|
"loc": {
|
|
"start": 28,
|
|
"end": 32,
|
|
"uri": "a.gram"
|
|
},
|
|
"uri": "a.gram"
|
|
},
|
|
{
|
|
"code": "MODULE_CYCLE",
|
|
"message": "Circular module import detected: a.gram → b.gram → a.gram.",
|
|
"loc": {
|
|
"start": 0,
|
|
"end": 22,
|
|
"uri": "b.gram"
|
|
},
|
|
"uri": "b.gram"
|
|
},
|
|
{
|
|
"code": "UNRESOLVED_MODULE_YIELD",
|
|
"message": "Cannot compute yield for '&b' from \"./b.gram\": missing physical mass data for one or more ingredients.",
|
|
"loc": {
|
|
"start": 0,
|
|
"end": 22
|
|
}
|
|
},
|
|
{
|
|
"code": "UNRESOLVED_MODULE_YIELD",
|
|
"message": "Cannot compute yield for '&a' from \"./a.gram\": missing physical mass data for one or more ingredients.",
|
|
"loc": {
|
|
"start": 0,
|
|
"end": 22
|
|
}
|
|
}
|
|
],
|
|
"metrics": {
|
|
"totalTime": 8,
|
|
"totalBreakdown": [
|
|
{
|
|
"label": "section_active:B",
|
|
"duration": 2
|
|
},
|
|
{
|
|
"label": "section_active:A",
|
|
"duration": 2
|
|
},
|
|
{
|
|
"label": "section_active:Section",
|
|
"duration": 2
|
|
}
|
|
],
|
|
"idleTime": 0,
|
|
"activeTime": 6,
|
|
"activeBreakdown": [
|
|
{
|
|
"label": "section_active:B",
|
|
"duration": 2
|
|
},
|
|
{
|
|
"label": "section_active:A",
|
|
"duration": 2
|
|
},
|
|
{
|
|
"label": "section_active:Section",
|
|
"duration": 2
|
|
}
|
|
],
|
|
"preparationTime": 2,
|
|
"prepBreakdown": [
|
|
{
|
|
"label": "ingredients_overhead",
|
|
"duration": 2
|
|
}
|
|
],
|
|
"totalMass": 0,
|
|
"massStatus": "incomplete",
|
|
"missingMassIngredients": [],
|
|
"nutrition": {
|
|
"total": {
|
|
"calories": 0,
|
|
"fat": 0,
|
|
"carbs": 0,
|
|
"protein": 0
|
|
},
|
|
"isEstimate": false,
|
|
"coverage": 0
|
|
}
|
|
},
|
|
"miseEnPlace": [
|
|
{
|
|
"section": 0,
|
|
"duration": 1,
|
|
"items": [
|
|
{
|
|
"kind": "gather",
|
|
"target": "ingredient",
|
|
"count": 1,
|
|
"duration": 1,
|
|
"intermediates": 1
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"section": 1,
|
|
"duration": 1,
|
|
"items": [
|
|
{
|
|
"kind": "gather",
|
|
"target": "ingredient",
|
|
"count": 1,
|
|
"duration": 1,
|
|
"intermediates": 1
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"tasks": {
|
|
"tasks": [
|
|
{
|
|
"id": "s0.prep.a",
|
|
"kind": "prep",
|
|
"section": 0,
|
|
"intermediate": "a",
|
|
"duration": {
|
|
"nominal": 1
|
|
},
|
|
"items": [
|
|
{
|
|
"kind": "gather",
|
|
"target": "ingredient",
|
|
"count": 1,
|
|
"duration": 1,
|
|
"intermediates": 1
|
|
}
|
|
],
|
|
"after": [
|
|
"s1.0"
|
|
]
|
|
},
|
|
{
|
|
"id": "s0.0",
|
|
"kind": "step",
|
|
"section": 0,
|
|
"step": 0,
|
|
"duration": {
|
|
"nominal": 2
|
|
},
|
|
"consumes": [
|
|
"a"
|
|
],
|
|
"after": [
|
|
"s1.0"
|
|
]
|
|
},
|
|
{
|
|
"id": "s1.prep.a-b",
|
|
"kind": "prep",
|
|
"section": 1,
|
|
"intermediate": "a-b",
|
|
"duration": {
|
|
"nominal": 1
|
|
},
|
|
"items": [
|
|
{
|
|
"kind": "gather",
|
|
"target": "ingredient",
|
|
"count": 1,
|
|
"duration": 1,
|
|
"intermediates": 1
|
|
}
|
|
],
|
|
"after": [
|
|
"s0.0"
|
|
]
|
|
},
|
|
{
|
|
"id": "s1.0",
|
|
"kind": "step",
|
|
"section": 1,
|
|
"step": 0,
|
|
"duration": {
|
|
"nominal": 2
|
|
},
|
|
"consumes": [
|
|
"a-b"
|
|
],
|
|
"after": [
|
|
"s0.0"
|
|
]
|
|
},
|
|
{
|
|
"id": "s2.0",
|
|
"kind": "step",
|
|
"section": 2,
|
|
"step": 0,
|
|
"duration": {
|
|
"nominal": 2
|
|
},
|
|
"consumes": [
|
|
"a"
|
|
],
|
|
"after": [
|
|
"s1.0"
|
|
]
|
|
}
|
|
],
|
|
"sections": [
|
|
{
|
|
"day": 0,
|
|
"intermediate": "a-b"
|
|
},
|
|
{
|
|
"day": 0,
|
|
"intermediate": "a"
|
|
},
|
|
{
|
|
"day": 0
|
|
}
|
|
]
|
|
},
|
|
"schedule": {
|
|
"miseEnPlace": "perSection",
|
|
"rests": "shortest",
|
|
"totalTime": 8,
|
|
"activeTime": 6,
|
|
"preparationTime": 2,
|
|
"idleTime": 0,
|
|
"blocks": [
|
|
{
|
|
"kind": "prep",
|
|
"task": "s0.prep.a",
|
|
"section": 0,
|
|
"start": 0,
|
|
"end": 1
|
|
},
|
|
{
|
|
"kind": "step",
|
|
"task": "s0.0",
|
|
"section": 0,
|
|
"step": 0,
|
|
"start": 1,
|
|
"end": 3
|
|
},
|
|
{
|
|
"kind": "prep",
|
|
"task": "s1.prep.a-b",
|
|
"section": 1,
|
|
"start": 3,
|
|
"end": 4
|
|
},
|
|
{
|
|
"kind": "step",
|
|
"task": "s1.0",
|
|
"section": 1,
|
|
"step": 0,
|
|
"start": 4,
|
|
"end": 6
|
|
},
|
|
{
|
|
"kind": "step",
|
|
"task": "s2.0",
|
|
"section": 2,
|
|
"step": 0,
|
|
"start": 6,
|
|
"end": 8
|
|
}
|
|
],
|
|
"days": [
|
|
{
|
|
"day": 0,
|
|
"start": 0,
|
|
"end": 8,
|
|
"sections": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"modules": [
|
|
{
|
|
"binding": "b",
|
|
"uri": "b.gram",
|
|
"title": null,
|
|
"meta": {},
|
|
"scaleFactor": 1,
|
|
"mode": "inline"
|
|
},
|
|
{
|
|
"binding": "a",
|
|
"uri": "a.gram",
|
|
"title": null,
|
|
"meta": {},
|
|
"scaleFactor": 1,
|
|
"mode": "inline"
|
|
}
|
|
]
|
|
}
|