@prosdevlab/dev-agent 0.8.5
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/LICENSE +21 -0
- package/README.md +138 -0
- package/dist/cli.js +74721 -0
- package/dist/cli.js.map +1 -0
- package/dist/mcp.js +61445 -0
- package/dist/mcp.js.map +1 -0
- package/dist/vendor/web-tree-sitter/lib/alloc.c +48 -0
- package/dist/vendor/web-tree-sitter/lib/alloc.h +41 -0
- package/dist/vendor/web-tree-sitter/lib/array.h +291 -0
- package/dist/vendor/web-tree-sitter/lib/atomic.h +68 -0
- package/dist/vendor/web-tree-sitter/lib/clock.h +146 -0
- package/dist/vendor/web-tree-sitter/lib/error_costs.h +11 -0
- package/dist/vendor/web-tree-sitter/lib/get_changed_ranges.c +523 -0
- package/dist/vendor/web-tree-sitter/lib/get_changed_ranges.h +36 -0
- package/dist/vendor/web-tree-sitter/lib/host.h +21 -0
- package/dist/vendor/web-tree-sitter/lib/language.c +293 -0
- package/dist/vendor/web-tree-sitter/lib/language.h +293 -0
- package/dist/vendor/web-tree-sitter/lib/length.h +52 -0
- package/dist/vendor/web-tree-sitter/lib/lexer.c +483 -0
- package/dist/vendor/web-tree-sitter/lib/lexer.h +54 -0
- package/dist/vendor/web-tree-sitter/lib/lib.c +12 -0
- package/dist/vendor/web-tree-sitter/lib/node.c +875 -0
- package/dist/vendor/web-tree-sitter/lib/parser.c +2297 -0
- package/dist/vendor/web-tree-sitter/lib/parser.h +286 -0
- package/dist/vendor/web-tree-sitter/lib/point.h +48 -0
- package/dist/vendor/web-tree-sitter/lib/query.c +4347 -0
- package/dist/vendor/web-tree-sitter/lib/reduce_action.h +34 -0
- package/dist/vendor/web-tree-sitter/lib/reusable_node.h +95 -0
- package/dist/vendor/web-tree-sitter/lib/stack.c +912 -0
- package/dist/vendor/web-tree-sitter/lib/stack.h +133 -0
- package/dist/vendor/web-tree-sitter/lib/subtree.c +1034 -0
- package/dist/vendor/web-tree-sitter/lib/subtree.h +399 -0
- package/dist/vendor/web-tree-sitter/lib/tree-sitter.c +987 -0
- package/dist/vendor/web-tree-sitter/lib/tree-sitter.cjs +2988 -0
- package/dist/vendor/web-tree-sitter/lib/tree-sitter.wasm +0 -0
- package/dist/vendor/web-tree-sitter/lib/tree-sitter.wasm.map +1 -0
- package/dist/vendor/web-tree-sitter/lib/tree.c +170 -0
- package/dist/vendor/web-tree-sitter/lib/tree.h +31 -0
- package/dist/vendor/web-tree-sitter/lib/tree_cursor.c +716 -0
- package/dist/vendor/web-tree-sitter/lib/tree_cursor.h +48 -0
- package/dist/vendor/web-tree-sitter/lib/ts_assert.h +11 -0
- package/dist/vendor/web-tree-sitter/lib/unicode.h +75 -0
- package/dist/vendor/web-tree-sitter/lib/wasm_store.c +1937 -0
- package/dist/vendor/web-tree-sitter/lib/wasm_store.h +31 -0
- package/dist/vendor/web-tree-sitter/package.json +98 -0
- package/dist/vendor/web-tree-sitter/tree-sitter.cjs +4031 -0
- package/dist/vendor/web-tree-sitter/tree-sitter.wasm +0 -0
- package/dist/wasm/tree-sitter-go.wasm +0 -0
- package/dist/wasm/tree-sitter.wasm +0 -0
- package/package.json +65 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 prosdevlab
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# @prosdevlab/dev-agent
|
|
2
|
+
|
|
3
|
+
**Deep code intelligence + AI subagents via MCP**
|
|
4
|
+
|
|
5
|
+
Local-first semantic code search, GitHub integration, and development planning for AI tools like Cursor and Claude Code.
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Install globally
|
|
11
|
+
npm install -g @prosdevlab/dev-agent
|
|
12
|
+
|
|
13
|
+
# Index your repository
|
|
14
|
+
cd /path/to/your/repo
|
|
15
|
+
dev index .
|
|
16
|
+
|
|
17
|
+
# Install MCP integration
|
|
18
|
+
dev mcp install --cursor # For Cursor IDE
|
|
19
|
+
dev mcp install # For Claude Code
|
|
20
|
+
|
|
21
|
+
# Start using dev-agent in your AI tool!
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Features
|
|
25
|
+
|
|
26
|
+
- ๐ **Semantic Code Search** - Natural language queries across your codebase
|
|
27
|
+
- ๐ **GitHub Integration** - Search issues/PRs with semantic understanding
|
|
28
|
+
- ๐ **Implementation Planning** - Generate plans from GitHub issues with code context
|
|
29
|
+
- ๐ **Code Exploration** - Discover patterns, find similar code, analyze relationships
|
|
30
|
+
- ๐ **Health Monitoring** - Check component status and system health
|
|
31
|
+
- ๐ **Repository Status** - View indexing progress and statistics
|
|
32
|
+
|
|
33
|
+
## MCP Tools
|
|
34
|
+
|
|
35
|
+
When integrated with Cursor or Claude Code, you get 6 powerful tools:
|
|
36
|
+
|
|
37
|
+
- `dev_search` - Semantic code search
|
|
38
|
+
- `dev_status` - Repository status and health
|
|
39
|
+
- `dev_inspect` - File analysis and pattern checking
|
|
40
|
+
- `dev_plan` - Implementation planning from issues
|
|
41
|
+
- `dev_gh` - GitHub issue/PR search
|
|
42
|
+
- `dev_health` - Component health checks
|
|
43
|
+
|
|
44
|
+
## Requirements
|
|
45
|
+
|
|
46
|
+
- Node.js >= 22 (LTS)
|
|
47
|
+
- For GitHub integration: [GitHub CLI](https://cli.github.com/)
|
|
48
|
+
|
|
49
|
+
## Production Features
|
|
50
|
+
|
|
51
|
+
- ๐ก๏ธ Rate limiting (100 req/min burst per tool)
|
|
52
|
+
- ๐ Automatic retry with exponential backoff
|
|
53
|
+
- ๐ Health checks for all components
|
|
54
|
+
- ๐งน Memory-safe (circular buffers, proper cleanup)
|
|
55
|
+
- ๐ Graceful shutdown (no zombie processes)
|
|
56
|
+
|
|
57
|
+
## Documentation
|
|
58
|
+
|
|
59
|
+
- **Full Documentation:** https://github.com/prosdevlab/dev-agent
|
|
60
|
+
- **Troubleshooting:** https://github.com/prosdevlab/dev-agent/blob/main/TROUBLESHOOTING.md
|
|
61
|
+
- **Cursor Setup:** https://github.com/prosdevlab/dev-agent/blob/main/packages/mcp-server/CURSOR_SETUP.md
|
|
62
|
+
- **Claude Code Setup:** https://github.com/prosdevlab/dev-agent/blob/main/packages/mcp-server/CLAUDE_CODE_SETUP.md
|
|
63
|
+
|
|
64
|
+
## CLI Commands
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
# Indexing
|
|
68
|
+
dev index . # Index current repository
|
|
69
|
+
dev github index # Index GitHub issues/PRs
|
|
70
|
+
|
|
71
|
+
# MCP Server Integration
|
|
72
|
+
dev mcp install --cursor # Install for Cursor
|
|
73
|
+
dev mcp install # Install for Claude Code
|
|
74
|
+
dev mcp uninstall [--cursor] # Remove integration
|
|
75
|
+
dev mcp list [--cursor] # List installed servers
|
|
76
|
+
dev mcp start [--verbose] # Start MCP server manually
|
|
77
|
+
|
|
78
|
+
# Help
|
|
79
|
+
dev --help # Show all commands
|
|
80
|
+
dev <command> --help # Help for specific command
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## How It Works
|
|
84
|
+
|
|
85
|
+
1. **Index** - Scans your TypeScript/JavaScript codebase and builds semantic vectors
|
|
86
|
+
2. **Search** - Uses local embeddings (all-MiniLM-L6-v2) for semantic understanding
|
|
87
|
+
3. **Store** - LanceDB vector storage, all data stays on your machine
|
|
88
|
+
4. **Integrate** - MCP protocol connects to Cursor/Claude Code
|
|
89
|
+
5. **Query** - AI tools can now understand your codebase semantically
|
|
90
|
+
|
|
91
|
+
## Local-First
|
|
92
|
+
|
|
93
|
+
All processing happens on your machine:
|
|
94
|
+
- โ
No cloud services required
|
|
95
|
+
- โ
No API keys needed
|
|
96
|
+
- โ
Your code never leaves your computer
|
|
97
|
+
- โ
Works completely offline (after initial model download)
|
|
98
|
+
|
|
99
|
+
## Technology
|
|
100
|
+
|
|
101
|
+
- **Analysis:** TypeScript Compiler API + ts-morph
|
|
102
|
+
- **Embeddings:** @xenova/transformers (all-MiniLM-L6-v2)
|
|
103
|
+
- **Vector Storage:** LanceDB
|
|
104
|
+
- **GitHub:** GitHub CLI for local metadata
|
|
105
|
+
- **Protocol:** Model Context Protocol (MCP)
|
|
106
|
+
|
|
107
|
+
## Examples
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# Find authentication-related code
|
|
111
|
+
dev_search: "JWT token validation middleware"
|
|
112
|
+
|
|
113
|
+
# Plan implementation from GitHub issue
|
|
114
|
+
dev_plan: issue #42
|
|
115
|
+
|
|
116
|
+
# Find similar code patterns
|
|
117
|
+
dev_inspect: { action: "compare", query: "src/auth/middleware.ts" }
|
|
118
|
+
|
|
119
|
+
# Search GitHub issues semantically
|
|
120
|
+
dev_gh: search "memory leak in vector storage"
|
|
121
|
+
|
|
122
|
+
# Check system health
|
|
123
|
+
dev_health: verbose
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Support
|
|
127
|
+
|
|
128
|
+
- **GitHub Issues:** https://github.com/prosdevlab/dev-agent/issues
|
|
129
|
+
- **Discussions:** https://github.com/prosdevlab/dev-agent/discussions
|
|
130
|
+
|
|
131
|
+
## License
|
|
132
|
+
|
|
133
|
+
MIT
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
**Status:** Production-ready v0.1.0 | **Tests:** 1100+ passing | **Node:** >=22 LTS
|
|
138
|
+
|