tessl install tessl/npm-lightdash--common@0.2231.5Shared TypeScript library for the Lightdash platform containing common types, utilities, and business logic for analytics workflows
Agent Success
Agent success rate when using this tile
72%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.09x
Baseline
Agent success rate without this tile
66%
{
"context": "This criteria evaluates how well the engineer uses @lightdash/common's dimension compilation features, specifically focusing on variable reference resolution, cross-table references, and circular dependency detection for SQL expressions.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Reference extraction",
"description": "Implements extractReferences() function that correctly parses SQL strings to identify all ${table.field} variable references using regex or string parsing",
"max_score": 15
},
{
"name": "Basic reference resolution",
"description": "Implements resolveDimensionReferences() to replace ${table.field} references with actual field SQL or table-qualified references from the DimensionContext",
"max_score": 20
},
{
"name": "Field lookup handling",
"description": "Correctly uses the Map<string, Field> from DimensionContext to look up field definitions and access their sql property for resolution",
"max_score": 15
},
{
"name": "Cross-table resolution",
"description": "Handles references to fields from tables other than currentTable by resolving the full table.field path correctly",
"max_score": 15
},
{
"name": "Circular dependency detection",
"description": "Uses the visitedFields Set parameter to track visited field references and detect circular dependencies by checking if a field reference is already in the set before resolving",
"max_score": 20
},
{
"name": "Invalid reference errors",
"description": "Throws appropriate errors when references point to non-existent tables or fields, with clear error messages indicating what is invalid",
"max_score": 10
},
{
"name": "Recursive resolution",
"description": "Recursively resolves references when a field's SQL contains additional ${table.field} references, properly passing the visitedFields set through recursive calls",
"max_score": 5
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
scenario-11
scenario-12
scenario-13
scenario-14
scenario-15
scenario-16
scenario-17
scenario-18
scenario-19
scenario-20