CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-ts-api-utils

Utility functions for working with TypeScript's API, providing comprehensive tools for analyzing and manipulating TypeScript AST nodes, types, and compiler APIs.

79

1.97x
Quality

Pending

Does it follow best practices?

Impact

79%

1.97x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how effectively the engineer uses ts-api-utils comment extraction functionality to implement comment analysis features. The focus is on proper usage of forEachComment and/or iterateComments functions for extracting and processing comments from TypeScript AST nodes.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses comment extraction",
      "description": "Implementation uses ts-api-utils comment extraction functions (forEachComment or iterateComments) to extract comments from TypeScript source code rather than using regex or string parsing",
      "max_score": 40
    },
    {
      "name": "Parses with TypeScript",
      "description": "Creates a TypeScript SourceFile using typescript.createSourceFile or similar API to parse the source code before extracting comments",
      "max_score": 15
    },
    {
      "name": "Handles comment types",
      "description": "Correctly distinguishes between single-line and multi-line comments using the comment kind property (SyntaxKind.SingleLineCommentTrivia vs SyntaxKind.MultiLineCommentTrivia)",
      "max_score": 20
    },
    {
      "name": "Extracts comment text",
      "description": "Properly extracts the text content from comments, handling the removal of comment delimiters (// for single-line, /* */ for multi-line)",
      "max_score": 15
    },
    {
      "name": "Iterates all comments",
      "description": "Implementation ensures all comments in the source file are processed by iterating over the AST nodes appropriately (e.g., starting from the SourceFile root node)",
      "max_score": 10
    }
  ]
}

tile.json