depwire-cli 0.5.0 → 0.6.1
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 +46 -5
- package/dist/{chunk-Q733EWFA.js → chunk-S3RUBXRF.js} +776 -95
- package/dist/index.js +141 -1
- package/dist/mcpb-entry.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
**See how your code connects. Give AI tools full codebase context.**
|
|
6
6
|
|
|
7
|
+
⭐ **If Depwire helps you, please [star the repo](https://github.com/depwire/depwire)** — it helps this open-source project grow into an enterprise tool.
|
|
8
|
+
|
|
7
9
|
Depwire analyzes codebases to build a cross-reference graph showing how every file, function, and import connects. It provides:
|
|
8
10
|
|
|
9
11
|
- 🎨 **Beautiful arc diagram visualization** — Interactive Harrison Bible-style graphic
|
|
10
12
|
- 🤖 **MCP server for AI tools** — Cursor, Claude Desktop get full dependency context
|
|
11
|
-
-
|
|
13
|
+
- 📊 **Dependency health score** — 0-100 score across 6 dimensions (coupling, cohesion, circular deps, god files, orphans, depth)
|
|
14
|
+
- 📄 **Auto-generated documentation** — 12 comprehensive documents: architecture, conventions, dependencies, onboarding, file catalog, API surface, error patterns, test coverage, git history, full snapshot, TODO/FIXME inventory, and health report
|
|
12
15
|
- 🔍 **Impact analysis** — "What breaks if I rename this function?" answered precisely
|
|
13
16
|
- 👀 **Live updates** — Graph stays current as you edit code
|
|
14
17
|
- 🌍 **Multi-language** — TypeScript, JavaScript, Python, and Go
|
|
@@ -37,8 +40,8 @@ Depwire fixes this by giving AI tools a complete dependency graph of your codeba
|
|
|
37
40
|
- **Live graph, always current** — edit a file and the dependency map updates in real-time. No re-indexing, no waiting.
|
|
38
41
|
- **Works locally, stays private** — zero cloud accounts, zero data leaving your machine. Just `npm install` and go.
|
|
39
42
|
|
|
40
|
-
###
|
|
41
|
-
Depwire isn't just a pretty graph. It's a full context engine with
|
|
43
|
+
### 13 MCP Tools, Not Just Visualization
|
|
44
|
+
Depwire isn't just a pretty graph. It's a full context engine with 13 tools that AI assistants call autonomously — architecture summaries, dependency tracing, symbol search, file context, health scores, and more. The AI decides which tool to use based on your question.
|
|
42
45
|
|
|
43
46
|
## Installation
|
|
44
47
|
|
|
@@ -122,6 +125,7 @@ Settings → Features → Experimental → Enable MCP → Add Server:
|
|
|
122
125
|
| `visualize_graph` | Generate interactive arc diagram visualization |
|
|
123
126
|
| `get_project_docs` | Retrieve auto-generated codebase documentation |
|
|
124
127
|
| `update_project_docs` | Regenerate documentation on demand |
|
|
128
|
+
| `get_health_score` | Get 0-100 dependency health score with recommendations |
|
|
125
129
|
|
|
126
130
|
## Supported Languages
|
|
127
131
|
|
|
@@ -239,7 +243,7 @@ Generate comprehensive codebase documentation from your dependency graph.
|
|
|
239
243
|
- `--output <path>` — Output directory (default: `.depwire/` inside project)
|
|
240
244
|
- `--format <type>` — Output format: `markdown` or `json` (default: `markdown`)
|
|
241
245
|
- `--include <docs...>` — Comma-separated list of docs to generate (default: `all`)
|
|
242
|
-
- Values: `architecture`, `conventions`, `dependencies`, `onboarding`, `files`, `api_surface`, `errors`, `tests`, `history`, `current`, `status`, `all`
|
|
246
|
+
- Values: `architecture`, `conventions`, `dependencies`, `onboarding`, `files`, `api_surface`, `errors`, `tests`, `history`, `current`, `status`, `health`, `all`
|
|
243
247
|
- `--update` — Regenerate existing documentation
|
|
244
248
|
- `--only <docs...>` — Used with `--update`, regenerate only specific docs
|
|
245
249
|
- `--verbose` — Show generation progress
|
|
@@ -268,7 +272,7 @@ depwire docs ./my-project --output ./docs
|
|
|
268
272
|
depwire docs ./my-project --update --only conventions
|
|
269
273
|
```
|
|
270
274
|
|
|
271
|
-
**Generated Documents (
|
|
275
|
+
**Generated Documents (12 total):**
|
|
272
276
|
|
|
273
277
|
| Document | What It Contains |
|
|
274
278
|
|----------|------------------|
|
|
@@ -283,9 +287,46 @@ depwire docs ./my-project --update --only conventions
|
|
|
283
287
|
| `HISTORY.md` | Git history + graph analysis, file churn, feature timeline |
|
|
284
288
|
| `CURRENT.md` | Complete codebase snapshot (every file, symbol, connection) |
|
|
285
289
|
| `STATUS.md` | TODO/FIXME/HACK inventory with priority matrix |
|
|
290
|
+
| `HEALTH.md` | Dependency health score (0-100) across 6 dimensions with recommendations |
|
|
286
291
|
|
|
287
292
|
Documents are stored in `.depwire/` with `metadata.json` tracking generation timestamps for staleness detection.
|
|
288
293
|
|
|
294
|
+
### `depwire health <directory>`
|
|
295
|
+
|
|
296
|
+
Analyze dependency architecture health and get a 0-100 score across 6 quality dimensions.
|
|
297
|
+
|
|
298
|
+
**Options:**
|
|
299
|
+
- `--json` — Output as JSON (for CI/automation)
|
|
300
|
+
- `--verbose` — Show detailed per-dimension breakdown
|
|
301
|
+
|
|
302
|
+
**Dimensions Measured:**
|
|
303
|
+
1. **Coupling (25%)** — How tightly connected are modules? Lower coupling = easier changes
|
|
304
|
+
2. **Cohesion (20%)** — Do files in the same directory relate? Higher cohesion = better organization
|
|
305
|
+
3. **Circular Dependencies (20%)** — Files depending on each other in cycles
|
|
306
|
+
4. **God Files (15%)** — Files with abnormally high connection counts
|
|
307
|
+
5. **Orphan Files (10%)** — Files with zero connections (dead code?)
|
|
308
|
+
6. **Dependency Depth (10%)** — How deep are the dependency chains?
|
|
309
|
+
|
|
310
|
+
**Examples:**
|
|
311
|
+
```bash
|
|
312
|
+
# Analyze current directory
|
|
313
|
+
depwire health .
|
|
314
|
+
|
|
315
|
+
# Detailed breakdown
|
|
316
|
+
depwire health . --verbose
|
|
317
|
+
|
|
318
|
+
# JSON output for CI
|
|
319
|
+
depwire health . --json
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
**Output:**
|
|
323
|
+
- Overall score (0-100) with letter grade (A-F)
|
|
324
|
+
- Per-dimension scores and grades
|
|
325
|
+
- Actionable recommendations
|
|
326
|
+
- Trend indicator (↑/↓ from last check)
|
|
327
|
+
|
|
328
|
+
Health history is stored in `.depwire/health-history.json` (last 50 checks).
|
|
329
|
+
|
|
289
330
|
### Error Handling
|
|
290
331
|
|
|
291
332
|
Depwire gracefully handles parse errors:
|