@compilr-dev/agents-coding-ts
v0.1.4
Published
TypeScript/JavaScript analysis tools for AI agents - AST-based code analysis, complexity metrics, and type hierarchy
Maintainers
Readme
@compilr-dev/agents-coding-ts
TypeScript/JavaScript analysis tools for AI agents - AST-based code analysis using the TypeScript Compiler API.
Installation
npm install @compilr-dev/agents-coding-tsPeer dependency: @compilr-dev/agents ^0.3.0
Features
- AST Analysis - Parse and analyze TypeScript/JavaScript code
- Complexity Metrics - Cyclomatic complexity, cognitive complexity
- Type Hierarchy - Extract class/interface relationships
- Function Analysis - Parameters, return types, dependencies
- No Native Dependencies - Uses TypeScript Compiler API (pure JS)
Usage
import { tsTools, tsSkills } from '@compilr-dev/agents-coding-ts';
// Register tools with your agent
agent.registerTools(tsTools);
agent.registerSkills(tsSkills);Tools
| Tool | Description |
|------|-------------|
| analyzeTypeScript | Analyze TS/JS file structure |
| getComplexity | Calculate complexity metrics |
| extractTypes | Extract type definitions |
| findDependencies | Find import/export dependencies |
Part of the agents-coding ecosystem
@compilr-dev/agents-coding- Umbrella package (recommended)@compilr-dev/agents-coding-core- Language-agnostic tools@compilr-dev/agents-coding-python- Python analysis@compilr-dev/agents-coding-go- Go analysis
License
MIT
