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.
Files changed (37) hide show
  1. package/README.md +5 -5
  2. package/dist/hook.js +0 -0
  3. package/dist/index.js +1780 -3520
  4. package/dist/mcp/server.js +1 -24
  5. package/package.json +2 -2
  6. package/dist/commands/bundle.d.ts +0 -4
  7. package/dist/commands/bundle.js +0 -68
  8. package/dist/commands/export.d.ts +0 -1
  9. package/dist/commands/export.js +0 -19
  10. package/dist/commands/gc.d.ts +0 -3
  11. package/dist/commands/gc.js +0 -59
  12. package/dist/commands/importBundle.d.ts +0 -4
  13. package/dist/commands/importBundle.js +0 -80
  14. package/dist/commands/network.d.ts +0 -1
  15. package/dist/commands/network.js +0 -91
  16. package/dist/commands/scan.d.ts +0 -13
  17. package/dist/commands/scan.js +0 -97
  18. package/dist/export/renderers/DeltaRenderer.d.ts +0 -6
  19. package/dist/export/renderers/DeltaRenderer.js +0 -22
  20. package/dist/hook-entry.d.ts +0 -2
  21. package/dist/hook-entry.js +0 -8
  22. package/dist/mcp/tools/apply_patch.d.ts +0 -37
  23. package/dist/mcp/tools/apply_patch.js +0 -103
  24. package/dist/mcp/tools/explainSpecialistScope.d.ts +0 -15
  25. package/dist/mcp/tools/explainSpecialistScope.js +0 -30
  26. package/dist/mcp/tools/get_call_chain.d.ts +0 -42
  27. package/dist/mcp/tools/get_call_chain.js +0 -50
  28. package/dist/mcp/tools/prepareTaskContext.d.ts +0 -38
  29. package/dist/mcp/tools/prepareTaskContext.js +0 -93
  30. package/dist/mcp/tools/set_session_scope.d.ts +0 -19
  31. package/dist/mcp/tools/set_session_scope.js +0 -40
  32. package/dist/mcp/tools/submit_receipt.d.ts +0 -68
  33. package/dist/mcp/tools/submit_receipt.js +0 -94
  34. package/dist/mcp/tools/work_orders.d.ts +0 -79
  35. package/dist/mcp/tools/work_orders.js +0 -126
  36. package/dist/mcp/tools/yield_for_scope_expansion.d.ts +0 -29
  37. 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 and Behavioral Gravity**: Core computes `staticGravity` using Tree-Sitter AST analysis based on link density, nesting depth, and mutation counts. **Bundled Adapters** (like Cal.com and n8n) interpret product semantics to add `behavioralLift` for critical dynamic execution paths. Final `gravity` is the combination of static evidence and adapter interpretation.
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 **8 tools** over MCP stdio:
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 + bundled adapters
144
+ ├── brain/ # @vibe-splain/brain — repo-agnostic static analysis core
145
145
  │ └── src/
146
146
  │ ├── pipeline/
147
- │ │ └── adapters/ # Bundled product adapters (Cal.com, n8n)
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
- │ └── watcher.ts # Chokidar file watcher
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