CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-lightdash--common

tessl install tessl/npm-lightdash--common@0.2231.5

Shared 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%

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how well the engineer uses @lightdash/common's MetricQuery type system and related structures to build a query construction system. The focus is on proper use of MetricQuery structure, Filters (AND/OR groups), SortField, AdditionalMetric, CustomDimension, and TableCalculation types as defined in @lightdash/common.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Query Structure",
      "description": "Implementation creates Query objects with the correct structure matching @lightdash/common's MetricQuery type: exploreName (string), dimensions (string array), metrics (string array), filters (Filters object), sorts (Sort array), limit (number), tableCalculations (array), with optional additionalMetrics and customDimensions arrays.",
      "max_score": 20
    },
    {
      "name": "Filter Groups",
      "description": "Implementation correctly structures dimension filters using FilterGroup objects with 'and' or 'or' arrays containing FilterRule objects. Each FilterRule has id, target: { fieldId }, operator, and optional values array, matching @lightdash/common's Filters type with nested groups.",
      "max_score": 25
    },
    {
      "name": "Sort Configuration",
      "description": "Implementation creates Sort objects with fieldId (string) and descending (boolean) properties, matching @lightdash/common's SortField type structure.",
      "max_score": 10
    },
    {
      "name": "Additional Metrics",
      "description": "Implementation creates AdditionalMetric objects with name, sql, table, and type properties, matching @lightdash/common's AdditionalMetric interface. The type field should accept aggregation type strings like 'sum', 'count', 'average'.",
      "max_score": 15
    },
    {
      "name": "Custom Dimensions",
      "description": "Implementation creates CustomDimension objects with id, name, type, table, and binning properties (dimensionId, binType, binNumber), matching @lightdash/common's CustomBinDimension interface structure.",
      "max_score": 15
    },
    {
      "name": "Table Calculations",
      "description": "Implementation creates TableCalculation objects with name, displayName, and sql properties, matching @lightdash/common's TableCalculation type structure.",
      "max_score": 15
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/@lightdash/common@0.2231.x
tile.json