@compilr-dev/agents-coding-go 0.1.1 → 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.
- package/README.md +48 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# @compilr-dev/agents-coding-go
|
|
2
|
+
|
|
3
|
+
Go analysis tools for AI agents - AST-based code analysis using Tree-sitter.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @compilr-dev/agents-coding-go
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
**Peer dependency:** `@compilr-dev/agents ^0.3.0`
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
- **AST Analysis** - Parse and analyze Go code via Tree-sitter
|
|
16
|
+
- **Function/Struct Extraction** - Extract definitions with signatures
|
|
17
|
+
- **Interface Analysis** - Extract interface definitions
|
|
18
|
+
- **Import Analysis** - Track package dependencies
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { goTools, goSkills } from '@compilr-dev/agents-coding-go';
|
|
24
|
+
|
|
25
|
+
// Register tools with your agent
|
|
26
|
+
agent.registerTools(goTools);
|
|
27
|
+
agent.registerSkills(goSkills);
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Tools
|
|
31
|
+
|
|
32
|
+
| Tool | Description |
|
|
33
|
+
|------|-------------|
|
|
34
|
+
| `analyzeGo` | Analyze Go file structure |
|
|
35
|
+
| `extractFunctions` | Extract function definitions |
|
|
36
|
+
| `extractStructs` | Extract struct definitions |
|
|
37
|
+
| `extractInterfaces` | Extract interface definitions |
|
|
38
|
+
|
|
39
|
+
## Part of the agents-coding ecosystem
|
|
40
|
+
|
|
41
|
+
- [`@compilr-dev/agents-coding`](https://npmjs.com/package/@compilr-dev/agents-coding) - Umbrella package (recommended)
|
|
42
|
+
- [`@compilr-dev/agents-coding-core`](https://npmjs.com/package/@compilr-dev/agents-coding-core) - Language-agnostic tools
|
|
43
|
+
- [`@compilr-dev/agents-coding-ts`](https://npmjs.com/package/@compilr-dev/agents-coding-ts) - TypeScript/JavaScript analysis
|
|
44
|
+
- [`@compilr-dev/agents-coding-python`](https://npmjs.com/package/@compilr-dev/agents-coding-python) - Python analysis
|
|
45
|
+
|
|
46
|
+
## License
|
|
47
|
+
|
|
48
|
+
MIT
|