tessl install tessl/npm-ts-api-utils@2.0.0Utility functions for working with TypeScript's API, providing comprehensive tools for analyzing and manipulating TypeScript AST nodes, types, and compiler APIs.
Agent Success
Agent success rate when using this tile
79%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.98x
Baseline
Agent success rate without this tile
40%
{
"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
}
]
}