vibe-splain 3.4.2 → 3.5.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 +5 -5
- package/dist/hook.js +0 -0
- package/dist/index.js +1780 -3520
- package/dist/mcp/server.js +1 -24
- package/package.json +2 -2
- package/dist/commands/bundle.d.ts +0 -4
- package/dist/commands/bundle.js +0 -68
- package/dist/commands/export.d.ts +0 -1
- package/dist/commands/export.js +0 -19
- package/dist/commands/gc.d.ts +0 -3
- package/dist/commands/gc.js +0 -59
- package/dist/commands/importBundle.d.ts +0 -4
- package/dist/commands/importBundle.js +0 -80
- package/dist/commands/network.d.ts +0 -1
- package/dist/commands/network.js +0 -91
- package/dist/commands/scan.d.ts +0 -13
- package/dist/commands/scan.js +0 -97
- package/dist/export/renderers/DeltaRenderer.d.ts +0 -6
- package/dist/export/renderers/DeltaRenderer.js +0 -22
- package/dist/hook-entry.d.ts +0 -2
- package/dist/hook-entry.js +0 -8
- package/dist/mcp/tools/apply_patch.d.ts +0 -37
- package/dist/mcp/tools/apply_patch.js +0 -103
- package/dist/mcp/tools/explainSpecialistScope.d.ts +0 -15
- package/dist/mcp/tools/explainSpecialistScope.js +0 -30
- package/dist/mcp/tools/get_call_chain.d.ts +0 -42
- package/dist/mcp/tools/get_call_chain.js +0 -50
- package/dist/mcp/tools/prepareTaskContext.d.ts +0 -38
- package/dist/mcp/tools/prepareTaskContext.js +0 -93
- package/dist/mcp/tools/set_session_scope.d.ts +0 -19
- package/dist/mcp/tools/set_session_scope.js +0 -40
- package/dist/mcp/tools/submit_receipt.d.ts +0 -68
- package/dist/mcp/tools/submit_receipt.js +0 -94
- package/dist/mcp/tools/work_orders.d.ts +0 -79
- package/dist/mcp/tools/work_orders.js +0 -126
- package/dist/mcp/tools/yield_for_scope_expansion.d.ts +0 -29
- package/dist/mcp/tools/yield_for_scope_expansion.js +0 -59
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ Your agent will loop through the high-gravity files, analyze each one, and build
|
|
|
72
72
|
|
|
73
73
|
### Three Levels of Analysis
|
|
74
74
|
1. **Level 0 — Semantic Classification**: Maps files to architectural "pillars" (Auth, Payments, Database, etc.) using import-path heuristics and library signatures.
|
|
75
|
-
2. **Level 1 — Structural
|
|
75
|
+
2. **Level 1 — Structural Gravity**: Computes `gravity` (0–100) using Tree-Sitter AST analysis — PageRank centrality, fan-in, cyclomatic complexity, public surface, and nesting depth. High-gravity files are the load-bearing hubs of the codebase. (An optional domain-adapter extension point exists for projects that want to add product-specific `behavioralLift`, but no adapters ship with the core — every scan is pure static analysis.)
|
|
76
76
|
3. **Level 2 — Behavioral Traceability**: Tree-Sitter powered call-graph analysis. It maps function-level dependencies and identifies **Critical Functions** (entrypoints, semantic actions, or high-outbound callers).
|
|
77
77
|
|
|
78
78
|
### Claude Code PreToolUse Hook
|
|
@@ -86,7 +86,7 @@ Your agent will loop through the high-gravity files, analyze each one, and build
|
|
|
86
86
|
|
|
87
87
|
## MCP Tools
|
|
88
88
|
|
|
89
|
-
vibe-splain exposes
|
|
89
|
+
vibe-splain exposes these core dossier tools over MCP stdio:
|
|
90
90
|
|
|
91
91
|
| Tool | Purpose |
|
|
92
92
|
|------|---------|
|
|
@@ -141,14 +141,14 @@ The UI features:
|
|
|
141
141
|
|
|
142
142
|
```
|
|
143
143
|
packages/
|
|
144
|
-
├── brain/ # @vibe-splain/brain — repo-agnostic analysis core
|
|
144
|
+
├── brain/ # @vibe-splain/brain — repo-agnostic static analysis core
|
|
145
145
|
│ └── src/
|
|
146
146
|
│ ├── pipeline/
|
|
147
|
-
│ │ └── adapters/ #
|
|
147
|
+
│ │ └── adapters/ # Optional domain-adapter extension point (none bundled)
|
|
148
148
|
│ ├── scanner.ts # Tree-Sitter AST analysis (static analysis, graph building)
|
|
149
149
|
│ ├── dossier.ts # Atomic persistence + UI regeneration
|
|
150
150
|
│ ├── graph.ts # Import graph read/write
|
|
151
|
-
│ └──
|
|
151
|
+
│ └── network/ # Deterministic PreToolUse gate (escalation + gate index)
|
|
152
152
|
├── cli/ # vibe-splain — MCP server + CLI
|
|
153
153
|
│ └── src/
|
|
154
154
|
│ ├── index.ts # #!/usr/bin/env node entry
|
package/dist/hook.js
CHANGED
|
File without changes
|