@compilr-dev/agents-coding-ts 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +49 -0
  2. package/package.json +4 -4
package/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # @compilr-dev/agents-coding-ts
2
+
3
+ TypeScript/JavaScript analysis tools for AI agents - AST-based code analysis using the TypeScript Compiler API.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @compilr-dev/agents-coding-ts
9
+ ```
10
+
11
+ **Peer dependency:** `@compilr-dev/agents ^0.3.0`
12
+
13
+ ## Features
14
+
15
+ - **AST Analysis** - Parse and analyze TypeScript/JavaScript code
16
+ - **Complexity Metrics** - Cyclomatic complexity, cognitive complexity
17
+ - **Type Hierarchy** - Extract class/interface relationships
18
+ - **Function Analysis** - Parameters, return types, dependencies
19
+ - **No Native Dependencies** - Uses TypeScript Compiler API (pure JS)
20
+
21
+ ## Usage
22
+
23
+ ```typescript
24
+ import { tsTools, tsSkills } from '@compilr-dev/agents-coding-ts';
25
+
26
+ // Register tools with your agent
27
+ agent.registerTools(tsTools);
28
+ agent.registerSkills(tsSkills);
29
+ ```
30
+
31
+ ## Tools
32
+
33
+ | Tool | Description |
34
+ |------|-------------|
35
+ | `analyzeTypeScript` | Analyze TS/JS file structure |
36
+ | `getComplexity` | Calculate complexity metrics |
37
+ | `extractTypes` | Extract type definitions |
38
+ | `findDependencies` | Find import/export dependencies |
39
+
40
+ ## Part of the agents-coding ecosystem
41
+
42
+ - [`@compilr-dev/agents-coding`](https://npmjs.com/package/@compilr-dev/agents-coding) - Umbrella package (recommended)
43
+ - [`@compilr-dev/agents-coding-core`](https://npmjs.com/package/@compilr-dev/agents-coding-core) - Language-agnostic tools
44
+ - [`@compilr-dev/agents-coding-python`](https://npmjs.com/package/@compilr-dev/agents-coding-python) - Python analysis
45
+ - [`@compilr-dev/agents-coding-go`](https://npmjs.com/package/@compilr-dev/agents-coding-go) - Go analysis
46
+
47
+ ## License
48
+
49
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/agents-coding-ts",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "TypeScript/JavaScript analysis tools for AI agents - AST-based code analysis, complexity metrics, and type hierarchy",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "repository": {
43
43
  "type": "git",
44
- "url": "git+https://github.com/compilr-dev/agents-ts.git"
44
+ "url": "git+https://github.com/compilr-dev/agents-coding.git"
45
45
  },
46
46
  "keywords": [
47
47
  "ai",
@@ -58,9 +58,9 @@
58
58
  "author": "Carmelo Scozzola",
59
59
  "license": "MIT",
60
60
  "bugs": {
61
- "url": "https://github.com/compilr-dev/agents-ts/issues"
61
+ "url": "https://github.com/compilr-dev/agents-coding/issues"
62
62
  },
63
- "homepage": "https://github.com/compilr-dev/agents-ts#readme",
63
+ "homepage": "https://github.com/compilr-dev/agents-coding#readme",
64
64
  "engines": {
65
65
  "node": ">=18.0.0"
66
66
  },