Reference
Three JSON artifacts feed the Context Ladder. All are versioned, deterministic, and safe to commit.
Produced by scan-index / scanRepo.
{
"version": 1,
"components": [
{
"name": "ProductCard",
"importPath": "@/ui/ProductCard",
"props": ["title", "price", "image"]
},
{
"name": "Button",
"importPath": "@/ui/button",
"props": ["variant", "size", "label"]
}
]
}
| Field | Meaning |
|---|---|
name | Exported component identifier (PascalCase) |
importPath | Resolved module path for emit |
props | Declared prop names used by L2 filter and L3 subset check |
{
"version": 1,
"aliases": [
{
"name": "ProductCard",
"importPath": "@/ui/ProductCard",
"props": ["title", "price"]
},
{
"name": "Button",
"importPath": "@/ui/button",
"figmaName": "Button/Primary"
}
]
}
| Field | Meaning |
|---|---|
props | Exact unordered set match with loop holes → force component |
figmaName | Normalized INSTANCE name equality → force import |
| either field | An alias may specify only one of the two |
{
"version": 1,
"components": [ /* same as index */ ],
"aliases": [ /* same as map */ ]
}
CLI: --context ./calque.context.json. Plugin: single “load priors” upload.
index — array of component recordsindex_json / map_json / context_json — full file textaliases — inline L4 array