milens 0.2.1 → 0.2.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 +24 -22
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,28 +49,29 @@ npx milens analyze -p .
|
|
|
49
49
|
|
|
50
50
|
# Or install globally
|
|
51
51
|
npm install -g milens
|
|
52
|
+
milens analyze -p . # after global install, npx prefix is optional
|
|
52
53
|
```
|
|
53
54
|
|
|
54
55
|
## Quick Start
|
|
55
56
|
|
|
56
57
|
```bash
|
|
57
58
|
# Index a codebase
|
|
58
|
-
milens analyze -p /path/to/repo --verbose
|
|
59
|
+
npx milens analyze -p /path/to/repo --verbose
|
|
59
60
|
|
|
60
61
|
# Search for symbols
|
|
61
|
-
milens search "UserService"
|
|
62
|
+
npx milens search "UserService"
|
|
62
63
|
|
|
63
64
|
# 360° symbol context
|
|
64
|
-
milens inspect "AuthService"
|
|
65
|
+
npx milens inspect "AuthService"
|
|
65
66
|
|
|
66
67
|
# Blast radius — what breaks if this changes?
|
|
67
|
-
milens impact "createUser" --depth 3
|
|
68
|
+
npx milens impact "createUser" --depth 3
|
|
68
69
|
|
|
69
70
|
# Start MCP server (stdio for editors)
|
|
70
|
-
milens serve -p /path/to/repo
|
|
71
|
+
npx milens serve -p /path/to/repo
|
|
71
72
|
|
|
72
73
|
# Start MCP server (HTTP for remote agents)
|
|
73
|
-
milens serve --http --port 3100
|
|
74
|
+
npx milens serve --http --port 3100
|
|
74
75
|
```
|
|
75
76
|
|
|
76
77
|
## CLI Commands
|
|
@@ -89,7 +90,7 @@ milens serve --http --port 3100
|
|
|
89
90
|
### `analyze`
|
|
90
91
|
|
|
91
92
|
```bash
|
|
92
|
-
milens analyze -p /path/to/repo --verbose --force --skills
|
|
93
|
+
npx milens analyze -p /path/to/repo --verbose --force --skills
|
|
93
94
|
```
|
|
94
95
|
|
|
95
96
|
Scans source files, parses symbols with tree-sitter, resolves imports/calls/inheritance, and stores everything in `.milens/milens.db`.
|
|
@@ -105,13 +106,13 @@ Scans source files, parses symbols with tree-sitter, resolves imports/calls/inhe
|
|
|
105
106
|
### `search`
|
|
106
107
|
|
|
107
108
|
```bash
|
|
108
|
-
milens search "createUser" --limit 10
|
|
109
|
+
npx milens search "createUser" --limit 10
|
|
109
110
|
```
|
|
110
111
|
|
|
111
112
|
### `inspect`
|
|
112
113
|
|
|
113
114
|
```bash
|
|
114
|
-
milens inspect "AuthService"
|
|
115
|
+
npx milens inspect "AuthService"
|
|
115
116
|
```
|
|
116
117
|
|
|
117
118
|
Shows incoming references (who calls/uses it) and outgoing dependencies (what it calls/imports/extends).
|
|
@@ -119,7 +120,7 @@ Shows incoming references (who calls/uses it) and outgoing dependencies (what it
|
|
|
119
120
|
### `impact`
|
|
120
121
|
|
|
121
122
|
```bash
|
|
122
|
-
milens impact "UserModel" --direction upstream --depth 3
|
|
123
|
+
npx milens impact "UserModel" --direction upstream --depth 3
|
|
123
124
|
```
|
|
124
125
|
|
|
125
126
|
*"What breaks if this symbol changes?"* — traverses the dependency graph via recursive CTEs.
|
|
@@ -132,21 +133,21 @@ milens impact "UserModel" --direction upstream --depth 3
|
|
|
132
133
|
### `serve`
|
|
133
134
|
|
|
134
135
|
```bash
|
|
135
|
-
milens serve -p /path/to/repo # stdio (for editors)
|
|
136
|
-
milens serve -p /path/to/repo --http --port 3100 # HTTP
|
|
136
|
+
npx milens serve -p /path/to/repo # stdio (for editors)
|
|
137
|
+
npx milens serve -p /path/to/repo --http --port 3100 # HTTP
|
|
137
138
|
```
|
|
138
139
|
|
|
139
140
|
### `list`
|
|
140
141
|
|
|
141
142
|
```bash
|
|
142
|
-
milens list # show all indexed repositories
|
|
143
|
+
npx milens list # show all indexed repositories
|
|
143
144
|
```
|
|
144
145
|
|
|
145
146
|
### `clean`
|
|
146
147
|
|
|
147
148
|
```bash
|
|
148
|
-
milens clean -p /path/to/repo # remove index for one repo
|
|
149
|
-
milens clean --all # remove all indexes
|
|
149
|
+
npx milens clean -p /path/to/repo # remove index for one repo
|
|
150
|
+
npx milens clean --all # remove all indexes
|
|
150
151
|
```
|
|
151
152
|
|
|
152
153
|
## MCP Server
|
|
@@ -210,8 +211,9 @@ Add to `.vscode/mcp.json`:
|
|
|
210
211
|
{
|
|
211
212
|
"servers": {
|
|
212
213
|
"milens": {
|
|
214
|
+
"type": "stdio",
|
|
213
215
|
"command": "npx",
|
|
214
|
-
"args": ["-y", "milens", "serve", "-p", "
|
|
216
|
+
"args": ["-y", "milens", "serve", "-p", "${workspaceFolder}"]
|
|
215
217
|
}
|
|
216
218
|
}
|
|
217
219
|
}
|
|
@@ -219,14 +221,14 @@ Add to `.vscode/mcp.json`:
|
|
|
219
221
|
|
|
220
222
|
### Cursor
|
|
221
223
|
|
|
222
|
-
Add to
|
|
224
|
+
Add to `.cursor/mcp.json` (per-project):
|
|
223
225
|
|
|
224
226
|
```json
|
|
225
227
|
{
|
|
226
228
|
"mcpServers": {
|
|
227
229
|
"milens": {
|
|
228
230
|
"command": "npx",
|
|
229
|
-
"args": ["-y", "milens", "serve"]
|
|
231
|
+
"args": ["-y", "milens", "serve", "-p", "."]
|
|
230
232
|
}
|
|
231
233
|
}
|
|
232
234
|
}
|
|
@@ -235,7 +237,7 @@ Add to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (per-project):
|
|
|
235
237
|
### Claude Code
|
|
236
238
|
|
|
237
239
|
```bash
|
|
238
|
-
claude mcp add milens -- npx -y milens serve
|
|
240
|
+
claude mcp add milens -- npx -y milens serve -p .
|
|
239
241
|
```
|
|
240
242
|
|
|
241
243
|
### Codex
|
|
@@ -245,13 +247,13 @@ Add to `.codex/config.toml`:
|
|
|
245
247
|
```toml
|
|
246
248
|
[mcp_servers.milens]
|
|
247
249
|
command = "npx"
|
|
248
|
-
args = ["-y", "milens", "serve"]
|
|
250
|
+
args = ["-y", "milens", "serve", "-p", "."]
|
|
249
251
|
```
|
|
250
252
|
|
|
251
253
|
### HTTP Mode (remote agents)
|
|
252
254
|
|
|
253
255
|
```bash
|
|
254
|
-
milens serve --http --port 3100
|
|
256
|
+
npx milens serve --http --port 3100
|
|
255
257
|
```
|
|
256
258
|
|
|
257
259
|
Endpoint: `POST http://localhost:3100/mcp`
|
|
@@ -261,7 +263,7 @@ Endpoint: `POST http://localhost:3100/mcp`
|
|
|
261
263
|
Generate editor-specific context files from your codebase's knowledge graph:
|
|
262
264
|
|
|
263
265
|
```bash
|
|
264
|
-
milens analyze -p . --skills
|
|
266
|
+
npx milens analyze -p . --skills
|
|
265
267
|
```
|
|
266
268
|
|
|
267
269
|
This creates:
|
package/dist/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ const program = new Command();
|
|
|
7
7
|
program
|
|
8
8
|
.name('milens')
|
|
9
9
|
.description('Code intelligence engine — analyze codebases, build knowledge graphs, serve via MCP')
|
|
10
|
-
.version('0.2.
|
|
10
|
+
.version('0.2.2');
|
|
11
11
|
program
|
|
12
12
|
.command('analyze')
|
|
13
13
|
.description('Index a codebase: parse symbols, resolve dependencies, build search index')
|