CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-lightdash--common

Shared TypeScript library for the Lightdash platform containing common types, utilities, and business logic for analytics workflows

Overall
score

72%

Evaluation72%

1.09x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how well the engineer uses @lightdash/common's filter compilation utilities, warehouse-specific SQL generation functions, and date/time manipulation helpers to build a date range filter compiler with timezone support and multi-warehouse compatibility.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Filter Type Mapping",
      "description": "Uses @lightdash/common's filter type system (FilterOperator, TimeFrames) or date filter utilities to map between user-facing filter operators and internal filter representations",
      "max_score": 15
    },
    {
      "name": "Warehouse SQL Adapter",
      "description": "Uses warehouse-specific SQL generation functions from @lightdash/common (e.g., functions in src/warehouse or src/database directories) to generate appropriate SQL syntax for BigQuery, Snowflake, Postgres, and Redshift",
      "max_score": 25
    },
    {
      "name": "Date Truncation Functions",
      "description": "Uses @lightdash/common's date truncation utilities (e.g., renderDateFilterSql, getDateTruncSql, or similar date/time SQL generation functions) to generate warehouse-specific date boundary calculations",
      "max_score": 20
    },
    {
      "name": "Timezone Handling",
      "description": "Uses @lightdash/common's timezone utilities or date formatting functions (e.g., moment-timezone integration, timezone conversion helpers) to handle timezone-aware date calculations",
      "max_score": 15
    },
    {
      "name": "Filter Rendering",
      "description": "Uses @lightdash/common's filter rendering system (e.g., FilterRule types, buildFilterRules, or renderFilterRuleSql functions) to compile filter configurations into SQL WHERE clauses",
      "max_score": 15
    },
    {
      "name": "SQL Escaping",
      "description": "Uses @lightdash/common's SQL escaping or quoting utilities (e.g., escapeStringLiteral, quote functions) to safely generate SQL strings and prevent SQL injection",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-lightdash--common

tile.json