depwire-cli 0.6.1 → 0.7.0
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 +73 -40
- package/dist/{chunk-S3RUBXRF.js → chunk-65H7HCM4.js} +428 -15
- package/dist/index.js +318 -26
- package/dist/mcpb-entry.js +1 -1
- package/dist/viz/public/temporal.css +397 -0
- package/dist/viz/public/temporal.html +118 -0
- package/dist/viz/public/temporal.js +475 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,26 +61,30 @@ npx depwire-cli --help
|
|
|
61
61
|
### CLI Usage
|
|
62
62
|
|
|
63
63
|
```bash
|
|
64
|
-
#
|
|
65
|
-
|
|
64
|
+
# Auto-detects project root from current directory
|
|
65
|
+
depwire viz
|
|
66
|
+
depwire parse
|
|
67
|
+
depwire docs
|
|
68
|
+
depwire health
|
|
66
69
|
|
|
67
|
-
#
|
|
70
|
+
# Or specify a directory explicitly
|
|
71
|
+
npx depwire-cli viz ./my-project
|
|
68
72
|
npx depwire-cli parse ./my-project
|
|
69
73
|
|
|
70
74
|
# Exclude test files and node_modules
|
|
71
|
-
npx depwire-cli parse
|
|
75
|
+
npx depwire-cli parse --exclude "**/*.test.*" "**/node_modules/**"
|
|
72
76
|
|
|
73
77
|
# Show detailed parsing progress
|
|
74
|
-
npx depwire-cli parse
|
|
78
|
+
npx depwire-cli parse --verbose
|
|
75
79
|
|
|
76
80
|
# Export with pretty-printed JSON and statistics
|
|
77
|
-
npx depwire-cli parse
|
|
81
|
+
npx depwire-cli parse --pretty --stats
|
|
78
82
|
|
|
79
83
|
# Generate codebase documentation
|
|
80
|
-
npx depwire-cli docs
|
|
84
|
+
npx depwire-cli docs --verbose --stats
|
|
81
85
|
|
|
82
86
|
# Custom output file
|
|
83
|
-
npx depwire-cli parse
|
|
87
|
+
npx depwire-cli parse -o my-graph.json
|
|
84
88
|
```
|
|
85
89
|
|
|
86
90
|
### Claude Desktop
|
|
@@ -98,16 +102,20 @@ Add to your Claude Desktop config (`~/Library/Application Support/Claude/claude_
|
|
|
98
102
|
}
|
|
99
103
|
```
|
|
100
104
|
|
|
105
|
+
**Depwire auto-detects your project root. No path configuration needed.**
|
|
106
|
+
|
|
101
107
|
Then in chat:
|
|
102
108
|
```
|
|
103
|
-
|
|
109
|
+
Show me the architecture.
|
|
104
110
|
```
|
|
105
111
|
|
|
106
112
|
### Cursor
|
|
107
113
|
|
|
108
114
|
Settings → Features → Experimental → Enable MCP → Add Server:
|
|
109
115
|
- Command: `npx`
|
|
110
|
-
- Args: `-y depwire-cli mcp
|
|
116
|
+
- Args: `-y depwire-cli mcp`
|
|
117
|
+
|
|
118
|
+
**Depwire auto-detects your project root from the current working directory.**
|
|
111
119
|
|
|
112
120
|
## Available MCP Tools
|
|
113
121
|
|
|
@@ -143,20 +151,23 @@ Settings → Features → Experimental → Enable MCP → Add Server:
|
|
|
143
151
|

|
|
144
152
|
|
|
145
153
|
```bash
|
|
146
|
-
#
|
|
154
|
+
# Auto-detects project root (run from anywhere in your project)
|
|
155
|
+
depwire viz
|
|
156
|
+
|
|
157
|
+
# Or specify a directory explicitly
|
|
147
158
|
depwire viz ./my-project
|
|
148
159
|
|
|
149
160
|
# Custom port
|
|
150
|
-
depwire viz
|
|
161
|
+
depwire viz --port 8080
|
|
151
162
|
|
|
152
163
|
# Exclude test files from visualization
|
|
153
|
-
depwire viz
|
|
164
|
+
depwire viz --exclude "**/*.test.*"
|
|
154
165
|
|
|
155
166
|
# Verbose mode with detailed parsing logs
|
|
156
|
-
depwire viz
|
|
167
|
+
depwire viz --verbose
|
|
157
168
|
|
|
158
169
|
# Don't auto-open browser
|
|
159
|
-
depwire viz
|
|
170
|
+
depwire viz --no-open
|
|
160
171
|
```
|
|
161
172
|
|
|
162
173
|
Opens an interactive arc diagram in your browser:
|
|
@@ -177,10 +188,12 @@ Opens an interactive arc diagram in your browser:
|
|
|
177
188
|
|
|
178
189
|
## CLI Reference
|
|
179
190
|
|
|
180
|
-
### `depwire parse
|
|
191
|
+
### `depwire parse [directory]`
|
|
181
192
|
|
|
182
193
|
Parse a project and export the dependency graph as JSON.
|
|
183
194
|
|
|
195
|
+
**Directory argument is optional** — Depwire auto-detects your project root by looking for `package.json`, `tsconfig.json`, `go.mod`, `pyproject.toml`, `setup.py`, or `.git`.
|
|
196
|
+
|
|
184
197
|
**Options:**
|
|
185
198
|
- `-o, --output <path>` — Output file path (default: `depwire-output.json`)
|
|
186
199
|
- `--exclude <patterns...>` — Glob patterns to exclude (e.g., `"**/*.test.*" "dist/**"`)
|
|
@@ -190,20 +203,25 @@ Parse a project and export the dependency graph as JSON.
|
|
|
190
203
|
|
|
191
204
|
**Examples:**
|
|
192
205
|
```bash
|
|
193
|
-
#
|
|
206
|
+
# Auto-detect project root
|
|
207
|
+
depwire parse
|
|
208
|
+
|
|
209
|
+
# Explicit directory
|
|
194
210
|
depwire parse ./src
|
|
195
211
|
|
|
196
212
|
# Exclude test files and build outputs
|
|
197
|
-
depwire parse
|
|
213
|
+
depwire parse --exclude "**/*.test.*" "**/*.spec.*" "dist/**" "build/**"
|
|
198
214
|
|
|
199
215
|
# Full verbosity with stats
|
|
200
|
-
depwire parse
|
|
216
|
+
depwire parse --verbose --stats --pretty -o graph.json
|
|
201
217
|
```
|
|
202
218
|
|
|
203
|
-
### `depwire viz
|
|
219
|
+
### `depwire viz [directory]`
|
|
204
220
|
|
|
205
221
|
Start visualization server and open arc diagram in browser.
|
|
206
222
|
|
|
223
|
+
**Directory argument is optional** — Auto-detects project root.
|
|
224
|
+
|
|
207
225
|
**Options:**
|
|
208
226
|
- `--port <number>` — Port number (default: 3456, auto-increments if in use)
|
|
209
227
|
- `--exclude <patterns...>` — Glob patterns to exclude
|
|
@@ -212,33 +230,40 @@ Start visualization server and open arc diagram in browser.
|
|
|
212
230
|
|
|
213
231
|
**Examples:**
|
|
214
232
|
```bash
|
|
215
|
-
#
|
|
233
|
+
# Auto-detect and visualize
|
|
234
|
+
depwire viz
|
|
235
|
+
|
|
236
|
+
# Explicit directory
|
|
216
237
|
depwire viz ./src
|
|
217
238
|
|
|
218
239
|
# Custom port without auto-open
|
|
219
|
-
depwire viz
|
|
240
|
+
depwire viz --port 8080 --no-open
|
|
220
241
|
|
|
221
242
|
# Exclude test files with verbose logging
|
|
222
|
-
depwire viz
|
|
243
|
+
depwire viz --exclude "**/*.test.*" --verbose
|
|
223
244
|
```
|
|
224
245
|
|
|
225
246
|
### `depwire mcp [directory]`
|
|
226
247
|
|
|
227
248
|
Start MCP server for AI tool integration (Cursor, Claude Desktop).
|
|
228
249
|
|
|
250
|
+
**Directory argument is optional** — Auto-detects project root and connects automatically.
|
|
251
|
+
|
|
229
252
|
**Examples:**
|
|
230
253
|
```bash
|
|
231
|
-
#
|
|
254
|
+
# Auto-detect and connect (recommended)
|
|
232
255
|
depwire mcp
|
|
233
256
|
|
|
234
|
-
#
|
|
257
|
+
# Explicit directory
|
|
235
258
|
depwire mcp /path/to/project
|
|
236
259
|
```
|
|
237
260
|
|
|
238
|
-
### `depwire docs
|
|
261
|
+
### `depwire docs [directory]`
|
|
239
262
|
|
|
240
263
|
Generate comprehensive codebase documentation from your dependency graph.
|
|
241
264
|
|
|
265
|
+
**Directory argument is optional** — Auto-detects project root.
|
|
266
|
+
|
|
242
267
|
**Options:**
|
|
243
268
|
- `--output <path>` — Output directory (default: `.depwire/` inside project)
|
|
244
269
|
- `--format <type>` — Output format: `markdown` or `json` (default: `markdown`)
|
|
@@ -253,23 +278,26 @@ Generate comprehensive codebase documentation from your dependency graph.
|
|
|
253
278
|
|
|
254
279
|
**Examples:**
|
|
255
280
|
```bash
|
|
256
|
-
#
|
|
281
|
+
# Auto-detect and generate all docs
|
|
282
|
+
depwire docs
|
|
283
|
+
|
|
284
|
+
# Explicit directory
|
|
257
285
|
depwire docs ./my-project
|
|
258
286
|
|
|
259
287
|
# Show generation progress and stats
|
|
260
|
-
depwire docs
|
|
288
|
+
depwire docs --verbose --stats
|
|
261
289
|
|
|
262
290
|
# Regenerate existing docs
|
|
263
|
-
depwire docs
|
|
291
|
+
depwire docs --update
|
|
264
292
|
|
|
265
293
|
# Generate specific docs only
|
|
266
|
-
depwire docs
|
|
294
|
+
depwire docs --include architecture,dependencies
|
|
267
295
|
|
|
268
296
|
# Custom output directory
|
|
269
|
-
depwire docs
|
|
297
|
+
depwire docs --output ./docs
|
|
270
298
|
|
|
271
299
|
# Regenerate only conventions doc
|
|
272
|
-
depwire docs
|
|
300
|
+
depwire docs --update --only conventions
|
|
273
301
|
```
|
|
274
302
|
|
|
275
303
|
**Generated Documents (12 total):**
|
|
@@ -291,10 +319,12 @@ depwire docs ./my-project --update --only conventions
|
|
|
291
319
|
|
|
292
320
|
Documents are stored in `.depwire/` with `metadata.json` tracking generation timestamps for staleness detection.
|
|
293
321
|
|
|
294
|
-
### `depwire health
|
|
322
|
+
### `depwire health [directory]`
|
|
295
323
|
|
|
296
324
|
Analyze dependency architecture health and get a 0-100 score across 6 quality dimensions.
|
|
297
325
|
|
|
326
|
+
**Directory argument is optional** — Auto-detects project root.
|
|
327
|
+
|
|
298
328
|
**Options:**
|
|
299
329
|
- `--json` — Output as JSON (for CI/automation)
|
|
300
330
|
- `--verbose` — Show detailed per-dimension breakdown
|
|
@@ -309,14 +339,17 @@ Analyze dependency architecture health and get a 0-100 score across 6 quality di
|
|
|
309
339
|
|
|
310
340
|
**Examples:**
|
|
311
341
|
```bash
|
|
312
|
-
#
|
|
313
|
-
depwire health
|
|
342
|
+
# Auto-detect and analyze
|
|
343
|
+
depwire health
|
|
344
|
+
|
|
345
|
+
# Explicit directory
|
|
346
|
+
depwire health ./my-project
|
|
314
347
|
|
|
315
348
|
# Detailed breakdown
|
|
316
|
-
depwire health
|
|
349
|
+
depwire health --verbose
|
|
317
350
|
|
|
318
351
|
# JSON output for CI
|
|
319
|
-
depwire health
|
|
352
|
+
depwire health --json
|
|
320
353
|
```
|
|
321
354
|
|
|
322
355
|
**Output:**
|
|
@@ -345,7 +378,7 @@ Depwire gracefully handles parse errors:
|
|
|
345
378
|
```
|
|
346
379
|
# In Claude Desktop or Cursor with Depwire MCP:
|
|
347
380
|
|
|
348
|
-
"
|
|
381
|
+
"Analyze the impact of renaming UserService to UserRepository"
|
|
349
382
|
|
|
350
383
|
# Depwire responds with:
|
|
351
384
|
# - All files that import UserService
|
|
@@ -357,7 +390,7 @@ Depwire gracefully handles parse errors:
|
|
|
357
390
|
### Understanding a New Codebase
|
|
358
391
|
|
|
359
392
|
```
|
|
360
|
-
"
|
|
393
|
+
"Show me the architecture summary"
|
|
361
394
|
|
|
362
395
|
# Depwire responds with:
|
|
363
396
|
# - Language breakdown
|
|
@@ -370,7 +403,7 @@ Depwire gracefully handles parse errors:
|
|
|
370
403
|
|
|
371
404
|
```bash
|
|
372
405
|
# Check what your changes affect before committing
|
|
373
|
-
depwire viz
|
|
406
|
+
depwire viz
|
|
374
407
|
# Review the arc diagram — red arcs show files you touched
|
|
375
408
|
```
|
|
376
409
|
|