depwire-cli 0.9.26 → 0.9.28
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 +32 -2
- package/dist/{chunk-YYY5TNG7.js → chunk-ITEGMPF7.js} +576 -104
- package/dist/{chunk-B2KGFBZL.js → chunk-VJLBOFCD.js} +36 -22
- package/dist/index.js +47 -44
- package/dist/mcpb-entry.js +3 -3
- package/dist/sdk.d.ts +31 -2
- package/dist/sdk.js +3 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
**The missing context layer for AI coding assistants.**
|
|
13
13
|
|
|
14
|
-
Deterministic dependency graph.
|
|
14
|
+
Deterministic dependency graph. 17 MCP tools. Architecture health. What If simulation. Security scanner.
|
|
15
15
|
|
|
16
16
|
The context layer that turns vibe coding into software engineering.
|
|
17
17
|
|
|
@@ -69,6 +69,7 @@ depwire health
|
|
|
69
69
|
depwire dead-code
|
|
70
70
|
depwire temporal
|
|
71
71
|
depwire whatif
|
|
72
|
+
depwire security
|
|
72
73
|
|
|
73
74
|
# Or specify a directory explicitly
|
|
74
75
|
npx depwire-cli viz ./my-project
|
|
@@ -145,6 +146,7 @@ Settings → Features → Experimental → Enable MCP → Add Server:
|
|
|
145
146
|
| `find_dead_code` | Find dead code — symbols defined but never referenced |
|
|
146
147
|
| `get_temporal_graph` | Show how the graph evolved over git history |
|
|
147
148
|
| `simulate_change` | Simulate a move/delete/rename/split/merge before touching code. Returns health score delta, broken imports, and affected nodes. Zero file I/O. |
|
|
149
|
+
| `security_scan` | Scan for security vulnerabilities with graph-aware severity elevation. No API key required. |
|
|
148
150
|
|
|
149
151
|
## SDK
|
|
150
152
|
|
|
@@ -161,6 +163,7 @@ import {
|
|
|
161
163
|
calculateHealthScore,
|
|
162
164
|
analyzeDeadCode,
|
|
163
165
|
generateDocs,
|
|
166
|
+
scanSecurity,
|
|
164
167
|
SimulationEngine,
|
|
165
168
|
searchSymbols,
|
|
166
169
|
getImpact,
|
|
@@ -187,6 +190,32 @@ depwire whatif . --simulate merge --target src/utils/helpers.ts --merge-target s
|
|
|
187
190
|
Returns: health score delta, broken imports, affected nodes, circular deps introduced/resolved.
|
|
188
191
|
Also available as MCP tool `simulate_change` for AI coding assistants.
|
|
189
192
|
|
|
193
|
+
## Security Scanner
|
|
194
|
+
|
|
195
|
+
Scan your codebase for security vulnerabilities before AI-generated code ships to production:
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
depwire security . # Full repo scan
|
|
199
|
+
depwire security . --target src/auth.ts # Single file
|
|
200
|
+
depwire security . --format sarif # GitHub Security tab
|
|
201
|
+
depwire security . --fail-on high # CI gate — exit 1 if HIGH+
|
|
202
|
+
depwire security . --class injection # Specific check only
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
10 vulnerability categories:
|
|
206
|
+
- Dependency CVEs (npm/pip/cargo/go audit)
|
|
207
|
+
- Shell injection + code injection
|
|
208
|
+
- Hardcoded secrets (API keys, passwords, private keys)
|
|
209
|
+
- Path traversal
|
|
210
|
+
- Auth bypass patterns
|
|
211
|
+
- Input validation gaps
|
|
212
|
+
- Information disclosure
|
|
213
|
+
- Cryptography weaknesses
|
|
214
|
+
- Frontend XSS (dangerouslySetInnerHTML, localStorage tokens)
|
|
215
|
+
- Architecture-level risks (graph-powered severity elevation)
|
|
216
|
+
|
|
217
|
+
Graph-aware severity: vulnerabilities reachable from MCP tools or HTTP routes are automatically elevated. Available as MCP tool `security_scan` and via `depwire-cli/sdk`.
|
|
218
|
+
|
|
190
219
|
## Why Depwire
|
|
191
220
|
|
|
192
221
|
| Feature | Depwire | Standard RAG (Fuzzy Search) | LLM Native Scanning |
|
|
@@ -721,7 +750,7 @@ See [SECURITY.md](SECURITY.md) for full details.
|
|
|
721
750
|
|
|
722
751
|
### ✅ Shipped
|
|
723
752
|
- [x] Arc diagram visualization
|
|
724
|
-
- [x] MCP server (
|
|
753
|
+
- [x] MCP server (17 tools)
|
|
725
754
|
- [x] Multi-language support (TypeScript, JavaScript, Python, Go, Rust, C)
|
|
726
755
|
- [x] File watching + live refresh
|
|
727
756
|
- [x] Auto-generated documentation (13 documents)
|
|
@@ -733,6 +762,7 @@ See [SECURITY.md](SECURITY.md) for full details.
|
|
|
733
762
|
- [x] WASM migration (Windows support)
|
|
734
763
|
- [x] Cloud dashboard — [app.depwire.dev](https://app.depwire.dev)
|
|
735
764
|
- [x] What If simulation — simulate refactors before touching code
|
|
765
|
+
- [x] Security scanner — deterministic vulnerability detection with graph-aware severity
|
|
736
766
|
|
|
737
767
|
### Coming Next
|
|
738
768
|
- [ ] New language support (Java, C++, Ruby — community requested)
|