Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 16 Apr 21:12
· 413 commits to main since this release

Visual intelligence, WASM plugin SDK, onboarding maps, and 167 bug fixes.

Visual Intelligence

Six interactive views, each rendered as self-contained HTML with D3.js:

  • Dashboard -- health score donut, dimension bars, architecture treemap, alerts panel
  • Architecture Explorer -- Sugiyama-layout directed graph with 3-level zoom (module/file/symbol), color-coded for risk, god files, and circular dependencies
  • Risk Heatmap -- D3 treemap sized by blast radius, colored by risk score
  • Flow Diagram -- data flow from source to sinks with arrowheads and confidence labels
  • Time Machine -- git history snapshots with playback controls to see how your codebase evolved
  • Diff View -- before/after side-by-side with blast radius overlay and affected files table

Export to 6 formats: HTML, Mermaid, SVG, PNG, C4 DSL, JSON.

WASM Plugin SDK

  • Define custom analyzers and detectors as WASM plugins with the CxpakPlugin trait
  • Plugin manifest with SHA-256 checksum verification before WASM compilation
  • wasmtime sandbox: epoch interruption for CPU limits, 64 MB memory cap, capability enforcement
  • File pattern scoping -- plugins only see files matching their declared patterns

Onboarding

  • cxpak onboard -- generates a dependency-ordered reading guide for new engineers
  • Topological sort with module grouping, PageRank ordering, and 7+/-2 cognitive limit splitting
  • Reading time estimates (200 tokens/min)

Quality Campaign (167 bugs fixed)

13 independent code audits across every module:

  • Security -- timing-safe auth comparison, path traversal prevention, ReDoS guards, XSS prevention in HTML output
  • Stability -- LSP lock poisoning recovery, atomic file writes, advisory cache locks, graceful shutdown
  • Correctness -- parser fixes across 8 languages, convention metrics bounded to valid ranges, graph rebuild after incremental updates
  • Performance -- regex compiled once via LazyLock, embedding query caching, O(n^2) edge generation capped
  • MCP -- full JSON-RPC 2.0 compliance (parse errors, unknown tool handling), body size limits, pattern length guards
  • LSP -- hover implemented with real data, URI path handling fixed, did_open/did_change/did_close support
  • Visual -- edge CSS selector fix, directional arrowheads, all 6 nav links wired
  • 2427 tests (up from 2059), all covering real regressions

Breaking Changes

  • MSRV bumped from 1.88 to 1.91 (wasmtime cranelift dependency)
  • /v1/health changed from POST to GET
  • Stub endpoints now return {"status": "not_implemented"} instead of fake data