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 well the engineer uses ts-api-utils type guard functions to identify and classify different TypeScript AST node types. The focus is exclusively on proper usage of the package's type guard API for analyzing TypeScript syntax nodes.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Type keyword guards",
"description": "Uses ts-api-utils type guard functions (isAnyKeyword, isBooleanKeyword, isNumberKeyword, isStringKeyword, isNullKeyword) to identify and count type keyword nodes in the AST",
"max_score": 30
},
{
"name": "Boolean literal guards",
"description": "Uses ts-api-utils type guard functions (isTrueKeyword, isFalseKeyword) to identify and count boolean literal nodes in the AST",
"max_score": 20
},
{
"name": "Modifier keyword guards",
"description": "Uses ts-api-utils type guard functions (isPublicKeyword, isPrivateKeyword, isProtectedKeyword, isStaticKeyword, isReadonlyKeyword, isAbstractKeyword) to identify and count modifier nodes in the AST",
"max_score": 30
},
{
"name": "AST traversal",
"description": "Implements proper AST traversal using TypeScript compiler API (forEachChild or similar) to visit all nodes in the syntax tree for classification",
"max_score": 20
}
]
}