@compilr-dev/agents-coding-ts
v0.1.10
Published
TypeScript/JavaScript analysis tools for AI agents - AST-based code analysis, complexity metrics, and type hierarchy
Maintainers
Readme
@compilr-dev/agents-coding-ts
\|/
╭══════════╮ ___ ___ _ __ ___ _ __ (_) |_ __
║' ▐▌ ▐▌ │ / __|/ _ \| '_ ` _ \| '_ \| | | '__|
║ │ | (__| (_) | | | | | | |_) | | | |
╰─═──────═─╯ \___|\___/|_| |_| |_| .__/|_|_|_|
\________\ | | .dev
|_| tsTypeScript/JavaScript AST analysis tools for AI agents — built on the TypeScript Compiler API.
[!WARNING] This package is in beta. APIs may change between minor versions.
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
FSL-1.1-MIT - See LICENSE for details. Converts to MIT after 2 years per version.
